David Treves wrote:

> Hi,
> 
> it's me again... I found out that I should not add in the lookup string the
> "java:comp/" but only the resource reference. Can anyone please explain why?

See my previous response. Additionally, I should point out that putting 
settings in web.xml won't work unless you're running Tomcat and JBoss in 
integrated mode and your app is in an ear, so that JBoss can provide the 
appropriate environment naming context (the 'java:comp/env' namespace) 
to your webapp.


> 
> One other thing, I noticed that everytime I compile a servlet and refresh
> the browser I bump intothe following error:
> 
> Error: 500
> Location: /webTrails/default.htm
> Internal Servlet Error:
> 
> java.lang.IllegalStateException: Can't happen - classname is null, who added
> this ?
>  at
> org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
>  at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
>  at org.apache.tomcat.core.Handler.service(Handler.java:254)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> 2)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>  at java.lang.Thread.run(Thread.java:539)
> 
> 
> Where does that come from???
> 

At the risk of sounding flip, it seams to be coming from 
org.apache.tomcat.core.ServletWrapper.loadServlet 8^})

Seriously, that is a bit odd - I've not seen it before. It seams that 
apache is getting confused when reloading your servlet after you make a 
change. I'm assuming that when you compile, you're compiling to the 
directory that Tomcat deployed to? Or when you say 'compile' do you mean 
an ear rebuild and hot-deploy?

Do you have any <servlet> tags in your web.xml that might not quite be 
right?

-danch


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to