473,587 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Argh! Tomcat 5.5.3

I don't get it. First of all, it claims to run on a JRE. This is obviously
a fraud, it even says so when you attempt to start it: "The JAVA_HOME
variable should point to a JDK and not a JRE". I can accept that, being
new to it all and not really caring, but things are
going downhill rather fast from here. I'm installing a simple webapp
in the the the webapps folder, complete with a context.xml in the
conf folder. My servlet behaves just as expected in the browser, but the
log thinks otherwise:

java.lang.Class NotFoundExcepti on:
org.apache.cata lina.servlets.D efaultServlet

- even though I see it right there in the
server/lib/servlets-default.jar. Applying some StandardWrapper hotfix does
no good. So I fire up the manager application, thinking that maybe it
handles deployment more effectively. I try different scenarios:

1) Specify a /path and a file-URI. "OK - Installed application at context
path /test" claims the manager, but the app is not listed and upon restart
[in fact, upon restarting the computer, since interaction with the manager
apparently corrupts shutdown of the server] the log complains about a
missing xml file.
2) Specify a context.xml and a file-URI. "Invalid context path was
specified" even though it was supposed to retrieve this from the xml.
3) Specify both a /path, a context.xml and a file-URI. The application
gets installed "OK", but it doesn't display and it still doesn't work [as
I recall, it couldn't read the web.xml, which worked fine when installed
things manually]

So I switch to simple URL parameter installment mode. Again, everything is
installed "OK" but nothing displays on the application list and nothing
works. You'd think i didn't care, when after all the application worked
fine upon manual installment. But thing is, it cannot handle any javax
J2EE classes, only HttpServlet stuff, so something is obviously wrong.
Getting standard JRE DOM stuff compiled is also an appaling excercise. The
container runs on Tiger, but to use DOM features, Xerces has to be added
anyway; and to use DOM3 features, which is sort of the point with Tiger, I
have to pull Xerces from CVS and build it myself.

This may all be in a days work for you people, but Tomcat presents an
unusually high learning curve for the likes of myself. I shall presently
be investigating Suns Application Server since it's there anyway, but if
you have any feedback to the above, I'd be very happy to take any flames
and suggestions [other jdk1.5.0 containers out there?]. I run Linux if it
makes any difference, and I won't even begin to tell how tough it was
getting that to work. Thanks alot!
--
Wired Earp
Wunderbyte
Jul 17 '05 #1
2 12850
I wrote:
I don't get it [Tomcat 5.5.3]


I just relived the whole nightmare on Windows with the *exact* same
result. It seems obvious that DOM3, specifically the LS module, doesn't
compute on Tomcat. Steps to reproduce:

1) Install Tomcat 5.5.3, J2SE 1.5.0 and J2EE 1.4.2
2) Deploy servlet with DOMImplementati onLS stuff, compiled to 1.5 or
1.4.

I've applied the hotfix and added the Xerces distribution from the
Apache Tomcat download library to endorsed, shared and common - although
supposedly *not* required under 1.5 - to no avail. I've also tried
building it with DOM3 support, which seemed appropriate. Even switced to
J2SE 1.4.2 with no succes. No matter how you twist it, Tomcat gets
completely stuck on the stacktrace presented below. If you have
experienced different results, please let me know about it so I can live
to see day we laugh at my ignorance.
SEVERE: Error loading WebappClassLoad er
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.cata lina.loader.Sta ndardClassLoade r@feb48
org.apache.cata lina.servlets.D efaultServlet
java.lang.Class NotFoundExcepti on: org.apache.cata lina.servlets.D efaultServlet
at org.apache.cata lina.loader.Web appClassLoader. loadClass(Webap pClassLoader.ja va:1332)
at org.apache.cata lina.loader.Web appClassLoader. loadClass(Webap pClassLoader.ja va:1181)
at org.apache.cata lina.core.Stand ardWrapper.load Servlet(Standar dWrapper.java:9 38)
at org.apache.cata lina.core.Stand ardWrapper.load (StandardWrappe r.java:836)
at org.apache.cata lina.core.Stand ardContext.load OnStartup(Stand ardContext.java :3783)
at org.apache.cata lina.core.Stand ardContext.star t(StandardConte xt.java:4045)
at org.apache.cata lina.core.Conta inerBase.addChi ldInternal(Cont ainerBase.java: 755)
at org.apache.cata lina.core.Conta inerBase.addChi ld(ContainerBas e.java:739)
at org.apache.cata lina.core.Stand ardHost.addChil d(StandardHost. java:525)
at org.apache.cata lina.startup.Ho stConfig.deploy Descriptor(Host Config.java:590 )
at org.apache.cata lina.startup.Ho stConfig.deploy Descriptors(Hos tConfig.java:53 5)
at org.apache.cata lina.startup.Ho stConfig.deploy Apps(HostConfig .java:470)
at org.apache.cata lina.startup.Ho stConfig.start( HostConfig.java :1079)
at org.apache.cata lina.startup.Ho stConfig.lifecy cleEvent(HostCo nfig.java:310)
at org.apache.cata lina.util.Lifec ycleSupport.fir eLifecycleEvent (LifecycleSuppo rt.java:119)
at org.apache.cata lina.core.Conta inerBase.start( ContainerBase.j ava:1011)
at org.apache.cata lina.core.Stand ardHost.start(S tandardHost.jav a:718)
at org.apache.cata lina.core.Conta inerBase.start( ContainerBase.j ava:1003)
at org.apache.cata lina.core.Stand ardEngine.start (StandardEngine .java:437)
at org.apache.cata lina.core.Stand ardService.star t(StandardServi ce.java:450)
at org.apache.cata lina.core.Stand ardServer.start (StandardServer .java:2009)
at org.apache.cata lina.startup.Ca talina.start(Ca talina.java:538 )
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at org.apache.cata lina.startup.Bo otstrap.start(B ootstrap.java:2 71)
at org.apache.cata lina.startup.Bo otstrap.main(Bo otstrap.java:40 9)
2004-10-23 16:27:26 org.apache.cata lina.core.Appli cationContext log
SEVERE: Servlet /dataplastique threw load() exception
javax.servlet.S ervletException : Wrapper cannot find servlet class org.apache.cata lina.servlets.D efaultServlet or a class it depends on
at org.apache.cata lina.core.Stand ardWrapper.load Servlet(Standar dWrapper.java:9 48)
at org.apache.cata lina.core.Stand ardWrapper.load (StandardWrappe r.java:836)
at org.apache.cata lina.core.Stand ardContext.load OnStartup(Stand ardContext.java :3783)
at org.apache.cata lina.core.Stand ardContext.star t(StandardConte xt.java:4045)
at org.apache.cata lina.core.Conta inerBase.addChi ldInternal(Cont ainerBase.java: 755)
at org.apache.cata lina.core.Conta inerBase.addChi ld(ContainerBas e.java:739)
at org.apache.cata lina.core.Stand ardHost.addChil d(StandardHost. java:525)
at org.apache.cata lina.startup.Ho stConfig.deploy Descriptor(Host Config.java:590 )
at org.apache.cata lina.startup.Ho stConfig.deploy Descriptors(Hos tConfig.java:53 5)
at org.apache.cata lina.startup.Ho stConfig.deploy Apps(HostConfig .java:470)
at org.apache.cata lina.startup.Ho stConfig.start( HostConfig.java :1079)
at org.apache.cata lina.startup.Ho stConfig.lifecy cleEvent(HostCo nfig.java:310)
at org.apache.cata lina.util.Lifec ycleSupport.fir eLifecycleEvent (LifecycleSuppo rt.java:119)
at org.apache.cata lina.core.Conta inerBase.start( ContainerBase.j ava:1011)
at org.apache.cata lina.core.Stand ardHost.start(S tandardHost.jav a:718)
at org.apache.cata lina.core.Conta inerBase.start( ContainerBase.j ava:1003)
at org.apache.cata lina.core.Stand ardEngine.start (StandardEngine .java:437)
at org.apache.cata lina.core.Stand ardService.star t(StandardServi ce.java:450)
at org.apache.cata lina.core.Stand ardServer.start (StandardServer .java:2009)
at org.apache.cata lina.startup.Ca talina.start(Ca talina.java:538 )
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at org.apache.cata lina.startup.Bo otstrap.start(B ootstrap.java:2 71)
at org.apache.cata lina.startup.Bo otstrap.main(Bo otstrap.java:40 9)
2004-10-23 16:27:28 org.apache.cata lina.core.Appli cationContext log
INFO: org.apache.weba pp.balancer.Bal ancerFilter: init(): ruleChain: [org.apache.weba pp.balancer.Rul eChain: [org.apache.weba pp.balancer.rul es.URLStringMat chRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.weba pp.balancer.rul es.RequestParam eterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.weba pp.balancer.rul es.AcceptEveryt hingRule: Redirect URL: http://jakarta.apache.org]]
2004-10-23 16:27:29 org.apache.cata lina.core.Appli cationContext log
INFO: ContextListener : contextInitiali zed()
2004-10-23 16:27:29 org.apache.cata lina.core.Appli cationContext log
INFO: SessionListener : contextInitiali zed()
2004-10-23 16:27:30 org.apache.cata lina.core.Appli cationContext log
INFO: ContextListener : contextInitiali zed()
2004-10-23 16:27:30 org.apache.cata lina.core.Appli cationContext log
INFO: SessionListener : contextInitiali zed()
2004-10-23 16:27:31 org.apache.coyo te.http11.Http1 1Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2004-10-23 16:27:32 org.apache.jk.c ommon.ChannelSo cket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
2004-10-23 16:27:32 org.apache.jk.s erver.JkMain start
INFO: Jk running ID=0 time=0/100 config=null
2004-10-23 16:27:32 org.apache.cata lina.startup.Ca talina start
INFO: Server startup in 9413 ms
--
Wired Earp
Wunderbyte
Jul 17 '05 #2
eaton
1 New Member
I was getting the same error but with a plugin in struts. I found this to be a generic error which is raised when tomcat couldn't start the servlet for my plugin. Ive had the same error message for passing the wrong arguments to my plugin.

After lots of pain I installed log4j and set up the '.properties' files and got a more meaningful trace which turned out to be a missing library I thought I installed.
Sep 27 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2807
by: The Plankmeister | last post by:
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store information between pages, which I knew already. I want to know HOW sessions work! If anybody has any good links to material that explains sessions fully, then please send those links this way! I'm particularly interested in the...
1
1932
by: The Plankmeister | last post by:
I'm sure this should work: echo preg_replace("/(\w)(\!w)(\w)/","\\1\. \\3","this is.a test.to see. if it. works"); It should output: this is. a test. to see. if it. works But it doesn't. The string is unaltered. What am I doing wrong?
3
2022
by: The Plankmeister | last post by:
Hi... I'm attempting to keep everything I write compliant with xhtml 1.0 strict. And It's very bizarre. Why on earth won't this validate: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
1
3307
by: Jim Moe | last post by:
Hello, I am (slowly) in the process of changing a table-based layout to CSS/div-based. One area that uses tables a lot is the main nav menu. I have discovered that tables have advantage: all browsers display them the same. I created a CSS to use <ul> as the list container rather than <table>. It works quite well -- in Mozilla. With IE V5 or 6 extra spacing is added between each button image and the large spaces are compressed; it is...
1
829
by: Henry Rollins | last post by:
This is driving me nuts. I have created a Class Assembly in .NET C# which is to be used by traditional ASP pages. I registered it just fine with the regASM command and it work - about 2/3 of the time. The rest of the time I launch the site and the following error is generated: '80070002'
1
1886
by: Cliff Williams | last post by:
How are people managing multiple, interdependent projects in the same solution? If I have to rebuild my solution file one more time, I think my head is going to spin around and pop off. I've seen tools like Nant around, but it seems to have a pretty big learning curve. Is it easier than I think? How does it integrate with debugging? Are there other tools? BTW, I've read dozens of posts describing similar problems along with the...
0
1236
by: Toby Mathews | last post by:
Hi there, I have a problem with a C# AP.NET app. running on my local machine, Sporadically (but more and more frequently) I get the above error message when code running on my laptop trys to connect to our SQL Server, which is located elsewhere. The same code NEVER does this on our development and live machines (both of which are in the same hosting facility as the SQL Server), and other app's that I write/run locally, and that connect...
1
1484
by: RWC | last post by:
Hi Folks, I have a windows 2000 server installation, IIS is running and the ASP.NET 1.1 SDK has been installed. I'm reading a book on ASP.NET and the lessons call for the first line to read <%@ Page Language="VB"%>. When I save the page and run it (from a remote machine) I get the following message; "The scripting language 'VB' is not found on the server." I haven't been able to find ANY other solution. When I type this into
2
3911
by: SorceCode | last post by:
Hey guys, good old > Debug Assertion Failed! > File: dbgdel.cpp > Line: 47 > Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Rears its ugly head agian! Ok heres what Im up to..
6
5046
by: darrel | last post by:
I'm using some validators for a form. I'm noticing that it writes the text out to the browser as a SPAN with it's visibility set to none. The problem is that it still takes up space, so I have gigantic gaps in my form. It SHOULD be set to display: none instead. Is this a setting in the control somewhere or is this just a huge oversight on MS's part? If the latter, any suggestions for a workaround? Perhaps wrapping the validator in a...
0
8220
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5723
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5396
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3846
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2367
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1457
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.