[JBoss JIRA] Created: (JBWS-2395) Maven Refactoring Damaged Many wstools tests
by Darran Lofthouse (JIRA)
Maven Refactoring Damaged Many wstools tests
--------------------------------------------
Key: JBWS-2395
URL: https://jira.jboss.org/jira/browse/JBWS-2395
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: tools-jaxrpc
Affects Versions: jbossws-native-3.0.4
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Priority: Critical
Fix For: jbossws-native-3.0.5
Previously many of the tests in the package 'org.jboss.test.ws.tools' used the following two variables: -
String resourceDir = "resources/tools/jbws1079";
String toolsDir = "tools/jbws1079";
The 'resourcesDir' is where the base source and descriptors live as the expected results of the test, the 'toolsDir' is where the new source is generated when the test runs.
After the maven refactoring we have: -
File resourceFile = createResourceFile("tools/jbws1079");
String resourceDir = resourceFile.getAbsolutePath();
String toolsDir = resourceDir;
The resourceDir and toolsDir are now the same.
This is not a problem for the source code as the expected source is not in a package structure whilst the generated code is so these do not conflict.
However for the comparison of the mapping files: -
mappingValidator.validate(resourceDir + "/anonymous-mapping.xml", toolsDir + "/anonymous-mapping.xml");
We end up checking if a file is identical to itself which of course passes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years
[JBoss JIRA] Commented: (JBWS-1931) Update to jaxb-2.1 required for certain endpoints
by Yaniv (JIRA)
[ https://jira.jboss.org/jira/browse/JBWS-1931?page=com.atlassian.jira.plug... ]
Yaniv commented on JBWS-1931:
-----------------------------
Hello
I am still getting this error on a much simpler sample:
this happens whenever I try to access the service WSDL page.
17:29:29,633 ERROR [RequestHandlerImpl] Error processing web service request
java.lang.IllegalStateException: Cannot obtain endpoint meta data
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequestFromServletContext(RequestHandlerImpl.java:649)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:612)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:153)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:135)
at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
The Java Class:
@javax.jws.WebService
public class Echo
{
public String echo(String input)
{
return input;
}
}
web.xml file:
<servlet>
<servlet-name>Echo</servlet-name>
<servlet-class>samples.Echo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Echo</servlet-name>
<url-pattern>/Echo</url-pattern>
</servlet-mapping>
> Update to jaxb-2.1 required for certain endpoints
> -------------------------------------------------
>
> Key: JBWS-1931
> URL: https://jira.jboss.org/jira/browse/JBWS-1931
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-native
> Environment: JBOSS 4.2.2 GA, JDK1.6
> Reporter: cai jc
> Assignee: Richard Opalka
>
> I created a web service endpoint using JWS:
> /*
> * BookWS.java
> *
> *
> * To change this template, choose Tools | Template Manager
> * and open the template in the editor.
> */
> package net.cjc.ws;
> import java.util.List;
> import javax.ejb.*;
> import javax.jws.*;
> import javax.jws.soap.SOAPBinding;
> import net.cjc.beans.AuthorManager;
> import net.cjc.entity.Book;
> @WebService(name="BookWS",targetNamespace="http://net.cjc.ws",serviceName="BookWSService")
> @SOAPBinding(style= SOAPBinding.Style.RPC)
> @Stateless
> public class BookWS {
> /* @EJB
> private AuthorManager am;
> @WebMethod
> public List<Book> getMyBook(String me)
> {
> return am.queryBooks(me);
> }*/
> @WebMethod
> public String getMyBook(String me)
> {
> return "you have nothing!";
> }
> }
> And modified web.xml to configure this endpoint as a servlet.
> At deploy time,the app server throws an exception:
> 06:13:45,593 ERROR [MainDeployer] Could not start deployment: file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp7551cjc.ear-contents/cjc-war.war
> java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
> at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
> at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116)
> ...
> But I still can see this web service from http://localhost:8080/jbossws/services.While I click it to retrieve WSDL,another exception is thrown:
> 06:25:15,796 ERROR [RequestHandlerImpl] Error processing web service request
> java.lang.IllegalStateException: Cannot obtain endpoint meta data
> at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:520)
> at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doGet(RequestHandlerImpl.java:144)
> at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:126)
> at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
> ....
> Is this a bug? or my fault?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years