You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Chang <th...@yahoo.de> on 2008/01/10 13:43:35 UTC

Problem by starting Tomcat after setting the spring-agent.jar

Hi all,

I installed the Tomcat 5.5.17. After I set the java-agent in ther catalina.bat as follow:
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"%CATALINA_BASE%\server\lib\spring-agent.jar

After that I can't start the Tomcat anymore. 

Somebody knows why?

Regards

Thomas



       
---------------------------------
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 

RE: Problem by starting Tomcat after setting the spring-agent.jar

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Thomas Chang [mailto:thomas2004ch@yahoo.de] 
> Subject: RE: Problem by starting Tomcat after setting the 
> spring-agent.jar
> 
> Error opening zip file: 
> C:\Programme\Apache\apache-tomcat-5.5.17\server\lib\spri
> ng-agent.jar -Djava.util.logging.manager
> Error occurred during initialization of VM

The C: and backward slashes may be confusing the JVM while trying to
load the agent.  I put the spring-agent.jar in Tomcat's server/lib, and
set JAVA_OPTS with:
  set JAVA_OPTS=-javaagent:../server/lib/spring-agent.jar

Tomcat was then able to start properly.  Using your setting for
JAVA_OPTS caused a failure similar to what your are seeing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem by starting Tomcat after setting the spring-agent.jar

Posted by Thomas Chang <th...@yahoo.de>.
I did what you said and here is the message. Can you understand what it is?

C:\Programme\Apache\apache-tomcat-5.5.17\bin>catalina.bat run
Using CATALINA_BASE:   C:\Programme\Apache\apache-tomcat-5.5.17
Using CATALINA_HOME:   C:\Programme\Apache\apache-tomcat-5.5.17
Using CATALINA_TMPDIR: C:\Programme\Apache\apache-tomcat-5.5.17\temp
Using JRE_HOME:        C:\Programme\Java\jdk1.5.0_09
Error opening zip file: C:\Programme\Apache\apache-tomcat-5.5.17\server\lib\spri
ng-agent.jar -Djava.util.logging.manager
Error occurred during initialization of VM
agent library failed to init: instrument

C:\Programme\Apache\apache-tomcat-5.5.17\bin>





"Caldarale, Charles R" <Ch...@unisys.com> schrieb: > From: Thomas Chang [mailto:thomas2004ch@yahoo.de] 
> Subject: Re: Problem by starting Tomcat after setting the 
> spring-agent.jar
> 
> The problem is: As I double click the "startup.bat", the 
> cmd-console just come out very short a disappear.

Stop trying to debug with a GUI.  Start a command prompt, cd to the
Tomcat bin directory, and enter "catalina.bat run" (without the quotes).
This will kick off Tomcat in the current window and you'll be able to
see any messages it generates.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



       
---------------------------------
Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

RE: Problem by starting Tomcat after setting the spring-agent.jar

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Thomas Chang [mailto:thomas2004ch@yahoo.de] 
> Subject: Re: Problem by starting Tomcat after setting the 
> spring-agent.jar
> 
> The problem is: As I double click the "startup.bat", the 
> cmd-console just come out very short a disappear.

Stop trying to debug with a GUI.  Start a command prompt, cd to the
Tomcat bin directory, and enter "catalina.bat run" (without the quotes).
This will kick off Tomcat in the current window and you'll be able to
see any messages it generates.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem by starting Tomcat after setting the spring-agent.jar

Posted by Thomas Chang <th...@yahoo.de>.
I start it in cmd-console but it's the same. :-(



Vinu Varghese <vi...@x-minds.org> schrieb: Don't double click, type startup from a console - I mean command prompt, 
You'll see some thing in the console :-)


Vinu Varghese

*I use mozilla Thunderbird. Do you ?*

 



Thomas Chang wrote:
> The problem is: As I double click the "startup.bat", the cmd-console just come out very short a disappear. Even worse, there is nothing wrote into the log. I am quite stranged. :-(
>
> I copy the spring-agent.jar under the /server/lib.
>
> If I commend out the "set JAVA_OPTS=...", Tomcat can be started.
>
>
>
> Vinu Varghese  schrieb: Any stack trace?
>
> Thomas Chang wrote:
>   
>> Hi all,
>>
>> I installed the Tomcat 5.5.17. After I set the java-agent in ther catalina.bat as follow:
>> set JAVA_OPTS=%JAVA_OPTS% -javaagent:"%CATALINA_BASE%\server\lib\spring-agent.jar
>>
>> After that I can't start the Tomcat anymore. 
>>
>> Somebody knows why?
>>
>> Regards
>>
>> Thomas
>>
>>
>>
>>        
>> ---------------------------------
>> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 
>>   
>>     
>
>   


       
---------------------------------
Ihr erstes Fernweh? Wo gibt es den schönsten Strand. 

Re: Problem by starting Tomcat after setting the spring-agent.jar

Posted by Vinu Varghese <vi...@x-minds.org>.
Don't double click, type startup from a console - I mean command prompt, 
You'll see some thing in the console :-)


Vinu Varghese

*I use mozilla Thunderbird. Do you ?*

 



Thomas Chang wrote:
> The problem is: As I double click the "startup.bat", the cmd-console just come out very short a disappear. Even worse, there is nothing wrote into the log. I am quite stranged. :-(
>
> I copy the spring-agent.jar under the /server/lib.
>
> If I commend out the "set JAVA_OPTS=...", Tomcat can be started.
>
>
>
> Vinu Varghese <vi...@x-minds.org> schrieb: Any stack trace?
>
> Thomas Chang wrote:
>   
>> Hi all,
>>
>> I installed the Tomcat 5.5.17. After I set the java-agent in ther catalina.bat as follow:
>> set JAVA_OPTS=%JAVA_OPTS% -javaagent:"%CATALINA_BASE%\server\lib\spring-agent.jar
>>
>> After that I can't start the Tomcat anymore. 
>>
>> Somebody knows why?
>>
>> Regards
>>
>> Thomas
>>
>>
>>
>>        
>> ---------------------------------
>> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 
>>   
>>     
>
>   

Re: Problem by starting Tomcat after setting the spring-agent.jar

Posted by Thomas Chang <th...@yahoo.de>.
The problem is: As I double click the "startup.bat", the cmd-console just come out very short a disappear. Even worse, there is nothing wrote into the log. I am quite stranged. :-(

I copy the spring-agent.jar under the /server/lib.

If I commend out the "set JAVA_OPTS=...", Tomcat can be started.



Vinu Varghese <vi...@x-minds.org> schrieb: Any stack trace?

Thomas Chang wrote:
> Hi all,
>
> I installed the Tomcat 5.5.17. After I set the java-agent in ther catalina.bat as follow:
> set JAVA_OPTS=%JAVA_OPTS% -javaagent:"%CATALINA_BASE%\server\lib\spring-agent.jar
>
> After that I can't start the Tomcat anymore. 
>
> Somebody knows why?
>
> Regards
>
> Thomas
>
>
>
>        
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 
>   

-- 
Vinu Varghese

*I use mozilla Thunderbird. Do you ?*

 



       
---------------------------------
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

Re: Problem by starting Tomcat after setting the spring-agent.jar

Posted by Vinu Varghese <vi...@x-minds.org>.
Any stack trace?

Thomas Chang wrote:
> Hi all,
>
> I installed the Tomcat 5.5.17. After I set the java-agent in ther catalina.bat as follow:
> set JAVA_OPTS=%JAVA_OPTS% -javaagent:"%CATALINA_BASE%\server\lib\spring-agent.jar
>
> After that I can't start the Tomcat anymore. 
>
> Somebody knows why?
>
> Regards
>
> Thomas
>
>
>
>        
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 
>   

-- 
Vinu Varghese

*I use mozilla Thunderbird. Do you ?*

 


RE: Problem by starting Tomcat after setting the spring-agent.jar

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Thomas Chang [mailto:thomas2004ch@yahoo.de] 
> Subject: Problem by starting Tomcat after setting the spring-agent.jar
> 
> After that I can't start the Tomcat anymore. 
> Somebody knows why?

Not without some real information, such as the contents of the various
Tomcat logs.

Watch out for spaces in path names.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org