[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] Deploying servlet on a tomcat

[moving thread to the newsgroup]
 
Hi Khawaja,
 
It sounds like you have everything deployed correctly. If you deployed the webapp overtop of an existing install it's a good idea to "sp_clean" your environment.
 
In terms of next steps... by default the "console" is launched which you can use to verify that everything is installed and started correctly. I'd spend some time learning the console commands as they're invaluable when tracking down problems.
 
All requests are proxied through the BridgeServlet. You can access the servlet and resource registered by the "sample.http" bundle at "/helloworld" and "/helloworld.html" relative to the context where you installed the war. e.g. http://localhost:8080/bridge/helloworld
 
 If you're using "sample.http.registry" try "/ext/helloworld" and "/ext/helloworld.html" again prefixed by your ServletContext path.
 
Hope this helps.
-Simon
 


From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Khawaja Shams
Sent: Tuesday, July 11, 2006 8:33 PM
To: Equinox development mailing list
Subject: [equinox-dev] Deploying servlet on a tomcat

Hello,
    I was able to deploy my servlet on the osgi framework within Eclipse, and all the needed services worked fine.  My next step is to deploy this project on our production tomcat instance.  I am looking at the following guide:
http://www.eclipse.org/equinox/incubator/server/embedding_in_a_servlet_container.php
 
I have deployed bridge.war, and the sp_test context shows that the bridge is deployed successfully.  I have also downloaded the sample applications.  I followed the instructions on the build process section, and I have the following directory structure:
 
RangeMapServle/t
       WEB-INF/
                web.xml (same as sample web application)
        lib/
             servlet-bridge.jar
       platform/
              plugins/
                       all my dependent plugins along with everything in this folder of the sample web application (without registry)
              features/
                       feature.xml (same as the sample application + my bundle added to the description)
              configuration/
                       config.ini (same as sample + an @start for my bundle
               launch.ini
 
 
 
I am curious what the next step should be.  I tried creating a war archive and placing it in tomcat's webapp directory.  Tomcat's log shows an attempt to deploy the application as well.  However, I am not sure if properly deployed or not. Moreover, how would I access the servlet?  Would it be accessed through the bridge servlet? If there are any instructions on how to access the sample application once deployed, I would like to see them.  I ran the WebAppBuilder.xml script in the launcher, and I saw the directory structure.  However, I am still unsure of how to deploy the application.  I would sincerely appreciate any help.
 
 
Regards,
Khawaja
 
 
     This message may contain privileged and/or confidential information.  If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so.  Thank you.