eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 144 forks source link

mailconnector-ear #11660

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 14 years ago

cannot deploy; seems to build fine;

have build mailconnector-connector-sample-ra and deployed without errors

following deploy error:

pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: mailconnector-ejb.init: mailconnector-ejb.deps-jar: mailconnector-ejb.compile: mailconnector-ejb.library-inclusion-in-manifest: Building jar: G:\Sun\sges- v3\glassfish\samples\javaee6\connectors\apps\mailconnector\mailconnector- ear\mailconnector-ejb\dist\mailconnector-ejb.jar mailconnector-ejb.dist-ear: mailconnector-war.init: mailconnector-war.deps-module-jar: mailconnector-war.deps-ear-jar: mailconnector-ejb.init: mailconnector-ejb.deps-jar: mailconnector-ejb.compile: mailconnector-ejb.library-inclusion-in-manifest: mailconnector-ejb.dist-ear: mailconnector-war.deps-jar: mailconnector-war.library-inclusion-in-archive: mailconnector-war.library-inclusion-in-manifest: Copying 1 file to G:\Sun\sges- v3\glassfish\samples\javaee6\connectors\apps\mailconnector\mailconnector- ear\build mailconnector-war.compile: mailconnector-war.compile-jsps: mailconnector-war.do-ear-dist: mailconnector-war.dist-ear: pre-pre-compile: pre-compile: do-compile: post-compile: compile: pre-dist: post-dist: dist-directory-deploy: pre-run-deploy: Initial deploying mailconnector-ear to G:\Sun\sges- v3\glassfish\samples\javaee6\connectors\apps\mailconnector\mailconnector- ear\dist\gfdeploy\mailconnector-ear Completed initial distribution of mailconnector-ear G:\Sun\sges- v3\glassfish\samples\javaee6\connectors\apps\mailconnector\mailconnector- ear\nbproject\build-impl.xml:268: Deployment error: null See the server log for details. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment .java:205) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor286.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1360) at org.apache.tools.ant.Project.executeTarget(Project.java:1329) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java: 41) at org.apache.tools.ant.Project.executeTargets(Project.java:1212) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:521) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Caused by: java.lang.NullPointerException at java.io.Win32FileSystem.compare(Win32FileSystem.java:576) at java.io.File.compareTo(File.java:1852) at java.io.File.compareTo(File.java:120) at java.util.TreeMap.put(TreeMap.java:545) at java.util.TreeSet.add(TreeSet.java:238) at java.util.AbstractCollection.addAll(AbstractCollection.java:305) at java.util.TreeSet.addAll(TreeSet.java:295) at org.netbeans.modules.glassfish.javaee.ResourceRegistrationHelper.getResourceDirs (ResourceRegistrationHelper.java:104) at org.netbeans.modules.glassfish.javaee.ResourceRegistrationHelper.deployResources (ResourceRegistrationHelper.java:85) at org.netbeans.modules.glassfish.javaee.ide.FastDeploy.initialDeploy(FastDeploy.ja va:121) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java: 623) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment .java:170) ... 16 more BUILD FAILED (total time: 0 seconds)

Environment

Operating System: All Platform: All

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented @h2002044 said: Using the sample with Netbeans is partially supported, but it works when following the documentation for the project.

Please follow the instructions at : javaee-samples/glassfish-samples/ws/javaee6/connectors/apps/mailconnector/docs/index.html

Section : "Building, Deploying, and Running the Application" DOCUMENTATION : "Setup your build environment and configure the application server with which the build system has to work by following the common build instructions." [common build instructions at : javaee-samples/glassfish-samples/ws/javaee5/docs/UserREADME.html]

Follow the second section to build and deploy using Netbeans.

DOCUMENTATION : " Note : Alternately, you can use Netbeans IDE to open the pre configured projects for mailconnector-ear and mailconnector-ra. Once they are opened,

1. configure the mailconnector-ra's dependencies to use javax.mail.jar, javax.resource.jar, javax.security.auth.message.jar and common-util.jar from GlassFish installation.

(Right click the mailconnector-ra project, select Properties > Java Sources Classpath and resolve the dependencies to use the javax.mail.jar, javax.resource.jar, javax.security.auth.message.jar and common-util.jar in GlassFish Installation's modules directory) 2. build and deploy mailconnector-ra 3. [In the command prompt] Change directory to ear_dir and ant setup will create necessary connector resource, pool and javamail resource. Use ant unsetup to delete these resources later. 4. build, deploy, run mailconnector-ear "

glassfishrobot commented 14 years ago

@glassfishrobot Commented @h2002044 said: Created an attachment (id=5110) console.log from netbeans w.r.t various targets (clean build deploy .rar, clean build deploy run .ear)

glassfishrobot commented 14 years ago

@glassfishrobot Commented File: console.log Attached By: @h2002044

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-11660

glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by emiddio@java.net

glassfishrobot commented 14 years ago

@glassfishrobot Commented Marked as cannot reproduce on Friday, October 8th 2010, 10:09:02 pm