Can Startup class be invoked from a EAR file ?

Hi

I need help in setting up my start up class. I am using weblogic 6.1 sp2.

I have deployed my EAR file with multiple jar files ( one jar per ejb ) and set the class path in the manifest file of each jar. I have a jar file for common/supporting classes inside the ear file. And I have my start up class in the common jar file. I have setup the startup class using the console. I am running only the admin server, I dont have any managed servers. When I start the server I get the following error...

<May 6, 2002 9:18:11 AM EDT> <Critical> <WebLogicServer> <Failed to invoke startup class "com.wellmanage.pmw.service.startup.PmwStartup", java.lang.ClassNotFoundException: com.wellmanage.pmw.service.startup.PmwStartup>

If I add the common jar ( with the start up class in it) to the class path then I dont get this error. Why can I not have the startup class in the EAR file and start it ? Basically I dont want to add the startup class to the class path. Is there any way to accomplish this ?

And the startup class need to read a properties file which is part of the EAR file too.

Please help

Thanks

Srikanth

[1194 byte] By [smadarapua] at [2007-9-19]
# 1
? no body knows an answer ? :-(
smadarapua at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Hi,

Classes in ear file and other classes are loaded by different class loaders. You must give the weblogic , information that this is startup class in the application.xml file(If allowed) or weblogic specific xml file for that ear file.

Try posting you query on weblogic news group. Also let me know if you get any useful info.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks

Ashwani Kalra

akalra@ggn.aithent.com

http://www.geocities.com/ashwani_kalra/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ash_ka at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 3
please help !!
smadarapua at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 4
put your application jar file in the APPCPATH environment before you run the application in the command line.
quenniea at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 5
hi Instead of startup class use startup servlet which will be part of your ear file. I hope this will help youvishal
vishal19a at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...
# 6

The ear file is loaded after the weblogic server is sarted. And the start up class will be loaded before the ear file is loaded. So there is no way a startup class to be loaded from a ear file. Why do you not want to add the startup class to the class path.

And because the startup class is loaded before the ear file is loaded the properties file also cannobe read from the ear file.

rajesh978a at 2007-7-8 > top of java,Enterprise & Remote Computing,Enterprise Technologies...