First: Sorry for my bad english. If someone knows Spanish, I repeat
the description in that language.
I have this ibatis-config.xml:
http://pastebin.com/Q9LAaEAR
(and later, this ibatis-config.xml:
http://pastebin.com/UDh1nw45)
With a code like this:
http://pastebin.com/pV2vNk8Y
With JUnit, the app works perfectly (even the Mapper xml works fine).
When I create the aar file for Axis2, and call the method, I recive
this:
http://pastebin.com/2pRcXcTk
I used the MyBatis-3.0.5-SNAPSHOT.jar first. Later, I used the
ibatis-3-core-3.0.0.220.jar, and I had the same problem.
I put the stacktrace at the end of this description (not only in
pastebin), for the google's engine find this error.
Pastebin of the stacktrace:
http://pastebin.com/4EtGeNNw
Thnaks, and sorry if it's a silly problem!!!
----------------------------------------------------------------------
Spanish:
----------------------------------------------------------------------
Tengo el siguiente archivo ibatis-config.xml:
http://pastebin.com/Q9LAaEAR
Y lo uso mas o menos en el siguiente codigo:
http://pastebin.com/pV2vNk8Y
Cuando lo testeo con JUnit, la aplicación funciona perfectamente (Asi
que el mapper.xml funciona bien, al igual que el codigo java!)
Ahora, cuando subo el archivo "aar" para Axis2, y llamo el metodo,
recibo este problema:
http://pastebin.com/2pRcXcTk
Primero usé el compilado MyBatis-3.0.5-SNAPSHOT.jar . Luego, y para
eliminar posibles errores en la version, usé el compilado "ibatis-3-
core-3.0.0.220.jar", y tuve exactamente el mismo error.
Pongo el stacktrace abajo, y no solamente en un PasteBin, para que si
otra persona tiene el mismo problema, pueda buscar la solución via
google-duckduckgo-etc....
Pastebin:
http://pastebin.com/4EtGeNNw
Muchas Gracias, y disculpen si es un problema tonto :P
INFO: Server startup in 4652 ms
[ERROR]
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:165)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:102)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:
173)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:167)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:164)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
562)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:394)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:243)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.proce
ss(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.proce
ss(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoin
t.java:302)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.ibatis.exceptions.IbatisException:
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
at
org.apache.ibatis.exceptions.ExceptionFactory.wrapException(Exception
Factory.java:8)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:32)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:15)
at xx.xxx.xxxxx.xx.MyWebServ.bla(MiWebServ.java:38)
... 29 more
Caused by: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
at
org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java
:136)
at
org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:32)
at
org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConfigBuilde
r.java:46)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:28)
... 31 more
Caused by: org.xml.sax.SAXParseException: The element type "property"
must be te
rminated by the matching end-tag "</property>".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
at
org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java
:134)
... 34 more
[ERROR]
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
org.apache.axis2.AxisFault:
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:158)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines
sLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:114)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:
173)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:167)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:164)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
562)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:394)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:243)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.proce
ss(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.proce
ss(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint
$SocketProcessor.run(JIoEndpoin
t.java:302)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:165)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:102)
... 23 more
Caused by: org.apache.ibatis.exceptions.IbatisException:
### Error building SqlSession.
### The error may exist in SQL Mapper Configuration
### Cause: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
at
org.apache.ibatis.exceptions.ExceptionFactory.wrapException(Exception
Factory.java:8)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:32)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:15)
at xx.xxx.xxxxx.xx.MyWebServ.bla(MyWebServ.java:38)
... 29 more
Caused by: org.apache.ibatis.builder.BuilderException: Error creating
document i
nstance. Cause: org.xml.sax.SAXParseException: The element type
"property" must
be terminated by the matching end-tag "</property>".
at
org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java
:136)
at
org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:32)
at
org.apache.ibatis.builder.xml.XMLConfigBuilder.<init>(XMLConfigBuilde
r.java:46)
at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFa
ctoryBuilder.java:28)
... 31 more
Caused by: org.xml.sax.SAXParseException: The element type "property"
must be te
rminated by the matching end-tag "</property>".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
at
org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java
:134)
... 34 more