Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does glassfish save your class/project after deployment on Windows?

I am using Glassfish3.1 on Windows XP. After deploy a web service project using Netbeans, it works fine. But when i go to

install-path\glassfish-3.1\glassfish\domains\domain1\applications

I don't see my application.

under install\glassfish-3.1\glassfish\domains\domain1\applications\__internal, there's a folder with the same name as my project. But that folder is empty.

But if i deploy a project on linux, i can find my application and classes under application folder.

So where are they on windows?

like image 417
neo Avatar asked Apr 01 '11 15:04

neo


2 Answers

When you use netbeans, the default deployment dir is the build/web subdir of your netbeans project folder. E.g. when your project is called myProject, the deployment dir is myProject/build/web.

It's of course a bit irritating since it is usually outside the glassfish install dir. But you can configure your webapp to be based in any dir of your harddrive.

In general you can find the location of any of your glassfish webapps in the domain.xml file of your domain, e.g. glassfish/domains/domain1/config/domain.xml

Each webapp has an <application> element with an attribute location, e.g. for one of my projects:

<application context-root="/MyFirstWebService"
     location="file:/C:/.../NetBeansProjects/MyFirstWebService/build/web/" 
     directory-deployed="true" name="MyFirstWebService" object-type="user">
like image 129
Matt Handy Avatar answered Sep 22 '22 00:09

Matt Handy


you can see path of application where it was deployed through glashfish admin console

eg.

http://localhost:4848/

or

http://yourhost_name:4848/

Common Tasks -> Applications -> you_application -> general -> Location:

like image 43
Srihari Konakanchi Avatar answered Sep 21 '22 00:09

Srihari Konakanchi