Page 1 of 1

Problem with tomcat when deploying broadleaf demosite

Posted: Sat Aug 02, 2014 2:25 pm
by mercury1231
I'm trying to bring up the demosite project and test it from browser. I'm yet having a problem with the tomcat deployment. I tried both maven-tomcat-plugin 2.2 with tomcat 7.0.54 and another standalone tomcat 7.0.54 instance. Both had the same problem as follows,

Code: Select all

INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.tomcat.jdbc.pool.FairBlockingQueue$FairIterator.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
   at org.apache.tomcat.jdbc.pool.FairBlockingQueue.iterator(FairBlockingQueue.java:233)
   at org.apache.tomcat.jdbc.pool.ConnectionPool.checkIdle(ConnectionPool.java:989)
   at org.apache.tomcat.jdbc.pool.ConnectionPool.checkIdle(ConnectionPool.java:981)
   at org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner.run(ConnectionPool.java:1348)
   at java.util.TimerThread.mainLoop(Timer.java:555)
   at java.util.TimerThread.run(Timer.java:505)

Exception in thread "PoolCleaner[461669469:1407007230242]" java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/FairBlockingQueue$FairIterator
   at org.apache.tomcat.jdbc.pool.FairBlockingQueue.iterator(FairBlockingQueue.java:233)
   at org.apache.tomcat.jdbc.pool.ConnectionPool.checkIdle(ConnectionPool.java:989)
   at org.apache.tomcat.jdbc.pool.ConnectionPool.checkIdle(ConnectionPool.java:981)
   at org.apache.tomcat.jdbc.pool.ConnectionPool$PoolCleaner.run(ConnectionPool.java:1348)
   at java.util.TimerThread.mainLoop(Timer.java:555)
   at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.FairBlockingQueue$FairIterator
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
   ... 6 more


I also tried adding tomcat-jdbc dependency explicitly in both $CATALINA_HOME/lib and in the pom dependency but it didn't help. I used jar tvf to show the content of the jar files so I'm sure the class is in there.

I don't know what went wrong. To be honest there was a while this demo site worked actually on another dev machine but now it always gives this error.

Re: Problem with tomcat when deploying broadleaf demosite

Posted: Thu Aug 14, 2014 9:59 pm
by phillipuniverse
Try putting the dependency not in the dependencies for your main pom.xml, but rather in the dependency for the plugin itself. The <dependency> element would be a sub-element of the <plugin> definition for the Tomcat plugin.