Thanks Mike.

If I understand the other poster (you directed me in the link above) his 
problem was a result of having duplicate copies of the interface(s) class files 
packaged both in the EJB.jar and Web.war files.

The Fibo tutorial specifies that the interface class files should be packaged 
in FiboEJB.jar and the FiboEJB-client.jar.  The FiboEJB-client.jar is then 
packaged in the FiboWeb.war file.  As a result, the interface(s) class files 
are packaged in two places in the final FiboApp.ear file.

This is how I originally packaged the files.

However, I do not believe it is the source of the problem.

I tried not packaging the FiboEJB-client.jar(which has the second copy of the 
interfaces) in the FiboWeb.war file and found that the Fibo application still 
worked on JBoss 3.2.7 but not on JBoss 4.0.2.

Below is the error message displayed in the browser when I click on the 
"Compute" button which causes the servlet to "try" to get a context with the 
following lines of code:

Context context = new InitialContext();
Object ref = context.lookup("java:comp/env/ejb/Fibo");


This is the Error Message displayed in the browser:

javax.servlet.ServletException: Lookup of java:comp/env/ failed
        tutorial.web.ComputeServlet.init(ComputeServlet.java:72)
        
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        java.lang.Thread.run(Thread.java:534)



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878684#3878684

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878684


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to