added Servlet config to web.xml, but still not working
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > added Servlet config to web.xml, but still not working




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    added Servlet config to web.xml, but still not working  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-20-07 06:24 AM

I want to call a Servlet from my portlet.

1. I created the class com.flowserve.fpd.gid.portal.servlet.Downloader

2.  I edited web.xml:

<servlet>
<servlet-name>downloader</servlet-name>		          <servlet-class>com.flowse
rve.fpd.gid.portal.servlet.Downloader</servlet-class>
</servlet>

..............

<servlet-mapping>
<servlet-name>downloader</servlet-name>
<url-pattern>/downloader</url-pattern>
</servlet-mapping>

3.  I restarted Portal Server and hit the servlet with this url:
/.Portlet/downloader

(works fine.)

This works on my desktop, but not on the test server.  The only difference I
 see is thae test server uses a different context, like this:

/wps/PA_iizxnh2/downloader

I also tried:
/wps/downloader

Any ideas why this new Servlet is not working?

I appreciate your help.






[ Post a follow-up to this message ]



    Re: added Servlet config to web.xml, but still not working  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-07 12:32 AM

Hey guys, to clarify,

When I created this new Servlet, I DID not re-deploy the war file.  I simply
 did this:

1.  Stopped the server.
2.  Edited web.xml with the servlet mappings (above).
3.  Uploaded the new Servlet class file to the server.
4.  Started the server.

Do I need to actually re-deploy this war before it will see this new Servlet
?

Any ideas would be helpful!







[ Post a follow-up to this message ]



    Re: added Servlet config to web.xml, but still not working  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-07 06:28 PM

Redeploying will be recommended. The first part of the url is dynamic (portl
et context) and should be generated by a snippet (depending on your framewor
k).






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register