-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Need help with "can't declare any more prefixes" i
PostPosted: Tue Jun 28, 2005 8:05 pm 
Newbie

Joined: Tue Jun 28, 2005 7:32 pm
Posts: 2
I'm stuck...

I've deploying a hibernate archive on a new server, and am getting the following exception. (See below.)

I've searched and have seen this issue mentioned multiple times in this forum, but nobody has posted a resolution. Could someone describe what this exception is complaining about and how to address?





Code:
2005-06-28 16:58:27,975 jboss.har:service=HibernateSocial Hibernate WARN  XMLDatabinder Problem opening output stylesheet - databinding disabled
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't declare any more prefixes in this context
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:984)
        at net.sf.hibernate.xml.XMLDatabinder.getOutputStyleSheetTemplates(XMLDatabinder.java:254)
        at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:160)
        at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
        at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:583)
        at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
        at $Proxy18.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:415)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:821)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy8.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:415)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:588)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
        at org.jboss.Main.boot(Main.java:191)
        at org.jboss.Main$1.run(Main.java:480)
        at java.lang.Thread.run(Thread.java:534)
Caused by: javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't declare any more prefixes in this context
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:980)
        ... 97 more
Caused by: java.lang.IllegalStateException: can't declare any more prefixes in this context
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        ... 97 more
---------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 29, 2005 1:43 pm 
Newbie

Joined: Tue Jun 28, 2005 7:32 pm
Posts: 2
As others have done on this issue - I should just say "Never mind. I found the problem." And leave it there...

Instead, I'll set a good example and describe the solution. The culprits were two properties used when starting up jboss:


Code:
<sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" />
<sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.crimson.jaxp.SAXParserFactoryImpl" />


Removing these properties allowed, at least, the .har file to deploy. This may impact another aspect of my app, but that's a different issue.


Top
 Profile  
 
 Post subject: xerces2
PostPosted: Thu Dec 22, 2005 5:07 pm 
Newbie

Joined: Thu Dec 22, 2005 5:00 pm
Posts: 1
Likewise, I ran into the same issue after switching app servers to WebSphere.

I downloaded latest xerces2 jars and set following properties:

Code:
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.