Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tomcat Server fails to start in profile mode.
Tomcat Server fails to start in profile mode. [message #190714] Thu, 29 March 2007 14:58 Go to next message
Asad is currently offline AsadFriend
Messages: 2
Registered: July 2009
Junior Member
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 #190722 is a reply to message #190714] Thu, 29 March 2007 15:41 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
This looks like the error you get when Profile on Server is run without
TPTP being installed. Assuming some of TPTP is working, you might try
starting your Eclipse with "-clean -debug" arguments included and
examine the Error Log view for TPTP bundles that aren't resolving due to
missing requirements.

Cheers,
Larry

Asad wrote:
> 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 #190729 is a reply to message #190722] Thu, 29 March 2007 15:59 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Forgot to mention that after you get Tomcat starting, you will still
have problems due to Bug 174863, you will still have problems. The fix
is currently in the approval process for WTP 1.5.4. This issue is
already fixed for Eclipse 3.3M6/ WTP 2.0M6. If you aren't ready to try
M6, you will have to drop back to WTP 1.5.2 or grab the SDK version of
TPTP and apply a simple fix to the
org.eclipse.tptp.platform.profile.server.wst plug-in.

Cheers,
Larry


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=174863

Larry Isaacs wrote:
> This looks like the error you get when Profile on Server is run without
> TPTP being installed. Assuming some of TPTP is working, you might try
> starting your Eclipse with "-clean -debug" arguments included and
> examine the Error Log view for TPTP bundles that aren't resolving due to
> missing requirements.
>
> Cheers,
> Larry
>
> Asad wrote:
>> 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 #190753 is a reply to message #190729] Thu, 29 March 2007 18:08 Go to previous messageGo to next message
Asad is currently offline AsadFriend
Messages: 2
Registered: July 2009
Junior Member
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""
Re: Tomcat Server fails to start in profile mode. [message #190760 is a reply to message #190753] Thu, 29 March 2007 18:56 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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""
>
>
>
>
>
Previous Topic:old project not "Dynamic"
Next Topic:SSE & XML Catalog binding
Goto Forum:
  


Current Time: Fri Apr 19 00:03:59 GMT 2024

Powered by FUDForum. Page generated in 0.02306 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top