Deploying WAR file on Sun One WS

C

Chuck

Hello,

I was just looking through the archives on deploying a WAR file on Sun
One WS. I found an old set of instructions dating back to 2001. It
didn't seem to be complete for deploying a WAR file. I was wondering
if anyone can provide the steps for deploying a WAR file on Sun One. I
am stuck on the posting part, in other words my html post is unable to
invoke the servlet class that I'm trying to get to. I get an HTTP 404
not found error. I am using Sun One's Admin interface which simply has
only four entries: (1) WAR file on: local machine, (2) WAR file path:
self explanatory, (3) Application URI:, and (4) Installation
Directory:. Then I click on apply to refresh the WS. Any help is
greatly appreciated!

Thanks,
Chuck
 
J

js

Chuck said:
Hello,

I was just looking through the archives on deploying a WAR file on Sun
One WS. I found an old set of instructions dating back to 2001. It
didn't seem to be complete for deploying a WAR file. I was wondering
if anyone can provide the steps for deploying a WAR file on Sun One. I
am stuck on the posting part, in other words my html post is unable to
invoke the servlet class that I'm trying to get to. I get an HTTP 404
not found error. I am using Sun One's Admin interface which simply has
only four entries: (1) WAR file on: local machine, (2) WAR file path:
self explanatory, (3) Application URI:, and (4) Installation
Directory:. Then I click on apply to refresh the WS. Any help is
greatly appreciated!

Thanks,
Chuck

I presume you are talking about the Apply button at the upper right hard
corner of the html page.

You are supposed to click on the "OK" button just below the 4 entries you
mentioned below.

If all else fails, you can simply modify your config/server.xml and add the
corresponding entries for your webapp. Note that SunOne expects an
directory ( an expanded WAR archive ) in the server.xml file, .... and
deploying the webapp via the admin interface does the same thing.

You'll then need to ./stop and then ./start the server instance.
 
C

Chuck

Okay. I forgot to mention that I'm developing the Web Apps in JBuilder
(not totally sure if that makes a lot of difference). I have found
some docs related to what you said:

Adding a server-specific XML file to the WAR file
---------------------------------------------------------------------

If you are using a server that JBuilder does not support, you will have
to add your server-specific XML file to the WEB-INF folder and to the
project. To do this,

1. Place the server-specific XML file in the web module's WEB-INF
folder.
2. In JBuilder, use the Add Files/Packages/Classes button to add the
XML file to your project.

JBuilder automatically includes all .xml files in the WEB-INF directory
in the WAR file - when you create your WAR file, the newly added file
will be included.
 
J

js

Chuck said:
Okay. I forgot to mention that I'm developing the Web Apps in JBuilder
(not totally sure if that makes a lot of difference). I have found
some docs related to what you said:

Adding a server-specific XML file to the WAR file
---------------------------------------------------------------------

If you are using a server that JBuilder does not support, you will have
to add your server-specific XML file to the WEB-INF folder and to the
project. To do this,

1. Place the server-specific XML file in the web module's WEB-INF
folder.
2. In JBuilder, use the Add Files/Packages/Classes button to add the
XML file to your project.

JBuilder automatically includes all .xml files in the WEB-INF directory
in the WAR file - when you create your WAR file, the newly added file
will be included.

What you mentioned above is probably referring to sun-web.xml that lives in
WEB-INF/ ... but that is not needed, only optional if you want to override
certain settings ( such as saving the HttpSession in a database so that you
can have your webapp load-balanced across different hosts ).

What I was referring to as the server.xml file is a configuration file for
the webserver itself ( NOT per webapp ) in sunone. It basically lists all
of your webapps that you have deployed, plus any global-JVM settings.

In any case, see this:


http://docs.sun.com/source/817-6251-10/pwadeply.html


You can deploy using the admin interface, or wdeploy, or even manually
change the server.xml file.

And then read this:

http://docs.sun.com/source/817-6248-10/crintro.html#wp999059
http://docs.sun.com/source/817-6248-10/crsrvrx.html#wp1035366
http://docs.sun.com/source/817-6248-10/crsrvrx.html#wp1029919


The WEBAPP element is the server.xml file is the one you are after.

Note that, if you manually update the server.xml file, you MAY loose your
changes if you do an "Apply Changes" on the admin interface. In order not
to loose the changes, do "Load Configuration ..." first.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top