Hello!

As I said in a previous mail, we have a core that uses dynamic class
loading, getting a name of an EJB from a file and instatiates it to execute
business logic. The core module has no interfaces of the EJBs to be called
and the business EJBs are deployed in separate jar files.

In Windows2000 (DEV environment), after changing the java.policy and
modifying the run.bat to use the new java.policy, all worked fine. When we
moved to HP-UX (the pre-production environment), it doesn't work. We have
been searching a lot for solutions.

Now I enabled the TRACE on the JBoss logger and I'm sending this as it might
help you to help us :). The trace has some cosmetics on the classes names,
but it reflects what is happening. The Worker got a class name from the
file, tryes to dynamically load it. As it doesn't have the interface, goes
looking for it on the JBoss WebServer. The webserver seems to find it but...

I would really appreciate some help on this... Looking forward to hear from
you.

Duarte Loreto

************ Snippet of the servler.log with TRACE enabled (instead of
DEBUG) *************

[11:56:55,834,Worker] 905 *** Worker(0) - Starting...
[11:56:55,926,WebServer] raw request=GET
/WebClassLoader@254811/com/company/ejb/buy/BuyerManagerHome.class HTTP/1.1
[11:56:55,927,WebServer] loaderKey = WebClassLoader@254811/
[11:56:55,927,WebServer] filePath =
com/company/ejb/buy/BuyerManagerHome.class
[11:56:55,927,WebServer] loader = org.jboss.web.WebClassLoader@3e35b
[11:56:55,927,WebServer] loading className =
com.company.ejb.buy.BuyerManagerHome
[11:56:55,928,WebServer] clazzUrl =
file:/home/dnloreto/JBoss-2.4.6_Tomcat-4.0.3/jboss/tmp/deploy/Default/buyerm
anagerEJB.jar/ejb1014.jar
[11:56:55,929,WebServer] Retrieving
jar:file:/home/dnloreto/JBoss-2.4.6_Tomcat-4.0.3/jboss/tmp/deploy/Default/bu
yermanagerEJB.jar/ejb1014.jar!/com/company/ejb/buy/BuyerManagerHome.class
[11:56:55,930,WebServer] HTTP code=200 OK, Content-Length: 306
[11:56:56,058,WebServer] raw request=GET
/WebClassLoader@254811/com/company/ejb/buy/BuyerManager.class HTTP/1.1
[11:56:56,058,WebServer] loaderKey = WebClassLoader@254811/
[11:56:56,058,WebServer] filePath = com/company/ejb/buy/BuyerManager.class
[11:56:56,059,WebServer] loader = org.jboss.web.WebClassLoader@3e35b
[11:56:56,059,WebServer] loading className =
com.company.ejb.buy.BuyerManager
[11:56:56,059,WebServer] clazzUrl =
file:/home/dnloreto/JBoss-2.4.6_Tomcat-4.0.3/jboss/tmp/deploy/Default/buyerm
anagerEJB.jar/ejb1014.jar
[11:56:56,060,WebServer] Retrieving
jar:file:/home/dnloreto/JBoss-2.4.6_Tomcat-4.0.3/jboss/tmp/deploy/Default/bu
yermanagerEJB.jar/ejb1014.jar!/com/company/ejb/buy/BuyerManager.class
[11:56:56,061,WebServer] HTTP code=200 OK, Content-Length: 399
[11:56:56,168,ProxyProxy] getClasses
java.lang.ClassNotFoundException: com.company.ejb.buy.BuyerManagerHome
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.proxy.ProxyProxy.getClasses(ProxyProxy.java:35)
        at org.jboss.proxy.ProxyProxy.readResolve(ProxyProxy.java:49)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.io.ObjectStreamClass.invokeMethod(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at java.rmi.MarshalledObject.get(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:439)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:419)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at com.company.core.Worker.executeMethod(Worker.java:243)
[11:56:56,173,Worker] 905 *** Exception: java.lang.NullPointerException

********* End of Snippet *********


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to