List Info

Thread: Problem using xmlbeans in a maven-based project




Problem using xmlbeans in a maven-based project
country flaguser name
United States
2007-05-05 11:21:48
Hello everybody,

I'm having the following problem with my app :

java.lang.RuntimeException:  Trying XBeans path engine...
Trying Saxon...
FAILED on declare namespace
modulo='http://
quyne.org/portalhum/noticias/model/xml';/modulo:noticias
/noticia/titulo_noticia
	at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.jav
a:123)
	at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.jav
a:89)
	at
org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.jav
a:890)
	at
org.apache.xmlbeans.impl.store.Cursor._selectPath(Cursor.jav
a:882)
	at
org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java
:2608)
	at
org.quyne.portalhum.noticias.model.impl.NoticiaDAOXMLbeans.d
arListaNoticias(NoticiaDAOXMLbeans.java:165)
	at
org.quyne.portalhum.noticias.service.impl.EditarNoticiaServi
ceImpl.darListaNoticias(EditarNoticiaServiceImpl.java:29)
	at
org.quyne.portalhum.noticias.webapp.action.EditarNoticiaActi
on.mostrarPaginaListaNoticias(EditarNoticiaAction.java:115)
	at
org.quyne.portalhum.noticias.webapp.action.EditarNoticiaActi
on.executeExtended(EditarNoticiaAction.java:63)
	at
org.quyne.framework.commons.basic.QuyneAction.execute(QuyneA
ction.java:319)
	at
org.apache.struts.action.RequestProcessor.processActionPerfo
rm(RequestProcessor.java:431)
	at
org.apache.struts.action.RequestProcessor.process(RequestPro
cessor.java:236)
	at
org.apache.struts.action.ActionServlet.process(ActionServlet
.java:1196)
	at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.
java:432)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:447)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:356)
	at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
er.java:226)
	at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
er.java:621)
	at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co
ntextHandlerCollection.java:149)
	at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo
llection.java:123)
	at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
er.java:141)
	at org.mortbay.jetty.Server.handle(Server.java:269)
	at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
n.java:430)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(Http
Connection.java:692)
	at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
	at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
199)
	at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
339)
	at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEnd
Point.java:270)
	at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT
hreadPool.java:475)

I already tried to include the Saxon 8.7 library from
ibiblio, but so far,
nothing have worked.  I even tried adding 
Saxon 8.6.1 as told in the xmlbean site (to our internal mvn
repo) but the
problem still persists.

I'm uploading my pom.xml for those who "speak"
maven.

Thanks. http://www.na
bble.com/file/8224/pom.xml pom.xml 
-- 
View this message in context: http://www.nabble.
com/Problem-using-xmlbeans-in-a-maven-based-project-tf369695
7.html#a10337993
Sent from the Xml Beans - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem using xmlbeans in a maven-based project
country flaguser name
Germany
2007-05-07 02:25:37
Daniel.Rodriguez schrieb:
> Hello everybody,
> 
> I'm having the following problem with my app :
> 
> java.lang.RuntimeException:  Trying XBeans path
engine... Trying Saxon...
> FAILED on declare namespace
> modulo='http://
quyne.org/portalhum/noticias/model/xml';/modulo:noticias
/noticia/titulo_noticia
> 	at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.jav
a:123)
> 	at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.jav
a:89)
 > [...]

I had a similar problem with xmlbeans 2.2.0 and solved it by
adding
these dependencies to my pom.xml:

   <dependency>
     <groupId>net.sf.saxon</groupId>
     <artifactId>saxon</artifactId>
     <version>8.7</version>
   </dependency>
   <dependency>
     <groupId>net.sf.saxon</groupId>
     <artifactId>saxon-dom</artifactId>
     <version>8.7</version>
   </dependency>


Kind regards

Christian


-- 
____________________________________________________________
____________


  Christian Kaltepoth                 mailto:kaltepothklute-thiemann.de
 
------------------------------------------------------------
----------
  Klute-Thiemann
  Informationstechnologie GmbH & Co. KG            Tel.
+49.231.9742.543
  Emil-Figge-Strasse 76-80                         Fax.
+49.231.9742.544
  D-44227 Dortmund                          http://www.klute-thieman
n.de
____________________________________________________________
____________


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: Problem using xmlbeans in a maven-based project
country flaguser name
United States
2007-05-07 13:40:25
Thanks, that did it.


-- 
View this message in context: http://www.nabble.
com/Problem-using-xmlbeans-in-a-maven-based-project-tf369695
7.html#a10362971
Sent from the Xml Beans - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )