You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Fabian Christ <ch...@googlemail.com> on 2012/10/04 15:39:37 UTC
Problems running Stanbol in Tomcat
Hi,
I am trying to run the full launcher WAR in a Tomcat 7.0.30. When
starting the Tomcat I get this exception:
SEVERE: sling: Failed to start Apache Sling in
/home/fchrist/Coding/Server/apache-tomcat-7.0.30/stanbol
java.lang.NumberFormatException: For input string: "40/"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.valueOf(Unknown Source)
at org.apache.sling.launchpad.base.impl.StartupManager.<init>(StartupManager.java:83)
at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:225)
Anybody an idea where this "40/" comes from and where to look at? Is
anybody currently using the WAR packaging, successfully?
Best,
- Fabian
--
Fabian
http://twitter.com/fctwitt
Re: Problems running Stanbol in Tomcat
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Thu, Oct 4, 2012 at 3:39 PM, Fabian Christ
<ch...@googlemail.com> wrote:
> ...SEVERE: sling: Failed to start Apache Sling in
> /home/fchrist/Coding/Server/apache-tomcat-7.0.30/stanbol
> java.lang.NumberFormatException: For input string: "40/"
> at java.lang.NumberFormatException.forInputString(Unknown Source)
> at java.lang.Long.parseLong(Unknown Source)
> at java.lang.Long.valueOf(Unknown Source)
> at org.apache.sling.launchpad.base.impl.StartupManager.<init>(StartupManager.java:83)
> at org.apache.sling.launchpad.base.impl.Sling.<init>(Sling.java:225)
Looks like this line
this.targetStartLevel =
Long.valueOf(properties.get(Constants.FRAMEWORK_BEGINNING_STARTLEVEL));
in https://svn.apache.org/repos/asf/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/StartupManager.java
so it looks like you have a org.osgi.framework.startlevel.beginning
property with value 40/ somewhere, trailing slash is the problem.
-Bertrand