Eclipse, consuming a web service gives java.lang.reflect.InvocationTargetException -
would help. spent lot of hours trying solve problem, searching in web, sites - , questions here - still no answer this. appreciated.
i'm not means specialist in this, information may vague i'll try to use best terms describe problem.
when try consume webservice myself created using eclipse, in java language, using apache tomcat 6, gives me error:
the content of body cannot displayed in form view. please switch source view examine raw content.
i tested webservice (the 11 methods) java application , junit test , fine. methods delete, add, modify, , search information in database on mysql. said, methods run java application.
i tried generate client on different project. if try consume web service client, gives me error:
axisfault faultcode: {http://schemas.xmlsoap.org/soap/envelope/}server.userexception faultsubcode: faultstring: java.lang.reflect.invocationtargetexception faultactor: faultnode: faultdetail: {http://xml.apache.org/axis/}hostname:mauricio-pc java.lang.reflect.invocationtargetexception @ org.apache.axis.message.soapfaultbuilder.createfault(soapfaultbuilder.java:222) @ org.apache.axis.message.soapfaultbuilder.endelement(soapfaultbuilder.java:129) @ org.apache.axis.encoding.deserializationcontext.endelement(deserializationcontext.java:1087) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.endelement(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scanendelement(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmlnsdocumentscannerimpl.next(unknown source) @ com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xml11configuration.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.xmlparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.parsers.abstractsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse(unknown source) @ com.sun.org.apache.xerces.internal.jaxp.saxparserimpl.parse(unknown source) @ org.apache.axis.encoding.deserializationcontext.parse(deserializationcontext.java:227) @ org.apache.axis.soappart.getassoapenvelope(soappart.java:696) @ org.apache.axis.message.getsoapenvelope(message.java:435) @ org.apache.axis.handlers.soap.mustunderstandchecker.invoke(mustunderstandchecker.java:62) @ org.apache.axis.client.axisclient.invoke(axisclient.java:206) @ org.apache.axis.client.call.invokeengine(call.java:2784) @ org.apache.axis.client.call.invoke(call.java:2767) @ org.apache.axis.client.call.invoke(call.java:2443) @ org.apache.axis.client.call.invoke(call.java:2366) @ org.apache.axis.client.call.invoke(call.java:1812) @ client.serviciosoapbindingstub.ingresaralumnocurso(serviciosoapbindingstub.java:488) @ client.servicioproxy.ingresaralumnocurso(servicioproxy.java:80) @ client.prueba.main(prueba.java:19)
i remember saying cause hostname called "mauricio-pc" , tomcat couldn't recognize it. don't know if that's true.
so, appreciated. feel free ask questions.
thanks.
edit: had created project name, serviciocapacitacion instead of sistemacapacitacion. same files. reimported .jars.
so have libraries:
library apache tomcat v6.0: annotations-api.jar catalina-ant.jar catalina-ha.jar catalina-tribes.jar catalina.jar ecj-3.7.2.jar el-api.jar gson-2.2.3.jar jasper-el.jar jasper.jar jsp-api.jar mysql-connector-java-5.1.25-bin.jar orm.jar servlet-api.jar tomcat-coyote.jar tomcat-dbcp.jar tomcat-i18n-es.jar tomcat-i18n-fr.jar tomcat-i18n-ja.jar jre system library: resources.jar rt.jar jsse.jar jce.jar charsets.jar jfr.jar access-bridge-64.jar dnsns.jar jaccess.jar localedata.jar sunec.jar sunjce_provider.jar sunmscapi.jar zipfs.jar junit 4: junit.jar org.hamcrest.core_1.1.0.v20090501071000.jar web app libraries: axis.jar commons-discovery-0.2.jar commons-logging.jar jaxrpc.jar saaj.jar wsdl4j.jar gwt-dev.jar <- these alone, not inside library gwt-servlet.jar mail.jar
and inside directory webcontent>web-inf>lib there these libraries:
axis.jar commons-discovery-0.2.jar commons-logging.jar jaxrpc.jar saaj.jar wsdl4j.jar
i know these libraries repeated, question is, have delete 1 of these groups? group eliminate/move , group keep? there "good" method remove them?
new display of localhost:8080/serviciocapacitacion/index.jsp
estado http 500 - javax.servlet.servletexception: java.lang.exceptionininitializererror type informe de excepción mensaje javax.servlet.servletexception: java.lang.exceptionininitializererror descripción el servidor encontró un error interno que hizo que no pudiera rellenar este requerimiento. excepción org.apache.jasper.jasperexception: javax.servlet.servletexception: java.lang.exceptionininitializererror org.apache.jasper.servlet.jspservletwrapper.handlejspexception(jspservletwrapper.java:502) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:412) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) causa raíz javax.servlet.servletexception: java.lang.exceptionininitializererror org.apache.jasper.runtime.pagecontextimpl.dohandlepageexception(pagecontextimpl.java:865) org.apache.jasper.runtime.pagecontextimpl.handlepageexception(pagecontextimpl.java:794) org.apache.jsp.index_jsp._jspservice(index_jsp.java:71) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:388) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) causa raíz java.lang.exceptionininitializererror negocio.capacitacion.veracta(capacitacion.java:329) servicio.servicio.veracta(servicio.java:70) org.apache.jsp.index_jsp._jspservice(index_jsp.java:62) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:388) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) causa raíz org.apache.commons.logging.logconfigurationexception: org.apache.commons.logging.logconfigurationexception: org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed. (caused org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed.) (caused org.apache.commons.logging.logconfigurationexception: org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed. (caused org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed.)) org.apache.commons.logging.impl.logfactoryimpl.newinstance(logfactoryimpl.java:543) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:235) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:209) org.apache.commons.logging.logfactory.getlog(logfactory.java:351) org.orm.persistentmanager.<clinit>(persistentmanager.java:34) negocio.capacitacion.veracta(capacitacion.java:329) servicio.servicio.veracta(servicio.java:70) org.apache.jsp.index_jsp._jspservice(index_jsp.java:62) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:388) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) causa raíz org.apache.commons.logging.logconfigurationexception: org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed. (caused org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed.) org.apache.commons.logging.impl.logfactoryimpl.getlogconstructor(logfactoryimpl.java:397) org.apache.commons.logging.impl.logfactoryimpl.newinstance(logfactoryimpl.java:529) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:235) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:209) org.apache.commons.logging.logfactory.getlog(logfactory.java:351) org.orm.persistentmanager.<clinit>(persistentmanager.java:34) negocio.capacitacion.veracta(capacitacion.java:329) servicio.servicio.veracta(servicio.java:70) org.apache.jsp.index_jsp._jspservice(index_jsp.java:62) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:388) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) causa raíz org.apache.commons.logging.logconfigurationexception: invalid class loader hierarchy. have more 1 version of 'org.apache.commons.logging.log' visible, not allowed. org.apache.commons.logging.impl.logfactoryimpl.getlogconstructor(logfactoryimpl.java:385) org.apache.commons.logging.impl.logfactoryimpl.newinstance(logfactoryimpl.java:529) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:235) org.apache.commons.logging.impl.logfactoryimpl.getinstance(logfactoryimpl.java:209) org.apache.commons.logging.logfactory.getlog(logfactory.java:351) org.orm.persistentmanager.<clinit>(persistentmanager.java:34) negocio.capacitacion.veracta(capacitacion.java:329) servicio.servicio.veracta(servicio.java:70) org.apache.jsp.index_jsp._jspservice(index_jsp.java:62) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:717) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:388) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717) nota la traza completa de la causa de este error se encuentra en los archivos de diario de apache tomcat/6.0.36. apache tomcat/6.0.36
jsp file:
<%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>test jsp</title> </head> <body> hi there! <%= new servicio.servicio().veracta("1", "1") %> </body> </html>
name index.jsp
add webcontent\
folder. make sure there no other file named index
or default
.
now go to: http://youserver/sistemacapacitacion/
Comments
Post a Comment