Tomcat Server fails to start in profile mode. [message #190714] |
Thu, 29 March 2007 10:58  |
Eclipse User |
|
|
|
Hi I can't start tomcat server in profiling mode.
eclipse 3.2.2
TPTP 4.3.2
WST 1.5.3
!ENTRY org.eclipse.core.jobs 4 2 2007-03-29 10:12:55.645
!MESSAGE An internal error occurred during: "Starting server - Tomcat v5.5
Server @ localhost".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConf igurationDelegate.launch(TomcatLaunchConfigurationDelegate.j ava:68)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:639)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:565)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:558)
at org.eclipse.wst.server.core.internal.Server.start(Server.jav a:1229)
at
org.eclipse.wst.server.core.internal.Server.synchronousStart (Server.java:1614)
at
org.eclipse.wst.server.core.internal.StartServerJob.run(Star tServerJob.java:34)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
I can't get the command line parameters if I runt the server as profiling
mode.
Running the server as non profiling mode
"C:\Program Files\Java\jre1.5.0_06\bin\javaw.exe"
-XrunpiAgent:server=enabled
-Dcatalina.base=C:\workspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp0
"-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5"
"-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat
5.5\common\endorsed"
-Dcatalina.base=C:\workspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp0
-Dcatalina.base=C:\workspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp0
-Dcatalina.base=C:\workspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp0
-classpath "C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\bootstrap.jar" org.apache.catalina.startup.Bootstrap start
Please help, thanks
|
|
|
|
|
|
Re: Tomcat Server fails to start in profile mode. [message #190760 is a reply to message #190753] |
Thu, 29 March 2007 14:56  |
Eclipse User |
|
|
|
Assuming you get past the ArrayIndexOutOfBoundsException, a second easy
way to to cause this error is not to have the piAgent library available
to the launch configuration. If not available, you will see something
like the following in the Console view:
Error occurred during initialization of VM
Could not find agent library on the library path or in the local
directory: piAgent
You can look in Bug 174863[1] for the steps I use to make it available
if you encounter this problem.
Cheers,
Larry
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=174863
Asad wrote:
>
>
> Thanks Larry, I have done that and I don't see any errors. I can
> profile java application(does that mean I don't have problem with TPTP),
> but I would like to profile a web application.
>
> I have tried all kind of stuff(reinstalling TPTP, eclipse, tomcat,
> Passing different argument to the VM etc), but all in vain.
> I keep getting
> "An internal errror occured during "Starting server-Tomcat v5.5 Server
> @ localhost""
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.25052 seconds