[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WO5.2 and optimizeit: Class com.webobjects._bootstrap.WOBootstrap not found.
There is another way to activate OptimizeIt,
http://docs.info.apple.com/article.html?artnum=70067
This article is old, but I managed to use it as the changes are no too major.
It *is* NT specific, but should be adaptable and avoid the classpath struggle.
Well, most of it. :-)
bbum has a good information on PBX, Wo 5.2, and OptimizeIt here:
http://radio.weblogs.com/0100490/2002/11/22.html
HTH
Chuck
Jonathan Rochkind wrote:
> I don't really understand what's going on, but it MAY have something to
> do with seperate class loaders. I don't really understand how this works
> in Java, but there are (potentially) different class loaders, and
> WOBootstrap uses it's own class loader, and maybe this is causing a
> problem for OptimizeIt? But I'm not really familiar with OptimizeIt
> myself.
>
> So you could try NOT using WOBootstrap. WOBootstrap is new in WO
> 5.2---you can still launch apps the old way, without WOBootstrap. When
> you launch an app in PB with WOBootstrap, you'll see the "generated
> classpath" output in the console. You could use this entire list as the
> classpath for your OptimizeIt launch, and then 'Application' is the
> initial class, rather than com.webobjects._wobootstrap.WOBootstrap.
> This is the way I launch things with bugseeker2, my debugging software.
> Works for me. It's worth a try.
>
> Keep in mind the way the class path works: you need to actually list the
> specific JAR's involved, you can NOT just list a directory that contains
> JARs. Java classpath doesn't work that way. If you list a directory in
> the classpath, any .class files in that directory will be included in
> the classpath, but NOT any .JARs in the directory. JARs must be listed
> explicitly one by one with their complete path.
>
> Good luck,
> --Jonathan
>
> At 10:14 PM 3/20/2003 +0100, Kaj Hejer wrote:
>
>> At 17:50 -0300 20-03-03, Ricardo T Saito wrote:
>>
>>> Hi there !
>>>
>>> The file WOBootstrap.jar is in the classpath, but, just wondering ...
>>> Did
>>> you try do include :
>>> -classpath
>>> "/sw/share/java/junit/junit.jar:.:/Users/kajh/src/webobjects/medark/build/me
>>>
>>> dark.woa/WOBootstrap.jar"
>>
>>
>>
>> Hi!
>>
>> Thank you for answering!
>>
>> No, I didn't, but I did now :) and I got a bit further.
>>
>> First I added the classpath as you described. Then I got a new
>> errormessage:
>>
>> The pri module found by the audit system was not initialized.
>>
>> Then I found that a workaround for this one is to add
>>
>> -Xrunpri:dmp=1
>>
>> and so i did, and now I'm back at
>>
>> Class com.webobjects._bootstrap.WOBootstrap not found.
>>
>> Here is the full command:
>>
>> bash-2.05a$ java -Xrunpri:dmp=1 -XX:NewSize=2m -Xmx64m -Xms32m
>> -DWORootDirectory="/System" -DWOLocalRootDirectory=""
>> -DWOUserDirectory="/Users/kajh/src/webobjects/medark/build"
>> -DWOEnvClassPath="" -DWOApplicationClass=Application
>> -DWOPlatform=MacOS -Dcom.webobjects.pid=15389
>> -Xbootclasspath/a:/usr/local/optimizeit/lib/oibcp.jar
>> intuitive.audit.Audit com.webobjects._bootstrap.WOBootstrap -WOPort
>> 8888 -WOAutoOpenInBrowser false -WODebuggingEnabled true
>> -Xboundthreads com.webobjects._bootstrap.WOBootstrap -classpath
>> "/sw/share/java/junit/junit.jar:.:/Users/kajh/src/webobjects/medark/build/medark.woa/WOBootstrap.jar"
>> com.webobjects._bootstrap.WOBootstrap
>> Optimizeit Profiler 5.0 build Unknown Audit System.
>> (c) 1997-2002 Borland.
>> Port is 1470
>> OptimizeIt generic Audit System. [Hotspot runtime detected]
>> Class com.webobjects._bootstrap.WOBootstrap not found.
>>
>>
>> I have also tried to start my woapp from the OptimiseIt Profiler
>> client (the one I start from the commandline with
>> /usr/local/optimizeit/OptimizeIt.
>>
>> Then I also got the same message about
>> com.webobjects._bootstrap.WOBootstrap could not be found.
>>
>> I found the following in the console in the OptimizeIt client:
>>
>> ---
>> /usr/bin/java -Xrunpri:filter="/var/tmp/tmp.9.XPRPop" -DAUDIT=jni
>> -Xbootclasspath/a:"/usr/local/optimizeit/lib/oibcp.jar" -XX:NewSize=2m
>> -Xmx64m -Xms32m -classpath
>> "/Users/kajh/src/webobjects/medark/build/medark.woa/WOBootstrap.jar:/Users/kajh/src/webobjects/medark/build/medark.woa/Contents/Resources/Java/medark.jar:/sw/share/java/junit/junit.jar:.:/Users/kajh/src/webobjects/medark/build/medark.woa:/usr/local/optimizeit/lib/optit.jar"
>> intuitive.audit.Audit -port 57732 -dllpath
>> "/usr/local/optimizeit/lib/native/"
>> com.webobjects._bootstrap.WOBootstrap -DWORootDirectory="/System"
>> -DWOLocalRootDirectory=""
>> -DWOUserDirectory="/Users/kajh/src/webobjects/medark/build/medark.woa"
>> -DWOEnvClassPath="/sw/share/java/junit/junit.jar:.:/Users/kajh/src/webobjects/medark/build/medark.woa/WOBootstrap.jar"
>> -DWOApplicationClass=Application -DWOPlatform=MacOS
>> -Dcom.webobjects.pid=16456
>> Launching done
>>
>> Application com.webobjects._bootstrap.WOBootstrap started on Thu Mar
>> 20 21:53:15 CET 2003.
>>
>> Application com.webobjects._bootstrap.WOBootstrap exited on Thu Mar 20
>> 21:53:24 CET 2003.
>>
>> ---
>>
>>
>> Thanks again for looking into this issue!
>>
>>
>> -Kaj :)
>> _______________________________________________
>> WebObjects-dev mailing list
>> WebObjects-dev@xxxxxxxxxxxxx
>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
>
> _______________________________________________
> WebObjects-dev mailing list
> WebObjects-dev@xxxxxxxxxxxxx
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
--
Chuck Hill chill@xxxxxxxxxxxxxxxxxx
Global Village Consulting Inc. http://www.global-village.net