Closed glassfishrobot closed 15 years ago
@glassfishrobot Commented msreddy said: Jagadish, Pl. update the sample documentation stating that Netbeans does not have support for Connector module and it cannot work with netbeans.
@glassfishrobot Commented @h2002044 said: Sreeni : The issue is seen in .ear project which was working fine and was actually tested by Davis.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=8099
I am not sure what has changed between netbeans builds. I will try the steps followed by Shaline and provide more updates.
@glassfishrobot Commented @h2002044 said: I followed the steps and it worked fine for me.
Downloaded the following bundle : http://bits.netbeans.org/download/trunk/nightly/latest/bundles/netbeans-trunk-nightly-200905141401-ml-linux.sh
/home/jagadish/Desktop/netbeans-trunk-nightly-200905141401-ml-linux.sh
Installation of netbeans starts, Press Customize Select, Base Ide, Java SE, Java Web and EE (Note, I have not chosen any GlassFish bundle here)
Press OK Press Next Accept the license agreement Provide installation location /softwares/installation/nb6.7-nightly-may-14-09
Press Install
Press Finish once installation is successful
cd /softwares/installation/nb6.7-nightly-may-14-09
bin/netbeans
Install "GlassFish Enabler plugin", restart Netbeans, if not already available
Services tab > Servers, Righ Click and Add Server Select a GF v3 installation Register Domain
From File menu, select Open Project to open mailconnector-rar project, and then the mailconnector-ear project:
After they were opened, Right-click at the project, select Property > Run menu to change the Server runtime to GlasFish V3
Configured, the mailconnector-ra as below , Right click the mailconnector-ra project, select Properties > Java Sources Classpath and and selected the javax.mail.jar and javax.resource.jar in GlassFish Installation's modules directory
Succesfully built the mailconnector-rar project.
build mailconnector-ear project,
pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: undeploy-clean: deps-clean: init: undeploy-clean: deps-clean: clean: clean-ear: init: undeploy-clean: deps-clean: do-clean: check-clean: clean: clean-ear: do-clean: post-clean: clean: pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: init: deps-jar: Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/build/jar Copying 2 files to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/build/jar/META-INF Compiling 1 source file to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/build/jar compile: library-inclusion-in-manifest: Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/dist Building jar: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/dist/mailconnector-ejb.jar dist-ear: init: deps-module-jar: deps-ear-jar: init: deps-jar: compile: library-inclusion-in-manifest: dist-ear: deps-jar: Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/web/WEB-INF/classes Copying 5 files to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/web library-inclusion-in-archive: library-inclusion-in-manifest: Copying 1 file to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/build Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/web/META-INF Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/empty Compiling 2 source files to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/web/WEB-INF/classes Copying 1 file to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/build/web/WEB-INF/classes compile: compile-jsps: do-ear-dist: Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/dist Building jar: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-war/dist/mailconnector-war.war dist-ear: pre-pre-compile: pre-compile: Copying 1 file to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/build do-compile: Copying 2 files to /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/build/META-INF post-compile: compile: pre-dist: do-dist-without-manifest: Created dir: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/dist Building jar: /space/jagadish/workspaces/v3/tmp/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/mailconnector-ear/dist/mailconnector-ear.ear do-dist-with-manifest: post-dist: dist: BUILD SUCCESSFUL (total time: 1 second)
@glassfishrobot Commented shaline@java.net said: Verified on b03c nightly after following the instructions in the issue to setup the project in NB.
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-8326
@glassfishrobot Commented Reported by shaline@java.net
@glassfishrobot Commented Marked as cannot reproduce on Wednesday, May 20th 2009, 4:04:05 am
SDK build used: b03b promoted build47b.
The connector sample fails while building in NB, with the following message:
deps-clean: /glassfishv3/glassfish/samples/javaee6/connectors/apps/mailconnector/mailconnector-ear/nbproject/build-impl.xml:434: The following error occurred while executing this line: /glassfishv3/glassfish/samples/javaee6/connectors/apps/mailconnector/mailconnector-ear/mailconnector-ejb/nbproject/build-impl.xml:142: The Java EE server classpath is not correctly set up. Your active server type is J2EE. Either open the project in the IDE and assign the server or setup the server classpath manually. For example like this: ant -Duser.properties.file= (where you put the property
"j2ee.platform.classpath" in a .properties file)
or ant -Dj2ee.platform.classpath= (where no properties file is
used)
BUILD FAILED (total time: 0 seconds)
I followed the instructions to setup the env and to open the project in NB: as follows: 1. Downloaded and installed Netbean 6.7 Development version from http://bits.netbeans.org/download/trunk/nightly/latest/ (select the All version) 2. Start the Netbean IDE -> close the Start Page -> select Plugins menu from Tools tab -> under the "Available Plugins" tab, search for GlassFish v3 Enabler module -> select to install it
3. Right-click at the Servers node select Add Server > GlassFish V3 > specify the location of V3-SDK installation > select default domain1 to register
4. From File menu, select Open Project to open mailconnector-rar project, and then the mailconnector-ear project:
5. After they were opened, Right-click at the project, select Property > Run menu to change the Server runtime to GlasFish V3
6) Configured, the mailconnector-ra as below , Right click the mailconnector-ra project, select Properties > Java Sources Classpath and and selected the javax.mail.jar and javax.resource.jar in GlassFish Installation's modules directory
7) Succesfully built the mailconnector-rar project.
8) When We build the mailconnector-ear project(right click, and select build), the build fails with the above error message.
This should be fixed.
Environment
Operating System: All Platform: All
Affected Versions
[V3]