users@glassfish.java.net

Re: (netbeans,mandriva) error while launching JEE client : ...

From: <forums_at_java.net>
Date: Fri, 29 Apr 2011 04:40:41 -0500 (CDT)

hello,

 

What a disappointing thing!

no way to make it works!

Indeed:

-I first tried to modify the classpath of the manifest file, like this:

Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.2 Created-By: 1.6.0_24-b07
(Sun Microsystems Inc.) Class-Path:
/home/olivier/NetBeansProjects/YAPS3_container_interfaces/
dist/YAPS3_container_interfaces.jar /home/olivier/applications/glassf
ish3.1/glassfish/lib/gf-client.jar lib/YAPS3_container_interfaces.ja r
lib/asm-all-2.2.2.jar lib/forms-1.2.0.jar lib/laf-plugin.jar lib/la
f-widget.jar lib/substance-swingx.jar lib/swingx.jar lib/Theme.jar li
b/trident.jar lib/javax.security.auth.message.jar lib/javax.ejb.jar l
ib/javax.transaction.jar lib/javax.servlet.jsp.jar lib/javax.resource .jar
lib/jstl-impl.jar lib/javax.servlet.jar lib/jaxb-api-osgi.jar li
b/javax.jms.jar lib/webservices-api-osgi.jar lib/javax.servlet.jsp.js tl.jar
lib/jaxrpc-api-osgi.jar lib/javax.enterprise.deploy.jar lib/js f-impl.jar
lib/javax.mail.jar lib/jsf-api.jar lib/javax.persistence.j ar
lib/weld-osgi-bundle.jar lib/javax.annotation.jar lib/jersey-core. jar
lib/bean-validator.jar lib/javax.security.jacc.jar lib/
javax.management.j2ee.jar lib/web-core.jar lib/jackson-core-asl.jar li
b/jackson-jaxrs.jar lib/jackson-mapper-asl.jar lib/jersey-client.jar
lib/jersey-gf-server.jar lib/jersey-json.jar lib/jersey-multipart.jar
lib/jettison.jar lib/mimepull.jar X-COMMENT: Main-Class will be added
automatically by build Main-Class:
yaps3_and_another_one.YAPS3_and_another_one
but the result is the same.

Then, I tried to modify the build.xml file, like this :

<target name="-post-jar"> <jar jarfile="dist/Combined-dist.jar"> <zipfileset
src="${dist.jar}" excludes="META-INF/*" /> <zipfileset
src="lib/gf-client.jar" excludes="META-INF/*" /> <manifest> <attribute
name="Main-Class" value="com.example.mypackage.Main"/> </manifest> </jar>
</target>
but netbeans says to me :

The archive gf-client.jar doesn't exist
yet this archive IS in the dist/lib folder...

 

do you understand something?

olivier


--
[Message sent by forum member 'lolveley']
View Post: http://forums.java.net/node/796243