-->
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.  [ 6 posts ] 
Author Message
 Post subject: Tomcat 5 and Hibernate 2.1 startup issue
PostPosted: Wed Feb 04, 2004 8:10 am 
Newbie

Joined: Mon Sep 01, 2003 7:10 am
Posts: 4
Hi,

I'm having problems deploying my hibernate project which works fine under tomcat 4, but reports the following warning at startup with tomcat 5:

WARN net.sf.hibernate.xml.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

As anyone else experienced this? Is there a workaround? Is it a hibernate bug or a Tomcat 5 issue?

Here's the full stack trace:

[main] INFO net.sf.hibernate.impl.SessionFactoryImpl - building session factory
[main] WARN net.sf.hibernate.xml.XMLDatabinder - Problem opening output styleshe
et - databinding disabled
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.Trans
formerException: java.lang.IllegalStateException: can't declare any more prefixe
s in this context
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:946)
at net.sf.hibernate.xml.XMLDatabinder.getOutputStyleSheetTemplates(XMLDa
tabinder.java:254)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:160)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:720)
at uk.co.blueyonder.commons.servlets.HibernateStartupServlet.startupHibe
rnate(Unknown Source)
at uk.co.blueyonder.commons.servlets.HibernateStartupServlet.init(Unknow
n Source)
at uk.co.blueyonder.www.servlets.StartupServlet.init(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88
7)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3960)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
283)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
0)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:320)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:234
5)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: javax.xml.transform.TransformerException: java.lang.IllegalStateExcep
tion: can't declare any more prefixes in this context
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:942)
... 33 more
Caused by: java.lang.IllegalStateException: can't declare any more prefixes in t
his context
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:524)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(Transf
ormerFactoryImpl.java:934)

cheers,
Chico


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 29, 2004 1:11 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
I just got the same thing moving to latest version, did you figure this out?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 29, 2004 4:20 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
Played around with the jars and finally got it, not sure which one fixed it though, just tried to make sure i got all the latest hibernate jars.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 11, 2004 9:39 am 
Newbie

Joined: Fri Jun 11, 2004 8:41 am
Posts: 6
Location: Belgium
I had the same problem. Removed googleapi.jar from the classpath which solved the problem.


Top
 Profile  
 
 Post subject: Corrected by using up to date versions of Xerces and Xalan
PostPosted: Tue Oct 26, 2004 12:40 pm 
Newbie

Joined: Sat Nov 01, 2003 5:42 pm
Posts: 6
Location: Chicago
The Hibernate 2.1.6 lib folders have updated version of Xalan (2.4.0), Xerces (2.4.0) and XML-APIs.jar. If you place these in the [tomcat]/common/endorsed directory, the error dumps stop. (Tested with Tomcat 5.0.27)

_________________
--
Reid Carlberg
Five Sticks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 8:06 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
pieter_coucke wrote:
I had the same problem. Removed googleapi.jar from the classpath which solved the problem.


Wow, can't believe this is what was causing the problem, but I removed the googleapi.jar like you said and boom, it worked. I had updated jars to the latest of everything and no luck, frikin google. ;)

So anyways, i took a peak into the googleapi.jar and here are some other things that are included:

javax.activation
javax.mail
javax.xml
org.apache.crimson
org.apache.soap
org.w3c.dom
org.xml.sax
com.sun.activation
com.sun.mail

Wow, this has jar hell written all over it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.