Hey guys,
I've been beating my head for over a week on the proper configuration for weblogic classpath that allows ejb's to hot-deploy and package visability between ejbs and helper classes defined in the same ejb package. I learned the following. If you have a ejb helper class that is defined in the same package as the ejb but you want the helper class to be accessable by other classes running int he wls vm. Three things must be setup:
1) The helper.class file should be in the jar file.
2) The helper.class should not be on either the classpath or the weblogic.class.path
3) A method int he ejb remote or home interface must reference the helper class.
And finally EJB class files should never be on the weblogic.class.path or the classpath.
I hope this helps.
-
Weblogic class paths . . I finally understand (3 messages)
- Posted by: Web Master
- Posted on: September 07 2000 10:44 EDT
Threaded Messages (3)
- Weblogic class paths . . I finally understand by Raghu Viswanathan on September 11 2000 04:36 EDT
- Weblogic class paths . . I finally understand by Raghu Viswanathan on September 11 2000 04:40 EDT
- Weblogic class paths . . I finally understand by Eric Ma on September 11 2000 12:19 EDT
-
Weblogic class paths . . I finally understand[ Go to top ]
- Posted by: Raghu Viswanathan
- Posted on: September 11 2000 04:36 EDT
- in response to Web Master
Hi,
-
Weblogic class paths . . I finally understand[ Go to top ]
- Posted by: Raghu Viswanathan
- Posted on: September 11 2000 04:40 EDT
- in response to Web Master
Hi,
Sounds like you had a tough time..
Actually.. when the weblogic server compes up it runs a class path servlet..This is the one causing all the troubles..So u should try to keep your helper classes,ejb ect weblogic/classes directory...
your servlets in servletclasses directory..
other wise during runtime it generally throws thw dreaded classcast exception..due to problmes between servlet class loaders and ordinary class loaders...
Please get it touch if you need more help.. or just ignore this message if u know it already..
Thanks
Raghu
-
Weblogic class paths . . I finally understand[ Go to top ]
- Posted by: Eric Ma
- Posted on: September 11 2000 12:19 EDT
- in response to Raghu Viswanathan
I thought the class files for helper classes, EJB remote and hone interfaces should be under %WEBLOGIC_HOME%/myserver/serverclasses, which are automatically picked up when WebLogic starts up. Am I correct or werong?