[
https://jira.jboss.org/jira/browse/JBRULES-1523?page=com.atlassian.jira.p...
]
Toni Rikkola closed JBRULES-1523.
---------------------------------
Resolution: Done
Updating to Seam 2.1.0.GA fixed this one.
BRMS Deployment and running problems on Apache Tomcat Server 6.x
----------------------------------------------------------------
Key: JBRULES-1523
URL:
https://jira.jboss.org/jira/browse/JBRULES-1523
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-guvnor
Affects Versions: 4.0.5
Environment: OS: Windows XP Professional SP2, Apache Tomcat 6.0.13 or 6.0.16, JDK
1.6 Update 5, JRE 1.6 Update 5
Reporter: Yuriy Drozhdzhal'
Assignee: Toni Rikkola
Priority: Critical
I used deployment on Tomcat step by step according to this manual:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBRMSjsfdependencies and it doesn't work at
all.
When i starting Tomcat it writes next lines into console window:
[Fatal Error] :1:1: Premature end of file.
21 Mar 2008 22:41:49 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
21 Mar 2008 22:41:49 org.apache.catalina.core.StandardContext start
SEVERE: Context [/drools-jbrms] startup failed due to previous errors
When I inspected localhost.2008-03-21.log i saw next lines there
21 ??? 2008 22:41:31 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: exception invoking: create
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
at org.jboss.seam.Component.callComponentMethod(Component.java:2087)
at org.jboss.seam.Component.callCreateMethod(Component.java:2010)
at org.jboss.seam.Component.newInstance(Component.java:1981)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
at org.jboss.seam.init.Initialization.init(Initialization.java:554)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration_$$_javassist_0.create(BRMSRepositoryConfiguration_$$_javassist_0.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
... 32 more
Caused by: java.lang.AbstractMethodError:
org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown
Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown
Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown
Source)
at org.apache.jackrabbit.core.util.DOMBuilder.write(DOMBuilder.java:80)
at
org.apache.jackrabbit.core.nodetype.xml.NodeTypeWriter.write(NodeTypeWriter.java:278)
at org.apache.jackrabbit.core.nodetype.xml.NodeTypeWriter.write(NodeTypeWriter.java:65)
at org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.store(NodeTypeDefStore.java:71)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.persistCustomNodeTypeDefs(NodeTypeRegistry.java:806)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.registerNodeType(NodeTypeRegistry.java:177)
at
org.drools.repository.JackrabbitRepositoryConfigurator.registerNodeTypesFromCndFile(JackrabbitRepositoryConfigurator.java:130)
at
org.drools.repository.JackrabbitRepositoryConfigurator.setupRulesRepository(JackrabbitRepositoryConfigurator.java:64)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration.create(BRMSRepositoryConfiguration.java:64)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration.create(BRMSRepositoryConfiguration.java:56)
... 53 more
21 ??? 2008 22:41:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
21 ??? 2008 22:41:32 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
21 ??? 2008 22:41:42 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
21 ??? 2008 22:41:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
21 ??? 2008 22:41:49 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
org.drools.repository.RulesRepositoryException: javax.jcr.RepositoryException: internal
error: failed to read custom node type definitions stored in custom_nodetypes.xml:
Premature end of file.: Premature end of file.
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:91)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration.create(BRMSRepositoryConfiguration.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration_$$_javassist_0.create(BRMSRepositoryConfiguration_$$_javassist_0.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2087)
at org.jboss.seam.Component.callCreateMethod(Component.java:2010)
at org.jboss.seam.Component.newInstance(Component.java:1981)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
at org.jboss.seam.init.Initialization.init(Initialization.java:554)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: javax.jcr.RepositoryException: internal error: failed to read custom node type
definitions stored in custom_nodetypes.xml: Premature end of file.: Premature end of
file.
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:775)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.<init>(NodeTypeRegistry.java:684)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.create(NodeTypeRegistry.java:118)
at
org.apache.jackrabbit.core.RepositoryImpl.createNodeTypeRegistry(RepositoryImpl.java:571)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:262)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:584)
at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
at
org.drools.brms.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:87)
... 54 more
Caused by: java.io.IOException: Premature end of file.
at org.apache.jackrabbit.core.util.DOMWalker.<init>(DOMWalker.java:65)
at
org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.<init>(NodeTypeReader.java:90)
at org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader.read(NodeTypeReader.java:66)
at org.apache.jackrabbit.core.nodetype.NodeTypeDefStore.load(NodeTypeDefStore.java:55)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.loadCustomNodeTypeDefs(NodeTypeRegistry.java:769)
... 64 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.apache.jackrabbit.core.util.DOMWalker.<init>(DOMWalker.java:60)
... 68 more
21 ??? 2008 22:41:50 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
21 ??? 2008 22:41:50 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
21 ??? 2008 22:43:13 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
21 ??? 2008 22:43:13 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
That means that problem is in file custom_nodetypes.xml.
When Tomcat starts first time - it creates REPOSITORY folder in its BIN folder and there
is custom_nodetypes.xml in REPOSITORY\repository\nodetypes which IS EMPTY.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira