Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Startup Error - Javassist

 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ilia Sretenskii
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ilia Sretenskii
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic