473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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.ClassNotFoundException:
org.apache.catalina.servlets.DefaultServlet

- 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 12846
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 DOMImplementationLS 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 WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@feb 48
org.apache.catalina.servlets.DefaultServlet
java.lang.ClassNotFoundException: org.apache.catalina.servlets.DefaultServlet
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1332)
at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1181)
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:938)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:836)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3783)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4045)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2009)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:538)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
2004-10-23 16:27:26 org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /dataplastique threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.servlets.DefaultServlet or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:948)
at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:836)
at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3783)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4045)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:755)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescr iptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescr iptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1079)
at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1011)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:437)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2009)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:538)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
2004-10-23 16:27:28 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRul e: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterR ule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingR ule: Redirect URL: http://jakarta.apache.org]]
2004-10-23 16:27:29 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
2004-10-23 16:27:29 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2004-10-23 16:27:30 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
2004-10-23 16:27:30 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2004-10-23 16:27:31 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2004-10-23 16:27:32 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
2004-10-23 16:27:32 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/100 config=null
2004-10-23 16:27:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9413 ms
--
Wired Earp
Wunderbyte
Jul 17 '05 #2
eaton
1
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
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...
1
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....
3
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...
1
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...
1
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...
1
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...
0
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...
1
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 <%@...
2
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
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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...

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.