Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
View Interest List Message Details
<< Back to Search Results

Date: 09/26/2005
From: matt@newatlanta.com
Subject: Re: [ServletExec] Java Web Services on SE 5.0
Ah, so you are using the -root option in your start script to tell your 
ASI that

C:/ServletExec AS/se-GIFT/jsps

is the document root of the webapp named "default-app".

Now I understand.
It is good that you use a subfolder of the se-GIFTS folder since otherwise,     
people could request your SE configuration files or log files.

Also, your subject line indicates that you are using SE 5.0.
If that is so, then you do not need the following 2 lines in your               
webadapter.properties file:

---
servletexec.GIFT.applications=/example
servletexec.GIFT.aliases=/servlet,.shtml,.jsp
---

You should remove those lines.
They are not being read in by the adapter.
With SE 5.0, those lines are obsolete.

You may want to read:
http://www.newatlanta.com/c/products/servletexec/self_help/faq/detail?faqId=259

for more details.

To configure the application, you just go to the SE admin pages and on the      
left, click the "Manage" link under the "Web Applications"  
heading.
Then click the "Add web application" button and type in a name for    
the application, a context path of "/axis" (no quotes) and then give  
the absolute path on the hard drive for the location.

For example, on my machine... I unzipped the example to the "My Documents  
folder", giving me:

C:\Documents and Settings\matt\My Documents\axis_example

Running all the batch files as you did is what populates the webapp with the    
classes and JARs that are needed.
So then the location to enter in the admin UI would be:

C:\Documents and Settings\matt\My Documents\axis_example\webapp

Basically it is the same as deploying any webapp... you point SE to the folder  
that contains the WEB-INF folder for that webapp.
Voila... it's configured (i.e. deployed) in SE.

You should then be able to use the standalone client that comes with that       
example to access the webservice that's available in that newly deployed   
webapp.

The exampleWebApp that comes with SE might be a simpler place to start, just to 
learn about a webapp, how to deploy it, and how one works.
The SE 5.0 User Guide discusses the exampleWebApp.

Matt McGinty
Software Engineer
New Atlanta Communications, LLC
http://www.newatlanta.com 



Kelly, Michael (DSI) wrote:

>>Yes, if localhost does not work for you, then yes... you'll need   
to
>>    
>>
>edit 
>  
>
>>the example so that it does not try to use localhost (or any other 
>>hostname that fails to function for you).
>>Or you might try to figure out why your localhost is disabled, and
>>    
>>
>then 
>  
>
>>take steps to re-enable it.
>>
>>    
>>
>I have no problem changing references to localhost and have done that.
>
>  
>
>>If you place HelloWorld.jsp at C:/ServletExec AS/se-GIFT, and it is 
>>served, then that seems very odd to me.
>>The C:\ServletExec AS\se-GIFT\ folder would not be a document root
>>    
>>
>(for 
>  
>
>>any context) by default.
>>
>>    
>>
>Not really odd since we do not use the default as the document root. IIS
>has been configured to send jsps to the GIFT ServletExec instance via
>the following line in the webadapter.properties file in the
>Inetpub/scripts directory...
>
>servletexec.GIFT.hosts=128.147.226.48, test.gift-d.org
>servletexec.GIFT.applications=/example
>servletexec.GIFT.aliases=/servlet,.shtml,.jsp
>servletexec.GIFT.pool-increment=5
>servletexec.GIFT.pool-max-idle=10
>servletexec.GIFT.instances=128.147.226.48:8888
>
>
>And the command used to run the SE instance is
>java -classpath ".<snipped code>"
>-Djava.naming.factory.initial=com.newatlanta.servletexec.InitialContextF
>actory ServletExec -name "GIFT" -home "C:\ServletExec        
AS\se-GIFT" -root
>"C:\ServletExec AS\se-GIFT" -port 8888
>
>So when IIS sends a request to SE for a GIFT jsp lookup, SE knows to
>look for GIFT jsps at C:\ServletExec AS\se-GIFT because of the              
'-root'
>setting in the command line. Naturally other instances are running on
>different ports and locate their jsps in other folders. 
>
>This non standard behavior. When SE sets up the StartServletExec.bat
>file for a new instance, I'm pretty sure that by default it makes the
>root the Inetpub folder you suggested. We modified it so that we could
>arrange our jsps and servlet code for the different instances under
>different folders. Makes things a heck of a lot cleaner. And sometimes
>we deploy SE on a machine that does not have IIS, and thus no Inetpub
>folder.
>
>And actually, we set our root to C:\ServletExec AS\se-GIFT\jsps but I
>thought it would be easier to follow if I left out the jsps subfolder. 
>
>  
>
>>Are you sure you don't have a HelloWorld.jsp
>>sitting at ...\Inetpub\GIFT\ ?
>>
>>    
>>
>See previous comment. 
>
>  
>
>>Anyway, I'm glad to know that you are able to access the SE admin
>>    
>>
>pages 
>  
>
>>when you use the right hostname.
>>Take care.
>>
>>Matt McGinty
>>Software Engineer
>>New Atlanta Communications, LLC
>>http://www.newatlanta.com 
>>
>>    
>>
>So how do I 
>'Configure the web-service web application in ServletExec with a URL
>context of "/axis/"' for this configuration.
>
>Failing to be able to explain this for my configuration, could you tell
>me what this means in any configuration?
>
>
>-------------------------------------------------------------------------
>ServletExec-Interest. For archives and unsubscribe instructions, visit:
>
>    http://www.newatlanta.com/servletexec-interest.jsp
>  
>

-------------------------------------------------------------------------
ServletExec-Interest. For archives and unsubscribe instructions, visit:

    http://www.newatlanta.com/servletexec-interest.jsp

Message Thread
Date Subject Author
09/26/2005 Re: [ServletExec] Java Web Services on SE 5.0 matt@newatlanta.com
09/26/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/26/2005 Re: [ServletExec] Java Web Services on SE 5.0 matt@newatlanta.com
09/26/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/26/2005 Re: [ServletExec] Java Web Services on SE 5.0 matt@newatlanta.com
09/27/2005 RE: [ServletExec] Java Web Services on SE 5.0 jitesh.h.amin@lmco.com
09/27/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/27/2005 RE: [ServletExec] Java Web Services on SE 5.0 jitesh.h.amin@lmco.com
09/27/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/27/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/27/2005 Re: [ServletExec] Java Web Services on SE 5.0 matt@newatlanta.com
09/28/2005 RE: [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
09/28/2005 Re: [ServletExec] Java Web Services on SE 5.0 matt@newatlanta.com
09/26/2005 [ServletExec] Java Web Services on SE 5.0 kellymt@upmc.edu
<< Back to Search Results


   
company media information terms of use privacy policy contact us