[
https://issues.apache.org/jira/browse/JCR-4308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487804#comment-16487804
]
Julian Reschke commented on JCR-4308:
-------------------------------------
The update doesn't work yet; see attached diff in
https://issues.apache.org/jira/secure/attachment/12924805/JCR-4308.diff --
jackrabbit-standalone only comes up if the change includes:
{noformat}
---
jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java
(Revision 1832090)
+++
jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java
(Arbeitskopie)
@@ -246,7 +246,7 @@
private void prepareWebapp(File file, File repository, File tmp) {
webapp.setContextPath("/");
webapp.setWar(file.getPath());
- webapp.setExtractWAR(false);
+ webapp.setExtractWAR(true);
webapp.setTempDirectory(tmp);
ServletHolder servlet =
{noformat}
Otherwise, the log shows:
{noformat}
2018-05-23 17:33:20.869 WARN [main] WebAppContext.java:554 Failed
startup of context
o.e.j.w.WebAppContext@573f2bb1{/,jar:file:///C:/projects/apache/jackrabbit/trunk/jackrabbit-standalone/target/jac
krabbit-standalone-2.17.4-SNAPSHOT.jar!/,UNAVAILABLE}{C:\projects\apache\jackrabbit\trunk\jackrabbit-standalone\target\jackrabbit-standalone-2.17.4-SNAPSHOT.jar}
java.io.FileNotFoundException: JAR entry WEB-INF/lib/aopalliance-1.0.jar!/ not
found in
C:\projects\apache\jackrabbit\trunk\jackrabbit-standalone\target\jackrabbit-standalone-2.17.4-SNAPSHOT.jar
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142)
at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
at
org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:438)
at
org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:355)
at
org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:173)
at
org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:107)
at
org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
at org.eclipse.jetty.server.Server.start(Server.java:419)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:386)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.jackrabbit.standalone.Main.run(Main.java:172)
at org.apache.jackrabbit.standalone.Main.main(Main.java:59)
{noformat}
I suspect this has either something to do with the way we build the WAR file,
or how jackrabbit-standalone initializes Jetty. FWIW, deploying
jackrabbit-webapp in Jetty seems to work.
(and yes, I'm aware of the fact that more changes will be needed to get JSP
working again).
Help appreciated.
> update Jetty to 9.4.*
> ---------------------
>
> Key: JCR-4308
> URL: https://issues.apache.org/jira/browse/JCR-4308
> Project: Jackrabbit Content Repository
> Issue Type: Task
> Components: parent
> Reporter: Julian Reschke
> Priority: Major
> Attachments: JCR-4308.diff
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)