On 12/6/2013 3:28 PM, Frank Lugalla wrote:
Hello  All,
I am  updating  the Tomcat JVM configuration to enable java assertions as below:

a.       Once tomcat server is configured in local eclipse,I   pressed  F3 on 
it.

b.      Click on Open launch configuration link.

c.       Go to Arguments tab.

d.      Add -ea at the beginning of JVM arguments.
Then  Finally  I  restarted  my   tomcat
Here is  what  I am  getting....
                                                                   Server 
Tomcat v7.0 Server at localhost failed to start.
                                                                  Error: Could 
not find or load main class -ea
Please  anybody  who knows  about this  problem.................?Thank  you


Frank

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


Works for me:

OS: Windows 7 Home Premium 64 bit
IDE: Eclipse Kepler J2EE (with lots of plugins)
JDK: JDK 1.7.0_45
Tomcat: 7.0.42 (launched from within Eclipse)

VM arguments in the Arguments tab of the Edit launch configuration properties window:

-ea -Dcatalina.base="C:\Users\mdeggers\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dcatalina.home="C:\Users\mdeggers\Apache\apache-tomcat-7.0.42" -Dwtp.deploy="C:\Users\mdeggers\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs="C:\Users\mdeggers\Apache\apache-tomcat-7.0.42\endorsed"

Verified by looking at the running Tomcat with VisualVM

. . . just my two cents
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to