jaxWS issue on Netbeans 6.5 and Glassfish V2 - soap

i am not able to build Web Service Client, it is showing an error msg :You are running on JDK6 which comes with JAX-WS 2.1 API, but this tool requires JAX-WS 2.2 API. Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/), or set xendorsed="true" on .
BUILD FAILED (total time: 0 seconds)
can any one help me out to solve this ...
Thanks in Advance :)

Are you running on Unix? Is the wsimport in your path in the glassfish directory or the Java install directory? I seem to remember getting this and changing my path so I got the wsimport from glassfish.

I don't know main cause but i think sometimes IDE causes that. Deleting WS reference and adding ws client again works for me sometimes.

Just click on netbeans generated error link (by clicking on it, netbeans will open jaxws-build.xml & goes to wsimport tag definition line) & add attribute xendorsed="true" somewhere in "wsimport" tag.
Or you can download & add JAX-WS 2.2 API jar file in your project classpath.

Check the JDK configuration being ran by the IDE,
When using Netbeans,
Step 1:
Find the Netbeans.conf file (C:\Program
Files\NetBeans7.0\etc\netbeans.conf)
Step 2:
Change "netbeans_jdkhome" to point to the newer JDK (i.e.
netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_80")
Note: Try similar steps for other IDEs

Related

Could not find file ${libs.jsf20.classpath} to copy

I'm trying to build a web app in Netbeans. In project properties, I have four libraries - JSF2.2, MySQL JDBC Driver, PrimeFaces 5.0 and Java EE Web 7 API Library (all of them embedded in NetBeans, nothing was additionally downloaded). When I was creating the project, I selected JSF2.2 framework and Primefaces.
When I try to build (or clean and build) my project, I get the following error:
Warning: Could not find file E:\My Documents\NetBeansProjects\ConferenceManager\${libs.jsf20.classpath} to copy.
Any ideas?
Solved!
I removed the "default" library and included separate .jar fil that I had downloaded. That solved the problem with JSF, but then the same problem happened with MySQL connector (and I solved it the same way).

Getting java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList on creating the web service in eclipse

I am trying to create a web service using axis2.
I have created it.
I am following the below steps for getting the wsdl info.
Right click Project -> Run on server -> Next.
No class found error is coming. Is any jar file is required.
Please guide me how to resolve this.
Error: java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespaceMap at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:437) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154) at
You can download and include the XmlSchema jar in the lib folder of your dynamic web project /WebContent/WEB_INF folder.
But, this will only solve the problem temporarily. On creating WS client the XMLSchema jar will not get included. So check the compatibility of the version of your server with axis2 version (like Tomcat 6 created problem with axis2 1.7 but works fine with axis2 1.5.2).
On successful compatibility the XMLSchema jar will get included in the respective folder automatically.
You can correct your issue by referencing the XmlSchema jar in the lib folder. You can find the latest version of the jar file in the link below.
http://www.java2s.com/Code/Jar/x/DownloadXmlSchema142jar.htm

JAR file not found during build in Netbeans

hello i am trying to run java jsp/servlet application using netbeans but i am getting error message it say
C:\Users\isslam\Desktop\jsp2_allfiles\servlet_jsp\netbeans\book_apps\musicStore\nbproject\build-impl.xml:1009 Warning: Could not find file C:\Users\isslam\Desktop\jsp2_allfiles\Program Files\NetBeans 6.0 M9\enterprise4\modules\ext\standard.jar to copy.
BUILD FAILED (total time: 0 seconds)
I downloaded the standard.jar but i am not sure if it is the right one and i added it to the Libraries and still giving me the same error. the path he is giving me is not real path i can not find it in fact it is kind of wrong
I know this question is almost a year old, but I had the same problem and fixed it so I thought I'd chime in.
It looks like you're using Murach's Java Servlets and JSP exercise files, which is what I'm using too. Well, those are kind of old and include some old libraries.
To resolve the issue, open your project in Netbeans. Right click on it and select properties. Select libraries. You should see a JSTL library that is outdated. Remove it from the project. Now add the updated JSTL library by clicking Add Library and selecting the new JSTL library.

liferay build-service

I encountered problem in Liferay. I want to create new service exactly the same service like the one that presented in the Liferay's developer documentation. However, after copy-pasting the XML to the portlet folder I try to build t using the command on my command prompt:
ant build-service
I get nothing. It only say on the console like this:
Buildfile: D:\Program\liferay-plugins-sdk-6.1.1\portlets\NewPortlet-portlet\build.xml
build-service:
It stayed like that for so damn long, and still. I don't know what's the problem, is it because the Ant? I use the latest version of apache ant(currently: Apache Ant(TM) version 1.8.4 compiled on May 22 2012)
Is it because of configuration in the build.xml in the portlet folder?
Anybody encountered the same problem? or is it just me?
Ant hanging during a build task is typically because there is a cluster config enabled in a properties file.
Remove/comment out the cluster configurations and that should clear the problem.

How to make gwt-maven-plugin to parse jetty-env.xml

I'm using gwt-maven-plugin, version 1.2 with GWT version 2.0.3. When I run it in hosted mode (Jetty) I can't get it to load my jetty-env.xml file.
Any clues about that?
With that GWT and Maven plugin versions the embedded jetty igonres thw file /WEB-INF/jetty-env.xml, but same information can be used in the file /WEB-INF/jetty-web.xml.
So, renaming the file from "jetty-env.xml" to "jetty-web.xml" solved the issue.