Javax.xml.stream.XMLStreamException throws when present '&' character

Hi
I am writing a code using stax parser. But recently I got an error when "&" or "&" present in the xml document.
This is the error I am getting
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[30,30]
Message: The reference to entity "name" must end with the ';' delimiter.This is my xml
<url>  http://url?id=1&name=aaa  </url>  This is my code
XMLInputFactory xmlInputFactory =  XMLInputFactory.newInstance();
            xmlInputFactory.setProperty(
                    XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES,
                    Boolean.TRUE);
            xmlInputFactory.setProperty(
                    XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES,
                    Boolean.FALSE);
            xmlInputFactory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.FALSE);
String xmlSource;
XMLStreamReader reader = xmlInputFactory.createXMLStreamReader(new ByteArrayInputStream(xmlSource.getBytes("UTF-8")));
while (reader.hasNext())
  reader.next(); // error throws in this line
}Can someone please help me.

Sorry for the late reply. I was waited with the intention because this was my fault.
Yes I am using & amp;
But the problem return persist.
Now I have identified the problem.
The problem was I am using same xml for process multiple time.
First time it does not fail.
But the second time I am assigning the processed xml to a string and use this string as a input to the second xml processing.
This time it automatically replace all & amp; with & .
Now it fails.
To eliminate this What I have done is when reading text and attribute values I am do a simple string replacing process.
protected String encode2XML(String source)
        String src = source;
        if (src != null)
            src = src.replace("&", "&");
            src = src.replace("<", "<");
            src = src.replace(">", ">");
            src = src.replace("\"", """);
            src = src.replace("\'", "&#039;");
            return src;
        else
            return "";
    }

Similar Messages

  • Javax.xml.stream.XMLInputFactory problems with &

    Hi all
    I am using javax.xml.stream.XMLInputFactory to create an XMLStreamReader, which reads XML in from a database.
    The problem is that when it encounters & entities, it is replacing them simply with &. When I then go to transform the XML with an XSL stylesheet, it fails with a parser error due to the presence of unescaped & characters.
    Looking at the API documentation, I thought that setting the property javax.xml.stream.isReplacingEntityReferences to false would solve the problem, but it isn't. The line of code I am using is as follows: -
    inputFactory.setProperty("javax.xml.stream.isReplacingEntityReferences", new Boolean(false));
    Any further ideas as to what I am doing wrong or what else I should be doing?
    Many thanks for reading and considering my post.
    Kind Regards
    Jon

    Thanks for your continued posts guys...
    Quote from DrClap: "So if you consider this to be a problem, you are most likely misunderstanding. Or is there a reason why you feel you have to know how the text was represented in the document it came from?"
    Right, just to clarify, this is what I'm trying to do...
    1. XML, complete with properly escaped characters (&, etc) is sitting in the database.
    2. Next, I am attempting to read the XML into memory character for character via an XMLInputStream and so I still want &, etc, not just &.
    3. Finally, I apply stylesheet to XML Now I do want the parser to decode the & into &. The problem is that it has already been done in 2 (above) so the parser in 3 falls over.
    Thanks for pointing out that javax.xml.stream.XMLInputFactory is not a standard class DrClap - looks like it's back to the drawing board for me!!
    Thanks
    Jon

  • JAXP 1.4 in JDK 1.5? javax.xml.stream.FactoryFinder$ConfigurationError

    hello,
    i'm forced to develop in jdk 1.5 and need to use package javax.xml.stream (StAX), which is not included in jaxp1.3 (in jdk 5), so there is a need to somehow integrate jaxp 1.4 to jdk5.
    first thing i've tried was getting jaxp 1.4 src and include a buildpath to my project to it. problem is, that javax.xml.stream.XMLOutputFactory.newInstance() throws exception javax.xml.stream.FactoryFinder$ConfigurationError: Provider com.sun.xml.internal.stream.XMLOutputFactoryImpl not found
    thanks in advance

    problem solved

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream

    I am trying to develop a web service client for amazon webservice.but i am getting this error while running the app. Can anyone please help me. I have installed the JWSDP and but could not understand why i have to locate all the jar files in the classpath?Please help.
    ===== error=========================================
    C:\abr\classes>java -classpath c:\abr\test.jar;C:\abr\jaxrpc-api.jar;C:\abr\jaxrpc-impl.jar;C:\abr\jaxrpc-spi.jar;c:\abr\classes\amazon.jar;C:\abr\mail.jar;C:\a
    br\saaj-api.jar;C:\abr\activation.jar;c:\abr\FastInfoset.jar;%classpath% Client
    [b]Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLS
    treamWriter
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.
    java:672)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)
    at amazon.AmazonSearchPort_Stub.authorSearchRequest(AmazonSearchPort_Stu
    b.java:988)
    at Client.main(Client.java:21)

    I'm assuming you're using JWSDP 1.6 as I see Fastinfoset.jar in your list. You are missing some jar files in your classpath there. The best way to know what you need is to look at the release notes for JWSDP 1.6. Since you're building a web serivce start with the table in there and lookup JAX-RPC. It'll show you what jar files are needed and what other libraries are needed. Now depending on what you're doing you don't really need all those.
    For sure you're missing jsr173_api.jar which is where I believe that class you need is located. This is in the JWSDP_1_6\sjsxp\lib directory. You will probably need the other jar thats in there too. Best bet is to follow the dependancy chart in the release notes.
    This should get you going.
    Ryan

  • Problem in javax.xml.stream package

    i am getting some trouble while using the import statement for following package:-
    import javax.xml.stream.*;
    I have j2sdk1.4.2 installed in my system. I am using NetBeans 3.6 IDE.
    Should i copy some jars in order to resolve this issue. You can send me the steps at:- [email protected]
    Please help me.
    Regards
    Sks

    Have not been able to find anything in the bug database.
    I am alittle worried that the StAX - 1.0.1 (http://stax.codehaus.org) has a method with the same signature that does something very different.

  • Javax.xml.stream import problem???? plz help

    hi, i am looking into using stax to write to xml, however i believe i need some classes contained within javax.xml.stream.*; and this is not contained within j2se docs i know, i think it comes with the web services.
    what i wanted to know is as i am using netbeans what is the best way for me to use these packages as i still need the current ones contained within j2se for the rest of my app
    thanks
    Danny =)

    do i have to download another jre or can it be done using the one i currently have, j2se 1.9

  • Javax.xml.stream is not found

    I'm running eclipse on a mac using java 6.
    And for some reason eclipse cant find javax.xml.stream
    does anyone know where i can download this file?
    and or how I can tell eclipse where to find it?
    Thanks!

    alan_mehio wrote:
    Hi,
    You definitely will get more help if you post your question with eclipse related forumUnless someone points out that javax.xml.stream simply isn't part of J2SE. You can download it here

  • Or.xml.sax giving error when parsing character entity

    I am parsing an xml stream using SAX parser using org.xml.sax.*
    When any XML tag say <name>sumit & sumit</name> OR <name>sumit & sumit</name> is parsed it throws the error as :
    org.xml.sax.SAXParseException: XML-0210: (Fatal Error) Unexpected EOF.
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at org.xml.sax.SAXException.<init>(Compiled Code)
    at org.xml.sax.SAXParseException.<init>(Compiled Code)
    at oracle.xml.parser.v2.XMLParseException.<init>(Compiled Code)
    at oracle.xml.parser.v2.XMLError.flushErrors(Compiled Code)
    at oracle.xml.parser.v2.XMLError.error(Compiled Code)
    at oracle.xml.parser.v2.XMLError.error(Compiled Code)
    at oracle.xml.parser.v2.XMLReader.popXMLReader(Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(Compiled Code)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(Compiled Co
    de)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(Compiled Code)
    at oracle.xml.parser.v2.XMLParser.parse(Compiled Code)
    at com.fidelity.fbrs.general.process.GenericSAXHandler.parse(Compiled Co
    de)
    at com.fidelity.fbrs.general.process.ServiceRequest.processComplexXMLReq
    uest(Compiled Code)
    at com.fidelity.fbrs.general.process.ServiceRequest.processXMLRequest(Co
    mpiled Code)
    at com.fidelity.fbrs.general.process.ServiceRequest.service(Compiled Cod
    e)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    Please let me the resolution,,,
    Thanks
    Sumit

    Correction:
    you need to escape the & character in your XML file by using &amp; instead of using & directly.

  • Exception javax.xml.ws.soap.SOAPFault when trying to invoke OBR

    Hi,
    1 .I am have created a SOA Composite which has an OBR. I deployed that project and that was working fine.
    2 .In Order to call the OBR service from another composite I have created another composite in which a web service(reference) adapter which is towards the right side of the composite shall call the web service of the OBR composite.
    When I point the URL to the WSDL of the OBR web service, I get the error. The screenshot of the error is avbl at the following URL. http://img199.imageshack.us/img199/7015/37887205.jpg
    3 .So I have manually saved the WSDL of OBR web service as a file and saved it in the proj that i mentioned in 2. Then I was able to create web service adapter with out any problem. Then I created a composite (screenshot http://img59.imageshack.us/img59/7826/30673557.jpg ) which calles the OBR web service and gets the reply.
    4. After deploying the composite, when I am trying to invoke the OBR service, I get the following error in the console of the Soa server.
    SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
    quest to http://rws60045rems:5002/soa-infra/services/default/EventLogProj/OracleRules1_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFaultException
    SEVERE: Received a business fault{http://xmlns.oracle.com/OracleRules2/OracleRul
    es2_DecisionService_1}operationErroredFault. Sending fault to fault action
    SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
    quest to http://rws60045rems:5002/soa-infra/services/default/HighValueOrderOBRPr
    oject/OracleRules2_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFault
    Exception: Invalid URI "ID:<65469.1271952700558.0>" in Addressing element Relate
    sTo.
    : Got an exception: oracle.fabric.common.FabricInvocationException
    oracle.tip.mediator.infra.exception.MediatorException: ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "callFunctionStateless" on reference "CallHighValOrdService". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support.
    Please help me to resolve these errors. Please let me know what could have led to this problem and exceptions.
    Thanks,
    Raj kumar
    Edited by: Raja Kumar on Apr 22, 2010 10:06 AM
    Edited by: Raja Kumar on Apr 22, 2010 10:07 AM

    Hi,
    The problem is solved now. While creating the WS adapter in Jdev, I have tried specifying the URL with the Ip address instead of server name. seems Jdev was not able to resolve the name of the server. Once I created composite with this and deployed the error got resolved.
    Thanks,
    Raj

  • Problems instantiating javax.xml.ws.Service object

    i'm at a total loss here: on my development machine everything works fine. when i switch to our test production server, it blows up.
    My dev machine is OS X 10.5 and test production machine is OS X 10.6. Both are using Java 1.5 and Tomcat 6.0.x...
    The web services I'm calling all reside on other machines on our rack and I'm using internal IP addresses to call them.
    My Service class is below. The blow-up occurs in the constructor right before the info log. The exception message follows the class. help!
    @WebServiceClient(name = "gnwSoap", targetNamespace = "gnwSoapNamespace", wsdlLocation = "http://192.168.1.12/4DWSDL/DOC")
    public class GnwSoap extends Service {
         private static final Log log = LogFactory.getLog(GnwSoap.class);
         public GnwSoap(URL wsdlLocation, QName serviceName) {
              super(wsdlLocation, serviceName);
              log.info("Endpoint sucessfully created: " + wsdlLocation.getHost());
          * @return returns GnwSoapDocument
         @WebEndpoint(name = "gnwSoapPort")
         public GnwSoapDocument getGnwSoapPort() {
              return super.getPort(new QName("gnwSoapNamespace", "gnwSoapPort"),
                        GnwSoapDocument.class);
    }The Exception:
    javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,12]
    Message: Scanner State 24 not Recognized
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:179)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    ...

    I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Please note I have already added following libaries, jars to Tool->Project Properties->Libraries in JDeveloper.
    EJB3.0, TopLink Essentials JPA, J2EE, Jws-api.jar, Ejb30.jar, JSP Runtime, JAX-RPC Client, TopLink, JDeveloper Runtime, Embedded OC4J client, Jaxrpc-api.jar, Wsserver.jar
    Thank you.

  • At com.sun.xml.stream.xerces.util.SymbolTable.hash(SymbolTable.java:222)

    Hi all,
    I'm trying to use a gSOAP server and a jax-ws client.
    I did a first test with WSDLReader to ask the wsdl from the gSOAP server and read it to display all informations.
    It was ok !
    Now I try to call a method whit this code :
              URL url = new URL("http://localhost:" + port + "/BenchOperations?wsdl");
              QName qname = new QName("http://www.Bench.toto.com", "BenchOperations");
              Service service = Service.create(url, qname); // EXCEPTION
              BenchPortType interfaceDeService = service.getPort(BenchPortType.class);
              TimeRequest timeRequest = new TimeRequest();
              timeRequest.setSleepDuration(sleep);
              TimeResponse timeResponse = interfaceDeService.time(timeRequest);but I have this exception on "Service.create" :
    Exception in thread "main" java.lang.NullPointerException
            at com.sun.xml.stream.xerces.util.SymbolTable.hash(SymbolTable.java:222)
            at com.sun.xml.stream.xerces.util.SymbolTable.addSymbol(SymbolTable.java:143)
            at com.sun.xml.stream.XMLReaderImpl.getNamespaceURI(XMLReaderImpl.java:1238)
            at javax.xml.stream.util.StreamReaderDelegate.getNamespaceURI(StreamReaderDelegate.java:94)
            at com.sun.xml.ws.wsdl.parser.ParserUtil.getQName(ParserUtil.java:66)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperationInput(RuntimeWSDLParser.java:689)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperation(RuntimeWSDLParser.java:662)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortType(RuntimeWSDLParser.java:636)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:297)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:253)
            at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:131)
            at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:239)
            at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:201)
            at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:172)
            at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
            at javax.xml.ws.Service.<init>(Service.java:56)
            at javax.xml.ws.Service.create(Service.java:697)
            at com.thalesgroup.bench.client.Client.startClient(Client.java:25)
            at com.thalesgroup.bench.client.Client.<init>(Client.java:20)
            at com.thalesgroup.bench.client.Client.main(Client.java:16)I don't understand why ! This excpetion show that the client is trying to parse something (that's why I did the first test) and there is a nullPointer.
    Thanks a lot for your help
    Ob�

    Hi all,
    I compared the wsdl sent by the gSOAP server and the jax-ws server and there are not similar !
    this can explain that I have a nullPointerExcpetion when I use a gSOAP server
    How I can do ? Why the wsdl sent are not the same ?
    Thanks for your help
    Ob�lix

  • JWSDP 2.0/ JAX-WS 2.0: can not find com.bea.xml.stream.MXParserFactory

    Hi,
    when I invoke wsimport with Ant to create the client artifacts with the custom-client-binding file I always get an error like "javax.xml.stream.FactoryConfigurationError, can not find provider class com.bea.xml.stream.MXParserFactory".
    I can not find the BEA provider in the JWSDP 2.0.
    Who can help me?
    wolfgang

    You need an implementation of the JSR-173 API on your classpath, e.g. sjsxp.jar from the JWSDP.

  • Wsdlc: Provider com.bea.xml.stream.XMLOutputFactoryBase not found

    So I'm trying to run wsdlc in Eclipse (and as a command line, both don't work). I want to run wsdlc without having to run setDomainEnv.cmd first (painful if i'm in eclipse). I've gotten previous commands (8.1 stuff) working w/o running this first. If I add weblogic.jar to the Ant runtime classpath it also works, but again, I want to avoid this because a) i've never had to do it in the past and b) it blows up my <junitreport> task because it tries to use weblogic's SAX stuff.
    The error I get is:
    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.XMLOutputFactoryBase not found
    Anyways, is there a way to set up the classpath within ant for just this task? I've tried adding weblogic jars into wsdlc classpaths but it doesn't seem to work.
    It seems that com.bea.xml.stream.* can't be found anywhere but weblogic.xml.stream is in there. Any way I can redirect the XStream stuff to point there? I've tried system properties but didn't seem to work.
    Any help would be appreciated.
    Andy O

    Hmm... so that works as long as i add all of those jars to the ANT runtime classpath which is what I want to avoid in the first place. I'm starting to think it's wsdlc that's not paying any attention to the classpathref's I'm giving it.
    Previous weblogic ant tasks never required the jar to be in the ANT runtime classpath and I could just pass it a classpathref to the my weblogic jars and thing worked fine.
    Any other help?

  • "package javax.xml .rpc does not exist" error when compiling client jar

    When I try to compile the web services client jar with either the clientgen or the <client> element of servicegen I get the following error "package weblogic.webservice.core.rpc does not exist"
    Here is the error output
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:10: package weblogic.webservice.core.rpc does not exist
    [servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:9: package javax.xml.rpc does not exist
    [servicegen] public interface OSHService extends javax.xml.rpc.Service{
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:11: package weblogic.webservice.context does not exist
    [servicegen] weblogic.webservice.context.WebServiceContext context();
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:13: package weblogic.webservice.context does not exist
    [servicegen] weblogic.webservice.context.WebServiceContext joinContext()
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:14: package weblogic.webservice.context does not exist
    [servicegen] throws weblogic.webservice.context.ContextNotFoundException;
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:16: package javax.xml.rpc does not exist
    [servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort() throws javax.xml.rpc.ServiceException;
    [servicegen]
    ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
    nt.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:18: package javax.xml.rpc does not exist
    [servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort(String username, String password) throws javax.xml.rpc.ServiceException;
    [servicegen]
    ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
    [servicegen] extends weblogic.webservice.core.rpc.StubImpl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
    nt.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:12: package weblogic.webservice does not exist
    [servicegen] public OSHServicePort_Stub( weblogic.webservice.Port _port ){
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:9: com.onexchange.tools.osh.client.OSHService_Impl should be declared abstract; it does not define context() in com.onexchange.tools.osh.client.OSHService_Impl
    [servicegen] public class OSHService_Impl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
    nt.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:40: cannot
    resolve symbol
    [servicegen] symbol : method _getPort (java.lang.String)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
    [servicegen] new com.onexchange.tools.osh.client.OSHServicePort_Stub( _g
    etPort( "OSHServicePort" ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:49: cannot
    resolve symbol
    [servicegen] symbol : method _setUser (java.lang.String,java.lang.String,com.on
    exchange.tools.osh.client.OSHServicePort)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
    [servicegen] _setUser( username, password, getOSHServicePort() );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:24: ca
    nnot resolve symbol
    [servicegen] symbol : method _wrap (java.lang.String)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] args.put( "string", wrap( string ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:25: ca
    nnot resolve symbol
    [servicegen] symbol : method _wrap (java.lang.String)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] args.put( "string0", wrap( string0 ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:27: ca
    nnot resolve symbol
    [servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] java.lang.Object result = invoke( "login", _args );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:29: pa
    ckage javax.xml.rpc does not exist
    [servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:31: pa
    ckage javax.xml.rpc.soap does not exist
    [servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:44: ca
    nnot resolve symbol
    [servicegen] symbol : method _wrap (java.lang.String)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] args.put( "string", wrap( string ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:45: ca
    nnot resolve symbol
    [servicegen] symbol : method _wrap (java.lang.String)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] args.put( "string0", wrap( string0 ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:47: ca
    nnot resolve symbol
    [servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
    [servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
    [servicegen] java.lang.Object result = invoke( "oshRequest", _args );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:49: pa
    ckage javax.xml.rpc does not exist
    [servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:51: pa
    ckage javax.xml.rpc.soap does not exist
    [servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
    [servicegen] ^
    [servicegen] 22 errors
    [servicegen] java.io.IOException: Compiler failed executable.exec
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
    ilerInvoker.java:470)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:329)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
    er.java:337)
    [servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
    leFiles(CompilerHelper.java:80)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
    eStubs(ClientGenImpl.java:608)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
    teStub(ClientGenImpl.java:553)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
    ntGenFromEAR(ClientGenImpl.java:502)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
    ientGenImpl.java:348)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
    enerateClient(ServiceGenTask.java:597)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
    xecute(ServiceGenTask.java:195)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
    [servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    Below is the -debug from the ant task immediately following:
    <target name="web-service" depends="osh_bean_jar">
    <servicegen
    destEar="${build}/osh_service"
    warName="osh_service.war"
    contextURI="web_services" >
    <service
    ejbJar="${dist}/osh_bean.jar"     
    targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
    serviceName="OSHService"
    serviceURI="/OSHService"
    generateTypes="True"
    expandMethods="True"
    style="rpc">
    <client
    packageName="com.onexchange.tools.osh.client" />
    </service>
    </servicegen>
    </target>
    Apache Ant version 1.5.3 compiled on August 13 2003
    Buildfile: \onexv3.x\src\antfile\osh.xml
    Detected Java version: 1.4 in: C:\bea\JDK141~1\jre
    Detected OS: Windows 2000
    +User task: propertyfile     org.apache.tools.ant.taskdefs.optional.PropertyFile
    +User task: vsscheckin     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
    +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
    +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
    +User task: p4reopen     org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
    +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
    +User task: dirname     org.apache.tools.ant.taskdefs.Dirname
    +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
    +User task: servicegen     weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask
    +User task: p4label     org.apache.tools.ant.taskdefs.optional.perforce.P4Label
    +User task: p4revert     org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
    +User task: replaceregexp     org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
    +User task: ddcreate     weblogic.ant.taskdefs.build.DDCreateTask
    +User task: get     org.apache.tools.ant.taskdefs.Get
    +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
    +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
    +User task: jarlib-display     org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
    +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
    +User task: zip     org.apache.tools.ant.taskdefs.Zip
    +User task: patch     org.apache.tools.ant.taskdefs.Patch
    +User task: jspc     weblogic.ant.taskdefs.j2ee.Jspc
    +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
    +User task: test     org.apache.tools.ant.taskdefs.optional.Test
    +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
    +User task: unwar     org.apache.tools.ant.taskdefs.Expand
    +User task: vsshistory     org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
    +User task: icontract     org.apache.tools.ant.taskdefs.optional.IContract
    +User task: cvschangelog     org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
    +User task: p4submit     org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
    +User task: ccmcheckin     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
    +User task: p4change     org.apache.tools.ant.taskdefs.optional.perforce.P4Change
    +User task: bzip2     org.apache.tools.ant.taskdefs.BZip2
    +User task: wspackage     weblogic.ant.taskdefs.webservices.wspackage.WSPackage
    +User task: p4delete     org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
    +User task: vssadd     org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
    +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
    +User task: translate     org.apache.tools.ant.taskdefs.optional.i18n.Translate
    +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
    +User task: vajload     org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
    +User task: jarlib-available     org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
    +User task: wsdd-merge     weblogic.ant.taskdefs.webservices.autotype.DDMerge
    +User task: WsdlToDotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
    +User task: buildnumber     org.apache.tools.ant.taskdefs.BuildNumber
    +User task: jpcovmerge     org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
    +User task: compliance     weblogic.ant.taskdefs.webservices.compliance.Compliance
    +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
    Could not load class (weblogic.ant.taskdefs.perforce.P4Changes) for task p4changes
    +User task: war     org.apache.tools.ant.taskdefs.War
    Could not load a dependent class (com/starbase/starteam/Item) for task stlist
    +User task: rename     org.apache.tools.ant.taskdefs.Rename
    +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
    +User task: serverdeploy     org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
    +User task: wsdlgen     weblogic.ant.taskdefs.webservices.wsdlgen.WSDLGen
    +User task: property     org.apache.tools.ant.taskdefs.Property
    +User task: move     org.apache.tools.ant.taskdefs.Move
    +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
    +User task: cccheckin     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
    +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
    +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
    Could not load a dependent class (com/oroinc/net/SocketClient) for task telnet
    +User task: sosget     org.apache.tools.ant.taskdefs.optional.sos.SOSGet
    Could not load class (weblogic.ant.taskdefs.perforce.P4VersionString) for task p4versionstring
    +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
    +User task: autotype     weblogic.ant.taskdefs.webservices.javaschema.JavaSchema
    +User task: record     org.apache.tools.ant.taskdefs.Recorder
    +User task: p4sync     org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
    +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
    +User task: p4edit     org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
    +User task: manifest     org.apache.tools.ant.taskdefs.ManifestTask
    +User task: maudit     org.apache.tools.ant.taskdefs.optional.metamata.MAudit
    +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
    +User task: netrexxc     org.apache.tools.ant.taskdefs.optional.NetRexxC
    Could not load a dependent class (com/oroinc/net/ftp/FTP) for task ftp
    +User task: jpcovreport     org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
    +User task: wsdl2service     weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service
    +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
    +User task: ccmcheckout     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
    +User task: ant     org.apache.tools.ant.taskdefs.Ant
    +User task: xmlvalidate     org.apache.tools.ant.taskdefs.optional.XMLValidateTask
    +User task: xslt     org.apache.tools.ant.taskdefs.XSLTProcess
    +User task: iplanet-ejbc     org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
    +User task: ccmcheckintask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
    +User task: gzip     org.apache.tools.ant.taskdefs.GZip
    +User task: native2ascii     org.apache.tools.ant.taskdefs.optional.Native2Ascii
    +User task: starteam     org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut
    +User task: ear     org.apache.tools.ant.taskdefs.Ear
    +User task: input     org.apache.tools.ant.taskdefs.Input
    +User task: wlpath     weblogic.ant.taskdefs.WLPath
    +User task: pointbase     weblogic.ant.taskdefs.pointbase.PointBase
    +User task: rmic     weblogic.ant.taskdefs.j2ee.Rmic
    +User task: checksum     org.apache.tools.ant.taskdefs.Checksum
    +User task: mail     org.apache.tools.ant.taskdefs.email.EmailTask
    +User task: loadfile     org.apache.tools.ant.taskdefs.LoadFile
    +User task: wsgen     weblogic.ant.taskdefs.webservices.wsgen.WSGenTask
    +User task: vsscheckout     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
    +User task: stylebook     org.apache.tools.ant.taskdefs.optional.StyleBook
    +User task: soscheckin     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
    +User task: mimemail     org.apache.tools.ant.taskdefs.optional.net.MimeMail
    +User task: stlabel     org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel
    +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
    +User task: concat     org.apache.tools.ant.taskdefs.Concat
    +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
    +User task: touch     org.apache.tools.ant.taskdefs.Touch
    +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
    +User task: splash     org.apache.tools.ant.taskdefs.optional.splash.SplashTask
    +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
    Could not load class (weblogic.ant.taskdefs.ejb.DDInit) for task ddinit
    +User task: cccheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
    +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
    +User task: p4have     org.apache.tools.ant.taskdefs.optional.perforce.P4Have
    +User task: filter     org.apache.tools.ant.taskdefs.Filter
    +User task: xmlproperty     org.apache.tools.ant.taskdefs.XmlProperty
    Could not load a dependent class (jdepend/xmlui/JDepend) for task jdepend
    +User task: copy     org.apache.tools.ant.taskdefs.Copy
    +User task: clientgen     weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask
    +User task: createidl     weblogic.ant.taskdefs.iiop.CppIdlSetup
    +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
    Could not load a dependent class (com/ibm/bsf/BSFException) for task script
    +User task: ccmcreatetask     org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
    +User task: rpm     org.apache.tools.ant.taskdefs.optional.Rpm
    +User task: delete     org.apache.tools.ant.taskdefs.Delete
    +User task: replace     org.apache.tools.ant.taskdefs.Replace
    +User task: mmetrics     org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
    +User task: waitfor     org.apache.tools.ant.taskdefs.WaitFor
    +User task: untar     org.apache.tools.ant.taskdefs.Untar
    +User task: loadproperties     org.apache.tools.ant.taskdefs.LoadProperties
    +User task: wldeploy     weblogic.ant.taskdefs.management.WLDeploy
    +User task: available     org.apache.tools.ant.taskdefs.Available
    +User task: echoproperties     org.apache.tools.ant.taskdefs.optional.EchoProperties
    Could not load a dependent class (junit/framework/TestListener) for task junit
    Could not load a dependent class (com/starbase/starteam/Item) for task stcheckin
    +User task: vajexport     org.apache.tools.ant.taskdefs.optional.ide.VAJExport
    Could not load a dependent class (com/starbase/starteam/Item) for task stcheckout
    +User task: bunzip2     org.apache.tools.ant.taskdefs.BUnzip2
    +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
    +User task: wlserver     weblogic.ant.taskdefs.management.WLServer
    +User task: vsscreate     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
    +User task: wlconfig     weblogic.ant.taskdefs.management.WLConfig
    +User task: ejbc     weblogic.ant.taskdefs.j2ee.Ejbc
    +User task: unjar     org.apache.tools.ant.taskdefs.Expand
    +User task: wsdltodotnet     org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
    +User task: wlcompile     weblogic.ant.taskdefs.build.WLCompileTask
    +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
    +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
    +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
    +User task: tempfile     org.apache.tools.ant.taskdefs.TempFile
    +User task: junitreport     org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
    +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
    +User task: echo     org.apache.tools.ant.taskdefs.Echo
    +User task: ccupdate     org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
    +User task: java     org.apache.tools.ant.taskdefs.Java
    +User task: vsslabel     org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
    +User task: renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions
    +User task: basename     org.apache.tools.ant.taskdefs.Basename
    +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
    +User task: tar     org.apache.tools.ant.taskdefs.Tar
    +User task: vsscp     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
    +User task: vajimport     org.apache.tools.ant.taskdefs.optional.ide.VAJImport
    +User task: setproxy     org.apache.tools.ant.taskdefs.optional.net.SetProxy
    +User task: p4counter     org.apache.tools.ant.taskdefs.optional.perforce.P4Counter
    +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
    +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
    +User task: soscheckout     org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
    +User task: apply     org.apache.tools.ant.taskdefs.Transform
    +User task: ccuncheckout     org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
    +User task: jarlib-resolve     org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
    +User task: jlink     org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
    +User task: cvstagdiff     org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
    +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
    +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
    +User task: pvcs     org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
    +User task: jarlib-manifest     org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
    +User task: jar     org.apache.tools.ant.taskdefs.Jar
    +User task: sound     org.apache.tools.ant.taskdefs.optional.sound.SoundTask
    +User task: wlappc     weblogic.ant.taskdefs.j2ee.Appc
    +User task: mparse     org.apache.tools.ant.taskdefs.optional.metamata.MParse
    +User task: blgenclient     org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
    +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
    +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
    +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
    +User task: ccmreconfigure     org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
    +User task: fail     org.apache.tools.ant.taskdefs.Exit
    +User task: unzip     org.apache.tools.ant.taskdefs.Expand
    +User task: javac     org.apache.tools.ant.taskdefs.Javac
    +User task: source2wsdd     weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD
    +User task: p4add     org.apache.tools.ant.taskdefs.optional.perforce.P4Add
    +User task: jpcoverage     org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
    +User task: soslabel     org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
    +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
    +User task: wlpackage     weblogic.ant.taskdefs.build.WLPackageTask
    +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
    +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
    +User task: ddcreator     org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
    +User datatype: patternset     org.apache.tools.ant.types.PatternSet
    +User datatype: filterset     org.apache.tools.ant.types.FilterSet
    +User datatype: libfileset     org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
    +User datatype: filterreader     org.apache.tools.ant.types.AntFilterReader
    +User datatype: extension     org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
    +User datatype: fileset     org.apache.tools.ant.types.FileSet
    +User datatype: dirset     org.apache.tools.ant.types.DirSet
    +User datatype: filelist     org.apache.tools.ant.types.FileList
    +User datatype: filterchain     org.apache.tools.ant.types.FilterChain
    +User datatype: path     org.apache.tools.ant.types.Path
    +User datatype: classfileset     org.apache.tools.ant.types.optional.depend.ClassfileSet
    +User datatype: description     org.apache.tools.ant.types.Description
    +User datatype: xmlcatalog     org.apache.tools.ant.types.XMLCatalog
    +User datatype: selector     org.apache.tools.ant.types.selectors.SelectSelector
    +User datatype: mapper     org.apache.tools.ant.types.Mapper
    +User datatype: substitution     org.apache.tools.ant.types.Substitution
    +User datatype: extensionSet     org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
    +User datatype: regexp     org.apache.tools.ant.types.RegularExpression
    Setting ro project property: ant.version -> Apache Ant version 1.5.3 compiled on August 13 2003
    Setting ro project property: ant.file -> C:\onexv3.x\src\antfile\osh.xml
    parsing buildfile \onexv3.x\src\antfile\osh.xml with URI = file:C:/onexv3.x/src/antfile/osh.xml
    Setting ro project property: ant.project.name -> osh
    Adding reference: osh -> org.apache.tools.ant.Project@12ad19e
    Project base dir set to: C:\onexv3.x\src\antfile
    resolving systemId: file:properties.xml
    +Task: property
    [property] Loading Environment env.
    Setting project property: env.SYSTEMROOT -> C:\WINNT
    Setting project property: env.ONEX_WL_IP -> localhost
    Setting project property: env.ORACLE_HOME -> /oracle/ora92
    Setting project property: env.WEBROOT -> /weblogic/weblogic81/config/onexdomain-v3x/applications/onexchange
    Setting project property: env.PROMPT -> $P$G
    Setting project property: env.MY_PASSWORD -> qa1
    Setting project property: env.JAVA_OPTIONS -> -Xverify:none
    Setting project property: env.POINTBASE_TOOLS -> C:\weblogic\WEBLOG~1\common\eval\pointbase\lib\pbtools44.jar
    Setting project property: env.ONEX_CONFIG -> /onexv3.x/ops/config/config_dev-v2.x.txt
    Setting project property: env.PWD -> /weblogic/weblogic81/server/bin
    Setting project property: env.COMPUTERNAME -> FKHAN2
    Setting project property: env.JSPWD -> /weblogic/weblogic81/config/onexdomain-v3x/classfiles
    Setting project property: env.MAKE_MODE -> UNIX
    Setting project property: env.ALLUSERSPROFILE -> C:\Documents and Settings\All Users
    Setting project property: env.h -> /onexv3.x
    Setting project property: env.SERVLET_CLASSES -> /weblogic/weblogic81/config/onexdomain-v3x/servletclasses
    Setting project property: env.HOMEPATH -> \Documents and Settings\fkhan
    Setting project property: env.ONEX_NOTIFY -> 1
    Setting project property: env.ONEX -> /onexv3.x
    Setting project property: env.ONEX_TQREADER -> 1
    Setting project property: env.JDK_CLASSES -> /bea/jdk141_05/lib/rt.jar
    Setting project property: env._ -> ./ant.bat
    Setting project property: env.EXT -> .60
    Setting project property: env.SHELL -> /bin/sh
    Setting project property: env.Z -> ;
    Setting project property: env.X -> 1
    Setting project property: env.MY_NAME -> qa1
    Setting project property: env.ONEX_AUDIT -> 1
    Setting project property: env.MY_DW_DB_SERVICE -> qa
    Setting project property: env.PATH -> C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;.;C:\onexv3.x\ops\scripts;C:\onexv3.x\scripts;C:\onexv3.x\3rdparty\ant\bin;C:\bea\jdk141_05\bin;C:\onexv3.x\scripts\singledb;C:\Oracle\Ora9\bin;C:\cygnus\CYGWIN~1\H-I586~1\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Perforce;C:\cygwin\bin;C:\putty;C:\weblogic\WEBLOG~1\server\bin\oci920_8
    Setting project property: env.MY_INSTANCE -> qa
    Setting project property: env.POINTBASE_HOME -> C:\weblogic\WEBLOG~1\common\eval\pointbase
    Setting project property: env.WINDIR -> C:\WINNT
    Setting project property: env.ONEX_WL_HOME -> /weblogic/weblogic81
    Setting project property: env.ONEX_TRADING -> 1
    Setting project property: env.HOSTTYPE -> i586
    Setting project property: env.J -> /onexv3.x/jars
    Setting project property: env.PROCESSOR_IDENTIFIER -> x86 Family 6 Model 8 Stepping 3, GenuineIntel
    Setting project property: env.JAVA_VENDOR -> Sun
    Setting project property: env.TEMP -> C:\DOCUME~1\fkhan\LOCALS~1\Temp
    Setting project property: env.ONEX_JAVA_HOME -> /bea/jdk141_05
    Setti

    Can somebody tell me how to run the webservices in weblogic samples,when i run this(build.xml)i get the following error.
    =========================================================Buildfile: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml
    clean:
    [delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
    [delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
    compile:
    [mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
    [mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
    [javac] Compiling 1 source file to E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
    ear:
    [servicegen] Generating service "HelloWorld" ...
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
    [servicegen] extends weblogic.webservice.core.rpc.StubImpl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:12: package weblogic.webservice does not exist
    [servicegen] public HelloWorldPort_Stub( weblogic.webservice.Port _port ){
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:9: package javax.xml.rpc does not exist
    [servicegen] public interface HelloWorld extends javax.xml.rpc.Service{
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:11: package weblogic.webservice.context does not exist
    [servicegen] weblogic.webservice.context.WebServiceContext context();
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:13: package weblogic.webservice.context does not exist
    [servicegen] weblogic.webservice.context.WebServiceContext joinContext()
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:14: package weblogic.webservice.context does not exist
    [servicegen] throws weblogic.webservice.context.ContextNotFoundException;
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:16: package javax.xml.rpc does not exist
    [servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort() throws javax.xml.rpc.ServiceException;
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:18: package javax.xml.rpc does not exist
    [servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort(String username, String password) throws javax.xml.rpc.ServiceException;
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:10: package weblogic.webservice.core.rpc does not exist
    [servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:24: cannot resolve symbol
    [servicegen] symbol : method _wrap (int)
    [servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
    [servicegen] args.put( "intVal", wrap( intVal ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:25: cannot resolve symbol
    [servicegen] symbol : method _wrap (java.lang.String)
    [servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
    [servicegen] args.put( "string", wrap( string ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:27: cannot resolve symbol
    [servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
    [servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
    [servicegen] java.lang.Object result = invoke( "sayHello", _args );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:29: package javax.xml.rpc does not exist
    [servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:31: package javax.xml.rpc.soap does not exist
    [servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:9: examples.webservices.basic.javaclass.HelloWorld_Impl is not abstract and does not override abstract method joinContext() in examples.webservices.basic.javaclass.HelloWorld
    [servicegen] public class HelloWorld_Impl
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:40: cannot resolve symbol
    [servicegen] symbol : method _getPort (java.lang.String)
    [servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
    [servicegen] new examples.webservices.basic.javaclass.HelloWorldPort_Stub( _getPort( "HelloWorldPort" ) );
    [servicegen] ^
    [servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:49: cannot resolve symbol
    [servicegen] symbol : method _setUser (java.lang.String,java.lang.String,examples.webservices.basic.javaclass.HelloWorldPort)
    [servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
    [servicegen] _setUser( username, password, getHelloWorldPort() );
    [servicegen] ^
    [servicegen] 17 errors
    [servicegen] java.io.IOException: Compiler failed executable.exec
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    [servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromEAR(ClientGenImpl.java:521)
    [servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:345)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateClient(ServiceGenTask.java:597)
    [servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:195)
    [servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    BUILD FAILED
    E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml:42: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
    [java.io.IOException: Compiler failed executable.exec]
    Total time: 29 seconds

  • Problem testing WebMethod. Throwing javax.xml.bind.JAXBException

    Hi guys,
    Another Newbie.
    Specifications:
    NetBeans5.5
    Sun App Server 9.0_01 (build b02-p01)
    MySQL
    Problem: Not able to test run the Webmethod with webparams.
    I have an entity class with some methods as shown below
    public class Country {
        private Integer countryID;
        private ServerDatabaseInteraction di;
        private String countryName;
        /** Creates a new instance of Country */
        public Country(ServerDatabaseInteraction di) {
            this.di = di;
         * Creates a new instance of Country with the specified values.
         * @param countryID the countryID of the Country
        public Country(Integer countryID) {
            this.countryID = countryID;
         * Creates a new instance of Country with the specified values.
         * @param countryID the countryID of the Country
         * @param countryName the countryName of the Country
        public Country(Integer countryID, String countryName, ServerDatabaseInteraction di) {
            this.di = di;
            this.countryID = countryID;
            this.countryName = countryName;
         * Gets the countryID of this Country.
         * @return the countryID
        public Integer getCountryID() {
            return this.countryID;
         * Sets the countryID of this Country to the specified value.
         * @param countryID the new countryID
        public void setCountryID(Integer countryID) {
            this.countryID = countryID;
         * Gets the countryName of this Country.
         * @return the countryName
        public String getCountryName() {
            return this.countryName;
         * Sets the countryName of this Country to the specified value.
         * @param countryName the new countryName
        public void setCountryName(String countryName) {
            this.countryName = countryName;
        public void insert() throws SQLException {
            di.update("INSERT INTO Country (CountryName) VALUES ('"+getCountryName()+"')");
        public ArrayList list() throws SQLException {
            ArrayList queryAL = new ArrayList();
            ResultSet rs = di.queryToResultSet("SELECT CountryID, CountryName FROM Country");
            while(rs.next()) {
                String temp = rs.getInt(1)+"#"+rs.getString(2);
                queryAL.add(temp);
             return queryAL;
    }    then I created a Web service having two methods as follows
    @WebService
    public class CountryWS {
        ServerDatabaseInteraction di;
        Country country;
        public CountryWS() {
            try {
                di = new ServerDatabaseInteraction();
            } catch (Exception ex) {
                ex.printStackTrace();
            country = new Country(di);
         * Web service operation
        @WebMethod
        public ArrayList listPKobjects() {
            try {
                return country.list();
            } catch (SQLException ex) {
                ex.printStackTrace();
                return null;
         * Web service operation
        @WebMethod
        public String insert(@WebParam(name = "CountryName") String CountryName) {
            // TODO implement operation
            country.setCountryName(CountryName);
            try {
                country.insert();
                return "Inserted";
            } catch (SQLException ex) {
                ex.printStackTrace();
                return "Insert Failed";
    }Now the problem is Im able to test (by right clicking on webservice from IDE) the webmethod listPKObjects but not the insert method. only difference is the second one is having webparms.
    the log shows as follows..
    CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
    javax.xml.bind.JAXBException: CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
         at com.sun.xml.ws.encoding.EncoderDecoderBase.getRawAccessor(EncoderDecoderBase.java:128)
         at com.sun.xml.ws.encoding.EncoderDecoderBase.getWrapperChildValue(EncoderDecoderBase.java:81)
         at com.sun.xml.ws.encoding.soap.EncoderDecoder.fillData(EncoderDecoder.java:78)
         at com.sun.xml.ws.encoding.soap.ServerEncoderDecoder.toMessageInfo(ServerEncoderDecoder.java:97)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:209)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:573)
         at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:147)
         at com.sun.xml.ws.server.Tie.handle(Tie.java:90)
         at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:195)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: javax.xml.bind.JAXBException: CountryName is not a valid property on class myhost.fli.ws.jaxws.Insert
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:816)
         at com.sun.xml.ws.encoding.EncoderDecoderBase.getRawAccessor(EncoderDecoderBase.java:124)
         ... 34 moreCan't find a reason, why one webmethod is working and the other one is not.
    Any help would be much appriciated.

    I'm encountering the same problem, but it's very inconsistent. I've got three web services that I'm deploying. If I clean, rebuild, and redeploy, then different combinations of the three throw this error.
    My specifications:
    NetBeans 6.0
    GlassFish v2
    Oracle 10g
    In browsing around online, I came across the following link which suggested to me that this issue is known and is being addressed.
    https://jax-ws.dev.java.net/issues/show_bug.cgi?id=419
    I discovered that the reason that I was getting this error was because my web services all had the same operation names. When I renamed my operations in each service so that they had different names, this fixed the problem.
    Hope this helps!
    - Erich Musick

Maybe you are looking for

  • Verbose logging jdk1.6 no longer contains path and file for loading msgs

    The javac verbose option underjdk 1.6 logs LOADING Line as follows: [javac] [loading javax\naming\InitialContext.class(javax\naming:InitialContext.class)] That is different that what I had been getting under jdk 1.5 [javac] [loading Z:\WebSphere\AppS

  • WAD: Error Valid InfoObjects

    Hi Gurus, I have IP Layout with 9 Tabs(9 query) on it. My Variable Screen has 9 Product Hier (Optional).user can enter on one Product hier and get it to the Layout. if the user stays it the same Tab then No issues. But if the user moves to different

  • DSN and cfreport

    Dear all, Let's say I have one application where users can choose to connect to more than one databases (live, development, etc). I use one DSN for each database connection, so in this moment I have 3 databases with 3 DSNs. My question is how to let

  • Apple mail junk mail

    Posted to o365 forum I have users who have apple mail 6.5 They are unable to select an option to "mark as not Junk" within the application. It can be marked in Outlook for the mac, and the web app. Moving the items from junk folder to the inbox does

  • Add new line with sed

    Hello, I try to insert a new lines after a model line with a sed command in a script ,like : Before : ### model line##### After : ### model line##### new line 1 new line 2 I try something like this, but the newlinecharacter in not good understand : s