Glassfish Exploded Directory Support?

I can't seem to selected the exploded directory option for Glassfish 9.0.1 as a deployment option for my web application. I am able to select a war however. Should this feature work?

0
10 comments
Avatar
Permanently deleted user

No, unfortunately this isn't supported by Glassfish. The deployment manager implementation of Glassfish only handles single archive files.

0
Avatar
Permanently deleted user

glassfish does support exploded deployments.

0
Avatar
Permanently deleted user

glassfish does support exploded deployments.


You're right, but only when copying the deployment directory into the autodeploy folder, not when using the JSR88 deployment manager. And using the autodeploy mechanism isn't an option, as we have to react on successful/unsuccessful deployment. Therefore the deployment process has to be done in a controlled manner with a valid feedback. Simply copying something into the autodeploy folder and hoping that the autodeployer is running and will pick up the new target sometime in the near future is not reliable enough.

0
Avatar
Permanently deleted user

You may use the deploydir command.

%asadmin deploydir --user admin --passwordfile passwords.txt --host localhost --port 4848 --force=true --precompilejsp=true /home/temp/sampleApp ]]>

0
Avatar
Permanently deleted user

Here's the skinny:

http://developers.sun.com/appserver/reference/techart/deployment.html#5

It supports exploded view, beware of underscore instead of . as in webapp_war.

Requires .reload file to trigger glassfish to reload incremental changes.

Very cool, I think

0
Avatar
Permanently deleted user

We just reworked the deployment mechanism of Glassfish integration plugin to support deployment of exploded directories into Glassfish. Please give it a try once the next build becomes available.

0
Avatar
Permanently deleted user

Looks like this is broken again.

Intellij version - 7.0.2
Glassfish Version - V2 UR 1

The project has a web-facet.
Tried both the exploded directory and the WAR structure.
IntelliJ was not able to deploy the Web application to Glassfish.

Any workarounds ?

Thanks,

0
Avatar
Permanently deleted user

Looks like this is broken again.

...

Any workarounds ?


Any useful error description?

0
Avatar
Permanently deleted user

There are no errors on the console.
When I click the "Deploy All" button, the status message at
the bottom shows "All files are up-to-date"

But the web based project is not deployed.

Just checked it at the admin console of glassfish.
I had also checked the error logs of glassfish if there are any errors, and there are none.

Here is the message at IDEA's console.
======================================
cmd /c C:\servers\glassfish\bin\asadmin.bat start-domain domain1
Starting Domain domain1, please wait.
Log redirected to C:\servers\glassfish\domains\domain1\logs\server.log.
Redirecting output to C:/servers/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain is running with its configuration and logs at: .
Admin Console is available at .
Use the same port for "asadmin" commands.
User web applications are available at these URLs:
.
Following web-contexts are available:
.
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
for domain management purposes.
Domain listens on at least following ports for connections:
.
Domain does not support application server clusters and other standalone instances.
======================================

Please let me know if you need any more information, that could help in fixing this issue.

NOTE - The project which I had created was a simple "web based facet project" using Sun's JSF reference implementation.

0
Avatar
Permanently deleted user

Thanks for the detailed error description. I found indeed an incompatibility in Glassfish V2 UR1 (the server MBean reports its state as Stopped instead of Running, which IMHO is a bug of Glassfish). I'll try to find a workaround ASAP. To track the problem please file a request here: http://www.jetbrains.net/jira/browse/JEEAS

0

Please sign in to leave a comment.