Error (possible bugs?) deploying to JBoss

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error (possible bugs?) deploying to JBoss

X Gylee
I need help about this error I got while deploying to JBoss.

I tried to deploy OFBiz into JBoss 4.2.2 based on the technical
documentation.
My OFBiz is from rev 705859. After compiling OFBiz, I ran:

java -jar ofbiz.jar -setup jboss422

However I got the following errors, and in the setup directory I have
run.conf and *empty* build.xml.

... messages about loading components

2008-10-23 13:19:07,831 (main) [    ContainerLoader.java:96 :INFO ]
[Startup] Starting containers...
2008-10-23 13:19:07,956 (main) [  GenerateContainer.java:456:INFO ] Parsing
template :
/data-01/home/ian/Documents/AppData/ofbiz-trunk/framework/appserver/templates/jboss422/run.conf
2008-10-23 13:19:08,594 (main) [  GenerateContainer.java:456:INFO ] Parsing
template :
/data-01/home/ian/Documents/AppData/ofbiz-trunk/framework/appserver/templates/jboss422/build.xml
org.ofbiz.base.start.StartupException: Cannot start()
org.ofbiz.appservers.GenerateContainer (String index out of range: -3)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
org.ofbiz.base.container.ContainerException: String index out of range: -3
    at
org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:477)
    at
org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368)
    at
org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    at java.lang.String.substring(String.java:1938)
    at java.lang.String.substring(String.java:1905)
    at
freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:210)
    at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at
freemarker.core.ParentheticalExpression._getAsTemplateModel(ParentheticalExpression.java:75)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at
freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Assignment.accept(Assignment.java:90)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
    at freemarker.core.Environment.visit(Environment.java:351)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.Environment.process(Environment.java:176)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:201)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:163)
    at
org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:475)
    at
org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368)
    at
org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
org.ofbiz.base.container.ContainerException: String index out of range: -3
    at
org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:477)
    at
org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368)
    at
org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    at java.lang.String.substring(String.java:1938)
    at java.lang.String.substring(String.java:1905)
    at
freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:210)
    at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at
freemarker.core.ParentheticalExpression._getAsTemplateModel(ParentheticalExpression.java:75)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at
freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Assignment.accept(Assignment.java:90)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
    at freemarker.core.Environment.visit(Environment.java:351)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.Environment.process(Environment.java:176)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:201)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:163)
    at
org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:475)
    at
org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368)
    at
org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    at java.lang.String.substring(String.java:1938)
    at java.lang.String.substring(String.java:1905)
    at
freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:210)
    at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at
freemarker.core.ParentheticalExpression._getAsTemplateModel(ParentheticalExpression.java:75)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at
freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
    at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    at freemarker.core.Assignment.accept(Assignment.java:90)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
    at freemarker.core.Environment.visit(Environment.java:351)
    at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:196)
    at freemarker.core.Environment.process(Environment.java:176)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:201)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:163)
    at
org.ofbiz.appservers.GenerateContainer.parseTemplate(GenerateContainer.java:475)
    at
org.ofbiz.appservers.GenerateContainer.generateFiles(GenerateContainer.java:368)
    at
org.ofbiz.appservers.GenerateContainer.start(GenerateContainer.java:96)
    at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
    at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
    at org.ofbiz.base.start.Start.startServer(Start.java:312)
    at org.ofbiz.base.start.Start.start(Start.java:316)
    at org.ofbiz.base.start.Start.main(Start.java:399)
2008-10-23 13:19:08,901 (OFBiz_Shutdown_Hook) [
ContainerLoader.java:114:INFO ] Shutting down containers