Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Deploying WAR file on Sun One WS

Thread view: 
Chuck - 30 Nov 2005 14:56 GMT
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
js - 30 Nov 2005 22:52 GMT
> Hello,
>
[quoted text clipped - 12 lines]
> 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.
Chuck - 01 Dec 2005 14:09 GMT
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.

> I presume you are talking about the Apply button at the upper right hard
> corner of the html page.
[quoted text clipped - 8 lines]
>
> You'll then need to ./stop and then ./start the server instance.
js - 02 Dec 2005 03:07 GMT
> 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
[quoted text clipped - 15 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.