aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat Startup Error - Javassist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat Startup Error - Javassist" Watch "Tomcat Startup Error - Javassist" New topic
Author

Tomcat Startup Error - Javassist

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9384
    
    2

Guys,

I have a strange error when I try to start up my Tomcat which is configured in Eclipse. Below is the stack trace:



What I find strange is that this happens only if I try to start the Tomcat from within Eclipse. If I build the project manually and deploy it to Tomcat and fire it up, it works perfectly fine. Why this should happen when I try to start my Eclipsified Tomcat?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ilia Sretenskii
Greenhorn

Joined: Aug 05, 2014
Posts: 2
Joe Harry wrote:Guys,
I have a strange error when I try to start up my Tomcat which is configured in Eclipse.

Hello, Joe!
I have had the same issue and even filed it as https://issues.jboss.org/browse/JASSIST-231
But it was related to the chosen class loader.
When running on Eclipse it has to be a class of the same Maven artifact that contains the superclass of the proxy factory.
If does not have a class loader, only then use the class loader of the custom proxy factory.
My custom proxy factory code is below.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41879
    
  63
2.5 years later it's unlikely Joe is still waiting for an answer, but it does highlight one of the multitudes of problems introduced by running servers inside of IDEs. I advise to use standalone servers instead.


Ping & DNS - my free Android networking tools app
Ilia Sretenskii
Greenhorn

Joined: Aug 05, 2014
Posts: 2
Ulf Dittmer wrote:2.5 years later it's unlikely Joe is still waiting for an answer, but it does highlight one of the multitudes of problems introduced by running servers inside of IDEs. I advise to use standalone servers instead.

I am running the server not inside of IDEs, but inside of Apache Maven, made with Eclipse Equinox OSGi core framework, which is still a multi artifact solution which requires careful attention to class loaders artifact visibility.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Startup Error - Javassist