[ 
https://issues.apache.org/jira/browse/MTOMCAT-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14544705#comment-14544705
 ] 
Olivier Lamy (*$^¨%`£) commented on MTOMCAT-234:
------------------------------------------------

So guys.
FYI there is a branch available here: 
http://svn.apache.org/repos/asf/tomcat/maven-plugin/branches/tc8.x/ or in 
github https://github.com/apache/tomcat-maven-plugin .
Bad but I don't have the bandwith ATM to fix last issues.
So ATM, it works except for jsp compilation.
Logs:
{code}
SEVERE: Servlet.service() for servlet [jsp] in context with path 
[/multi-config] threw exception [java.lang.LinkageError: loader constraint 
violation: when resolving method "org.apache.jasper.r
untime.InstanceManagerFactory.getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg/apache/tomcat/InstanceManager;"
 the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the 
current class, org/apache/jsp/index_jsp, and the class loader (instance of 
org/codehaus/plexus/classworlds/realm/ClassRealm) for resolved class, 
org/apache/jasper/runtime/InstanceManagerFactory
, have different Class objects for the type 
.getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg/apache/tomcat/InstanceManager;
 used in the signature] with root cause
java.lang.LinkageError: loader constraint violation: when resolving method 
"org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg/apache/tomcat/
InstanceManager;" the class loader (instance of 
org/apache/jasper/servlet/JasperLoader) of the current class, 
org/apache/jsp/index_jsp, and the class loader (instance of 
org/codehaus/plexus/cla
ssworlds/realm/ClassRealm) for resolved class, 
org/apache/jasper/runtime/InstanceManagerFactory, have different Class objects 
for the type .getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg
/apache/tomcat/InstanceManager; used in the signature
{code}

To reproduce:  mvn clean install -Prun-its 
Then see the file: 
tomcat8-maven-plugin/target/test-classes/tomcat-run-multi-config/log.txt


So any help/patches/pull request are accepted and will be appreciated :-)
Cheers


> Tomcat8 Maven Plugin
> --------------------
>
>                 Key: MTOMCAT-234
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-234
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Dependency upgrade
>    Affects Versions: 2.0, 2.1, 2.2
>         Environment: Maven 3.1, Tomcat8.0RC1, Oracle JDK7u25
>            Reporter: Petr Novak
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Blocker
>             Fix For: 3.0
>
>
> Please provide initial version of Tomcat8 Maven Plugin. 
> I tried the recommendations in 
> http://tomcat.10.x6.nabble.com/Tomcat-8-Tomcat-Maven-Plugin-2-2-Tomcat8-Maven-Plugin-td4995858.html#none
> but the guideline 
> http://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/adjust-embedded-tomcat-version.html
> does not work for Tomcat8 .
> The problem is in changed Tomcat 8 API, the maven throws folloving exception:
>  at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:142)
>  ... 20 more
> by: java.lang.NoSuchMethodError: 
> org.apache.catalina.startup.Tomcat.setDefaultRealm(Lorg/apache/catalina/Realm;)V
>  at 
> org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:999)
>  at 
> org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:514)
>  at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
>  ... 20 more
>  The method setDefaultRealm is deprecated in Tomcat7 and was removed in 
> Tomcat8 as described in documentation:
> http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/startup/Tomcat.html#setDefaultRealm(org.apache.catalina.Realm)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to