File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with path to WebLogic 6.1 startup class

 
meital ben
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I am trying to use WebLogic startup class.
I have done all that was written in the documentation and I add the path to the CLASSPATH and still I get the same message -
<Failed to invoke startup class "className", java.lang.ClassNotFoundException >
Does any one have idea ???
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How have you added your startup class to the CLASSPATH?
There are two ways to do this - either through the admin console (Remote Start options) and by using the PRE and POST_CLASSPATH variables in the WLS startup scripts/batch files.
BTW, I'm moving this to the BEA/WebLogic forum since it is product related.
Also, could you please take a look at the naming policy and edit your profile to meet the guidelines - thanks.
Regards
Simon
 
meital ben
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added the startup class to the CLASSPATH
in "startWebLogic.cmd" script
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can u paste ur startup cmd file here.
 
meital ben
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the config file:
<StartupClass ClassName="wlserver6.1.config.mydomain.StartupClasses.myPackage.MyStartupClass "FailureIsFatal="false" Name="MyStartupClass" Targets="myserver"/>
in the startWebLogic.cmd I added to the CLASSPATH:
C:\bea\wlserver6.1\config\mydomain\ StartupClasses\myPackage\MyStartupClass
[ June 06, 2002: Message edited by: meital ben ]
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include this in CLASSPATH
C:\bea\wlserver6.1\config\mydomain\
and not
C:\bea\wlserver6.1\config\mydomain\ StartupClasses\myPackage\MyStartupClass
 
meital ben
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer...
but,
I changed the CLASSPATH as you offered
and still it didn't work
What am I doing wrong ??
 
meital ben
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks - it works ...
I changed also the path in the config.xml file to the continuation of the path in the CLASSPATH only
meaning-
in the config.xml:
ClassName="myPackage.MyStartupClass
the CLASSPATH:
.\config\mydomain\StartupClasses
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic