Folks,
I'm trying to create some integration tests with the Maven plugin.
OS: Fedora 20 64 bit
Windows 7 Home Premium 64 bit
JRE: 1.7.0_51
JDK: 1.7.0_51
Maven: 3.12 on Fedora
3.10 on Windows
Plugin: 2.2
First thing is I guess I've misunderstood the <fork>true</fork>
configuration option. I was hoping it would start up a Tomcat process in
a separate JVM, but that doesn't seem to happen (at least with the
Tomcat 6 plugin and JRE/JDK 1.6).
However, I need <fork>true</fork> so I can then run some integration
tests. Setting this causes the following errors (from Maven 3.12 on Linux):
Tomcat 6
--------
Exception in thread "Thread-2" java.lang.NoClassDefFoundError:
org/apache/catalina/Authenticator
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at
org.apache.tomcat.maven.common.run.EmbeddedRegistry.shutdownAll(EmbeddedRegistry.java:109)
at
org.apache.tomcat.maven.common.run.EmbeddedRegistry$1.run(EmbeddedRegistry.java:69)
Caused by: java.lang.ClassNotFoundException:
org.apache.catalina.Authenticator
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 6 more
Tomcat 7
--------
ERROR: IllegalAccessException for stop method in class
org.apache.tomcat.maven.plugin.tomcat7.run.ExtendedTomcat
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tomcat.maven.common.run.EmbeddedRegistry.shutdownAll(EmbeddedRegistry.java:110)
at
org.apache.tomcat.maven.common.run.EmbeddedRegistry$1.run(EmbeddedRegistry.java:69)
Caused by: java.lang.NoClassDefFoundError:
org/apache/tomcat/util/ExceptionUtils
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:234)
at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:351)
I'm guessing that this is due to the new security constraints with JRE
1.7.0_51.
(Apologies for ugly mail wrapping)
Any ideas as to how this can be addressed?
Thanks,
Mark
/mde/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org