Hi,
These are caused most likely by multiple conflicting versions of the
servlet, JSP, or jasper jars in your installations.  You did a clean
install of tomcat, right?  And you didn't copy over the servlet, jsp, or
jasper jars, did you?

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Worley Brent - bworle [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 08, 2004 11:15 AM
>To: 'Tomcat Users List'
>Subject: RE: Porting from Resin to Tomcat
>
>
>Neither tomcat nor resin are running your classes. The VM does. So
there
>really is no difference.
>Tell us, which errors come up, maybe we can help.
>
>
>- We are getting a variety of errors, its hard to tell what is causing
>which.
>
>After I log into our application (it is a secured app), if the server
has
>been idle a while I will receive this error:
>
>java.lang.NoClassDefFoundError
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>       at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
Acce
>s
>sorImpl.java:39)
>       at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon
stru
>c
>torAccessorImpl.java:27)
>       at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>       at java.lang.Class.newInstance0(Class.java:308)
>       at java.lang.Class.newInstance(Class.java:261)
>       at
>org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.ja
va:1
>2
>12)
>      ... (lots more after this)
>
>If I undeploy and redeploy the application, I get a different set of
errors
>(this one is long):
>
>java.lang.ExceptionInInitializerError
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:141)
>       at search.SearchSession.class$(SearchSession.java:20)
>       at search.SearchSession.(SearchSession.java:19)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>Method)
>       at
>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
Acce
>s
>sorImpl.java:39)
>       at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon
stru
>c
>torAccessorImpl.java:27)
>       at
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>       at java.lang.Class.newInstance0(Class.java:308)
>       at java.lang.Class.newInstance(Class.java:261)
>       at
>org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.ja
va:1
>2
>12)
>       at
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
>       at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>       at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
>       at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
>       at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
>       at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
>       at
>org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
>       at
>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
>       at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>       at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
>       at
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
ava:
>5
>07)
>       at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
>2
>74)
>       at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292
)
>       at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>       at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
>n
>FilterChain.java:237)
>       at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
>h
>ain.java:157)
>       at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
>a
>va:214)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>       at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
ntex
>t
>Valve.java:198)
>       at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
>a
>va:152)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>       at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:13
>7
>)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>       at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:11
>7
>)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:102)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>       at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
>a
>:109)
>       at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
onte
>x
>t.java:104)
>       at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
>       at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>       at
>org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>       at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7
93)
>       at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
>e
>ction(Http11Protocol.java:702)
>       at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
71)
>       at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
>v
>a:644)
>       at java.lang.Thread.run(Thread.java:534)
>Caused by: java.lang.RuntimeException: javax.naming.NamingException:
Cannot
>create resource instance
>       at search.Search.rethrow(Search.java:52)
>       at search.Search.(Search.java:32)
>       ... 50 more
>Caused by: javax.naming.NamingException: Cannot create resource
instance
>       at
>org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac
tory
>.
>java:132)
>       at
>javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301
)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:791)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:138)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:779)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:138)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:779)
>       at
org.apache.naming.NamingContext.lookup(NamingContext.java:151)
>       at
>org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
>       at javax.naming.InitialContext.lookup(InitialContext.java:347)
>       at search.Search.(Search.java:23)
>       ... 50 more
>
>Needless to say, I'm confused.  I'm going to go back and look at the
specs
>difference between the two platforms (Resin used Servlet 2.3 and JSP
API
>1.2, where Tomcat is using 2.4 and 2.0, respectively).
>
>Thanks,
>Brent
>
>
>Keep in mind, that you have to develop container-independent. Both
resin
>and
>tomcat give you some functionallity only with their own classes. As far
as
>I
>can tell, this is mostly the case only for things which are not defined
in
>the servlet specs. Try to avoid them as much as possible, since they
will
>definitly make your application plattform dependent. And writing an
>application that supports both is a burden in java. (I think this is
really
>a problem of the language.)
>
>Regards,
>  Steffen
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>**********************************************************************
>The information contained in this communication is
>confidential, is intended only for the use of the recipient
>named above, and may be legally privileged.
>If the reader of this message is not the intended
>recipient, you are hereby notified that any dissemination,
>distribution, or copying of this communication is strictly
>prohibited.
>If you have received this communication in error,
>please re-send this communication to the sender and
>delete the original message or any copy of it from your
>computer system. Thank You.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to