Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 18th, 2012  |  syntax: None  |  size: 11.72 KB  |  views: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ...
  2. INFO: WSSERVLET13: JAX-WS context listener destroyed
  3. Sep 17, 2012 4:28:08 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
  4. INFO: WSSERVLET12: JAX-WS context listener initializing
  5. Sep 17, 2012 4:28:09 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
  6. SEVERE: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Unable to create JAXBContext
  7. javax.xml.ws.WebServiceException: Unable to create JAXBContext
  8.     at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:166)
  9.     at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
  10.     at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
  11.     at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:338)
  12.     at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:201)
  13.     at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
  14.     at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
  15.     at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
  16.     at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124)
  17.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
  18.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
  19.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  20.     at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1255)
  21.     at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)
  22.     at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)
  23.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
  24.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  25.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  26.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  27.     at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
  28.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  29.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  30.     at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  31.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  32.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  33.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  34.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  35.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
  36.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
  37.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  38.     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
  39.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  40.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
  41.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
  42.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
  43.     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
  44.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  45.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  46.     at java.lang.Thread.run(Unknown Source)
  47. Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
  48. java.lang.StackTraceElement does not have a no-arg default constructor.
  49.     this problem is related to the following location:
  50.         at java.lang.StackTraceElement
  51.         at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
  52.         at java.lang.Throwable
  53.         at public java.lang.Throwable[] my.org.jaxws.MyExceptionBean.suppressed
  54.         at umy.org.jaxws.MyExceptionBean
  55.  
  56.     at java.security.AccessController.doPrivileged(Native Method)
  57.     at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153)
  58.     ... 38 more
  59. Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
  60. java.lang.StackTraceElement does not have a no-arg default constructor.
  61.     this problem is related to the following location:
  62.         at java.lang.StackTraceElement
  63.         at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
  64.         at java.lang.Throwable
  65.         at public java.lang.Throwable[] my.org.jaxws.MyExceptionBean.suppressed
  66.         at my.org.jaxws.MyExceptionBean
  67.  
  68.     at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
  69.     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
  70.     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
  71.     at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
  72.     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
  73.     at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
  74.     at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
  75.     at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:161)
  76.     at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:154)
  77.     ... 40 more
  78.        
  79. @WebMethod(...)
  80. public ..... throws Exception {
  81.  if ()...
  82.  else
  83.     throw new MyException(); // extends java.lang.Exception
  84. }
  85.        
  86. @XmlTransient
  87.     @Override
  88.     public StackTraceElement[] getStackTrace() {
  89.         return super.getStackTrace();
  90.     }
  91.  
  92.     @XmlTransient
  93.     @Override
  94.     public Throwable getCause() {
  95.         return super.getCause();
  96.     }
  97.        
  98. SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
  99. java.lang.NoSuchMethodError: javax.xml.ws.WebFault.messageName()Ljava/lang/String;
  100.         at com.sun.xml.ws.model.RuntimeModeler.processExceptions(RuntimeModeler.java:1162)
  101.         at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:898)
  102.         at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:666)
  103.         at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:420)
  104.         at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:254)
  105.         at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:338)
  106.         at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:201)
  107.         at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
  108.         at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
  109.         at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
  110.         at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124)
  111.         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
  112.         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
  113.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  114.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  115.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
  116.         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
  117.         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521)
  118.         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359)
  119.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  120.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  121.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  122.         at java.lang.reflect.Method.invoke(Method.java:616)
  123.         at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  124.         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
  125.         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
  126.         at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
  127.         at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)
  128.         at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)
  129.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
  130.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  131.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  132.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  133.         at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:199)
  134.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  135.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  136.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  137.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  138.         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
  139.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  140.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  141.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  142.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  143.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
  144.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  145.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  146.         at java.lang.Thread.run(Thread.java:636)
  147.        
  148. import javax.xml.bind.annotation.XmlAttribute;
  149. import javax.xml.bind.annotation.XmlType;
  150.  
  151. @XmlType(name = "InputMessageValidationFaultType")
  152. public class FaultBean {
  153.  
  154. @XmlAttribute
  155.     protected String message;
  156.  
  157.     public String getMessage(){
  158.         return message;
  159.     }
  160.  
  161.     public void setMessage(String message){
  162.         this.message = message;
  163.     }
  164.  
  165. }
  166.  
  167.  
  168.  
  169.  
  170. import javax.xml.ws.WebFault;
  171. import javax.xml.bind.annotation.XmlRootElement;
  172. import javax.xml.bind.annotation.XmlTransient;
  173.  
  174.  
  175. @WebFault(faultBean = "FaultBean")
  176. public class MyException extends Exception {
  177.  
  178.     private static final long serialVersionUID = 1L;
  179.  
  180.     private FaultBean faultBean;
  181.  
  182.     public  MyException(){
  183.         super();
  184.     }
  185.  
  186.     public  MyException( String message , FaultBean faultBean , Throwable cause){
  187.         super(message, cause);
  188.         this.faultBean = faultBean;
  189.     }    
  190.  
  191.     public  MyException( String message, FaultBean faultBean ){
  192.         super(message);
  193.         this.faultBean = faultBean;
  194.     }    
  195.  
  196.     public FaultBean getFaultInfo() {
  197.         return faultBean;
  198.     }
  199.  
  200. }