[ https://issues.apache.org/jira/browse/MTOMCAT-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14570844#comment-14570844 ]
Constantino Cronemberger commented on MTOMCAT-266: -------------------------------------------------- It looks like this is similar to MTOMCAT-83. I understand fork is used for integration tests, so it will not really cover what I really need and maybe what the reporter wants as well. In my case I would like to run tomcat with this Java argument: -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager I tried to add it in the systemProperties element but it did not work because Maven also uses JUL so it gets initialized before this system property is set. The option I have now is to pass this argument to Maven, but then I would need to also add to Maven classpath all Lo4j2 jars which is not a good idea. Then I searched for some options to let Tomcat be started in a separate JVM and I found this fork configuration, but now I know it will not work for me. So maybe we will need another option to control whether we want to let the forked process running or not. > The <fork> attribute crashes Tomcat on startup > ---------------------------------------------- > > Key: MTOMCAT-266 > URL: https://issues.apache.org/jira/browse/MTOMCAT-266 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat7 > Affects Versions: 2.2 > Environment: Windows 8.1, Java 1.7.0_51 and Maven 3.2.1 > Reporter: M. R. > Assignee: Olivier Lamy (*$^¨%`£) > Priority: Minor > Attachments: tomcat-plugin-crash.txt > > > The plugin works perfectly running Tomcat with my project web application. > I do "mvn tomcat7:run" and the server is started, the webapp is deployed and > I can browse to it. > If I add the <fork /> attribute, though, the server crashes. > Here's (a portion of) my pom: > <plugin> > <groupId>org.apache.tomcat.maven</groupId> > <artifactId>tomcat7-maven-plugin</artifactId> > <version>2.2</version> > <configuration> > <address>localhost</address> > <port>8080</port> > <path>/</path> > <uriEncoding>UTF-8</uriEncoding> > </configuration> > </plugin> > (I'll add the stacktrace later) -- 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