SCM Manager on Apache Tomcat 8

271 views
Skip to first unread message

Manuel Jesús Recena Soto

unread,
May 23, 2014, 4:06:43 AM5/23/14
to scmma...@googlegroups.com
Hello,

Has anybody deployed SCM Manager on Apache Tomcat 8?
I'm finding few issues related to template engine. SCM can not load
the templates files.

I'm going to configure a local development environment with:

SCM Manager 1.38
Apache Tomcat 8.0.5
JDK 1.7
Eclipse

to get more information.

Regards,

--
Manuel Jesús Recena Soto
Founder, CEO & CTO of klicap - ingeniería del puzle

mobile phone +34 664 000 629
work phone + 34 954 894 322
www.klicap.es | blog.klicap.es

Sebastian Sdorra

unread,
May 23, 2014, 4:23:08 AM5/23/14
to scmma...@googlegroups.com
Hi,
I'm using SCM-Manager with tomcat 8 for development. But it works fine for me.

SCM-Manager 1.39-SNAPSHOT
Apache Tomcat 8.0.3
JDK 1.7
Netbeans

Did you get an exception?

Sebastian


--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manuel Jesús Recena Soto

unread,
May 23, 2014, 4:28:55 AM5/23/14
to scmma...@googlegroups.com
Hello Sebastian,

It sounds great. I thought you was using jetty.

Regards,

Sebastian Sdorra

unread,
May 23, 2014, 4:49:36 AM5/23/14
to scmma...@googlegroups.com
I use both. Tomcat for normal development and jetty for manual and integration tests.

Sebastian

Manuel Jesús Recena Soto

unread,
May 23, 2014, 5:30:07 AM5/23/14
to scmma...@googlegroups.com
Hello Sebastian,

I've configured a local development environment.
I get this exception when I try to access to SVN repository with a web browser:

Caused by: java.lang.IllegalArgumentException: The resource path
[sonia/scm/svn.index.mustache] is not valid
at org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:237)
~[catalina.jar:8.0.5]
at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:199)
~[catalina.jar:8.0.5]
at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:193)
~[catalina.jar:8.0.5]
at org.apache.catalina.core.ApplicationContext.getResourceAsStream(ApplicationContext.java:559)
~[catalina.jar:8.0.5]
at org.apache.catalina.core.ApplicationContextFacade.getResourceAsStream(ApplicationContextFacade.java:209)
~[catalina.jar:8.0.5]
at sonia.scm.template.ServletMustacheFactory.getReader(ServletMustacheFactory.java:99)
~[ServletMustacheFactory.class:na]
at com.github.mustachejava.MustacheParser.compile(MustacheParser.java:27)
~[MustacheParser.class:na]
at com.github.mustachejava.DefaultMustacheFactory$MustacheCacheLoader.load(DefaultMustacheFactory.java:262)
~[DefaultMustacheFactory$MustacheCacheLoader.class:na]
at com.github.mustachejava.DefaultMustacheFactory$MustacheCacheLoader.load(DefaultMustacheFactory.java:259)
~[DefaultMustacheFactory$MustacheCacheLoader.class:na]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
~[LocalCache$LoadingValueReference.class:na]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
~[LocalCache$Segment.class:na]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
~[LocalCache$Segment.class:na]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
~[LocalCache$Segment.class:na]
at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
~[LocalCache.class:na]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
~[LocalCache.class:na]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
~[LocalCache$LocalLoadingCache.class:na]
at com.github.mustachejava.DefaultMustacheFactory.compile(DefaultMustacheFactory.java:208)
~[DefaultMustacheFactory.class:na]
at sonia.scm.template.MustacheTemplateEngine.getTemplate(MustacheTemplateEngine.java:150)
~[MustacheTemplateEngine.class:na]
... 84 common frames omitted

And this when is a Git repository:

java.lang.IllegalArgumentException: The resource path
[sonia/scm/git.index.mustache] is not valid
org.apache.catalina.webresources.StandardRoot.validate(StandardRoot.java:237)
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:199)
org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:193)
sonia.scm.template.ServletMustacheFactory.getReader(ServletMustacheFactory.java:99)
com.github.mustachejava.MustacheParser.compile(MustacheParser.java:27)
com.github.mustachejava.DefaultMustacheFactory$MustacheCacheLoader.load(DefaultMustacheFactory.java:262)
com.github.mustachejava.DefaultMustacheFactory$MustacheCacheLoader.load(DefaultMustacheFactory.java:259)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
com.google.common.cache.LocalCache.get(LocalCache.java:3934)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
com.github.mustachejava.DefaultMustacheFactory.compile(DefaultMustacheFactory.java:208)
sonia.scm.template.MustacheTemplateEngine.getTemplate(MustacheTemplateEngine.java:150)
sonia.scm.web.GitRepositoryViewer.handleRequest(GitRepositoryViewer.java:148)
sonia.scm.web.ScmGitServlet.printGitInformation(ScmGitServlet.java:171)
sonia.scm.web.ScmGitServlet.service(ScmGitServlet.java:146)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

Both are related to loading way to resources.

Regards,

Sebastian Sdorra

unread,
May 23, 2014, 5:49:29 AM5/23/14
to scmma...@googlegroups.com

Manuel Jesús Recena Soto

unread,
May 23, 2014, 6:05:20 AM5/23/14
to scmma...@googlegroups.com
Hello Sebastian,

Exactly. I'd made the same change ;)
Thanks.

Is there any plan to release 1.39 version?

Regards,

Sebastian Sdorra

unread,
Jun 2, 2014, 8:21:26 AM6/2/14
to scmma...@googlegroups.com
Hello,
I hope i can release version 1.39 on the next weekend.

Sebastian

Manuel Jesús Recena Soto

unread,
Jun 2, 2014, 8:24:32 AM6/2/14
to scmma...@googlegroups.com
Hello Sebastian,

Thanks so much.

Regards,

Matt Linn

unread,
Jul 1, 2014, 8:10:23 AM7/1/14
to scmma...@googlegroups.com
Sebastian,

Do you have an updated ETA on the release of 1.39?  I am experiencing this issue also.

Matt Linn

Sebastian Sdorra

unread,
Jul 1, 2014, 2:45:04 PM7/1/14
to scmma...@googlegroups.com
Sorry, i was on vacation. But i will try to release the version this weekend.

Sebastian
Reply all
Reply to author
Forward
0 new messages