Please check the IDE logs for an exception. It seems to be that for some
reason NetBeans cannot effectively communicate with Glassfish in your case.
On 11/2/19 7:07 AM, Szepi Peter wrote:
Hi Geertjan,
So I tested it, I made a test Maven project under NB11.0 and 11.2, so
under 11.2, Maven project neither works. A simple build was fine in
both cases, but only the 11.0 was able to deploy the project.
So, on 11.2, the following appeared:
Deploying on GlassFish Server
profile mode: false
debug mode: false
force redeploy: true
On 11.0, the following:
Deploying on GlassFish Server
profile mode: false
debug mode: false
force redeploy: true
In-place deployment at
C:\devel\NetbeansProjects\mavenprojectNB110\target\mavenprojectNB110-1.0-SNAPSHOT
The last line "In-place deployment... " was not appeared even after 15
minutes.
Dou you have any idea?
Peter
2019. 11. 02. 14:19 keltezéssel, Geertjan Wielenga írta:
Can you reproduce if you use a Maven based project instead of an Ant
based project?
I am asking this so we can narrow down where the problem is coming from.
Gj
On Sat, 2 Nov 2019 at 14:13, Szepi Peter <[email protected]
<mailto:[email protected]>> wrote:
Hi All,
I am using Netbeans platform for so long, but now I really stuck
in a problem to upgrade to NB11.1 or 11.2 from 11.0.
I use Ant for build and deploy my projects to Glassfish,
currently to GF5.0.1. Building the project and creating war file
works fine with 11.*, but
11.1 and 11.2 is unable to deploy the project to Glassfish.
I increased the verbosity of Ant to Debug level, but there is no
useful information....
I got the following message (just recently created JEE7 ant
project, wtih "factory default" settings):
> -pre-run-deploy:
> -pre-nbmodule-run-deploy:
> -run-deploy-nb:
>
C:\Users\SzepiP\Documents\NetBeansProjects\WebApplication4\nbproject\build-impl.xml:1030:
Deployment error.
> See the server log for details.
> at
org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:112)
> at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
> at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown
Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
> at org.apache.tools.ant.Task.perform(Task.java:350)
> at org.apache.tools.ant.Target.execute(Target.java:449)
> at org.apache.tools.ant.Target.performTasks(Target.java:470)
> at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
> at
org.apache.tools.ant.Project.executeTarget(Project.java:1361)
> at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at
org.apache.tools.ant.Project.executeTargets(Project.java:1251)
> at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
> at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574)
> at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
> BUILD FAILED (total time: 0 seconds)
>
The affected part of the bulid-impl.xml:
> <target if="netbeans.home" name="-run-deploy-nb">
> <nbdeploy clientUrlPart="${client.urlPart}"
debugmode="false" forceRedeploy="${forceRedeploy}"/> <-- THE
PROBLEM IS HERE -->
> </target>
The error message suggests to check the server log file for
details, but it looks like, the Netbeans / Ant did not connected
to the server and have
not tried to deploy at al all. Checking the server, it is
responding. Service and Admin ports are working. When starting
server in debug mode, it also
accepts connection on its debug port, and Netbeans also connects
the debug port successfully, so problem only with the
deployment.... I still use Java
(Oracle) 1.8. The development environment is running on Windows
10 Pro x64.
The configurations/projects were migrated from NB11.0 to 11.1 and
11.2. Those looks unchanged. The glassfish installation is same
as I used with NB11.0.
I studied forums, etc but I have not found any similar in the
near past. Only a similar bug was reported concerning netbeans in
2006 and 2007....
Any suggestions are welcome.
Best regards,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
<mailto:[email protected]>
For additional commands, e-mail: [email protected]
<mailto:[email protected]>
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists