tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Robert.Jen...@surecomp.com>
Subject follow on delpoying a war and starting application
Date Tue, 01 Feb 2011 14:17:27 GMT
I have a war file that is produced by the Oracle version of Eclipse and the=
 created war file works with Websphere and WebLogic.

I have been attempting to deploy this war file in Tomcat 7. After receiving=
 some helpful advice from this mail group I have been able to deploy the ap=
plication. Thanks for the help folks.

What I ended up doing is the following


1.       Download JAS-WS RI and copy jars to tomcat/lib. Searching the inte=
rnet I found this article (http://www.mkyong.com/webservices/jax-ws/deploy-=
jax-ws-web-services-on-tomcat/ ) which provided a working example which I c=
ould reverse and apply to my system.

2.       Modify the web.xml

3.       Create the sun-jaxws.xml

The following is a sampling of the original web.xml

  <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.InitServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>dataextract.csv</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.InitServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>LearnedExceptionServiceServlethttp</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.webservices.LearnedExceptio=
nService</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>

First I had to add a listener

    <listener>
        <listener-class>
                com.sun.xml.ws.transport.http.servlet.WSServletContextListe=
ner
        </listener-class>
</listener>

Each of my web service names end in ServiceServlethttp I had to replace eac=
h class name with com.sun.xml.ws.transport.http.servlet.WSServlet

So the same section of web.xml end up looking like this

    <listener>
        <listener-class>
                com.sun.xml.ws.transport.http.servlet.WSServletContextListe=
ner
        </listener-class>
</listener>
  <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.InitServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>dataextract.csv</servlet-name>
    <servlet-class>com.surecomp.allMATCH.client.InitServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>LearnedExceptionServiceServlethttp</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet=
-class>
    <load-on-startup>0</load-on-startup>
  </servlet>

Then I had to define the end points and this is done by means of sun-jaxws.=
xml

<endpoints
  xmlns=3D"http://java.sun.com/xml/ns/jax-ws/ri/runtime"
  version=3D"2.0">
  <endpoint name=3D"DataExtractServiceServlethttp" implementation=3D"com.su=
recomp.allMATCH.client.webservices.DataExtractService" url-pattern=3D"/Data=
ExtractService"/>
  <endpoint name=3D"ReportServiceServlethttp" implementation=3D"com.surecom=
p.allMATCH.client.webservices.ReportService" url-pattern=3D"/ReportService"=
/>
  <endpoint name=3D"BranchesServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.BranchesService" url-pattern=3D"/BranchesSe=
rvice"/>
  <endpoint name=3D"ContactServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.ContactService" url-pattern=3D"/ContactServi=
ce"/>
  <endpoint name=3D"ArchiveServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.ArchiveService" url-pattern=3D"/ArchiveServi=
ce"/>
  <endpoint name=3D"CLSStatusServiceServlethttp" implementation=3D"com.sure=
comp.allMATCH.client.webservices.CLSStatusService" url-pattern=3D"/CLSStatu=
sService"/>
  <endpoint name=3D"LanguageServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.LanguageService" url-pattern=3D"/LanguageSe=
rvice"/>
  <endpoint name=3D"TradeLocksServiceServlethttp" implementation=3D"com.sur=
ecomp.allMATCH.client.webservices.TradeLocksService" url-pattern=3D"/TradeL=
ocksService"/>
  <endpoint name=3D"PasswordSettingsServiceServlethttp" implementation=3D"c=
om.surecomp.allMATCH.client.webservices.PasswordSettingsService" url-patter=
n=3D"/PasswordSettingsService"/>
  <endpoint name=3D"BICServiceServlethttp" implementation=3D"com.surecomp.a=
llMATCH.client.webservices.BICService" url-pattern=3D"/BICService"/>
  <endpoint name=3D"LoginServiceServlethttp" implementation=3D"com.surecomp=
.allMATCH.client.webservices.LoginService" url-pattern=3D"/LoginService"/>
  <endpoint name=3D"MonitorServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.MonitorService" url-pattern=3D"/MonitorServi=
ce"/>
  <endpoint name=3D"BrokerServiceServlethttp" implementation=3D"com.surecom=
p.allMATCH.client.webservices.BrokerService" url-pattern=3D"/BrokerService"=
/>
  <endpoint name=3D"QueueServiceServlethttp" implementation=3D"com.surecomp=
.allMATCH.client.webservices.QueueService" url-pattern=3D"/QueueService"/>
  <endpoint name=3D"HolidayServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.HolidayService" url-pattern=3D"/HolidayServi=
ce"/>
  <endpoint name=3D"CurrencyServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.CurrencyService" url-pattern=3D"/CurrencySe=
rvice"/>
  <endpoint name=3D"OverviewServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.OverviewService" url-pattern=3D"/OverviewSe=
rvice"/>
  <endpoint name=3D"PauseServiceServlethttp" implementation=3D"com.surecomp=
.allMATCH.client.webservices.PauseService" url-pattern=3D"/PauseService"/>
  <endpoint name=3D"CustomerServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.CustomerService" url-pattern=3D"/CustomerSe=
rvice"/>
  <endpoint name=3D"MatchingLogicServiceServlethttp" implementation=3D"com.=
surecomp.allMATCH.client.webservices.MatchingLogicService" url-pattern=3D"/=
MatchingLogicService"/>
  <endpoint name=3D"MessageServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.MessageService" url-pattern=3D"/MessageServi=
ce"/>
  <endpoint name=3D"LicenseUsageServiceServlethttp" implementation=3D"com.s=
urecomp.allMATCH.client.webservices.LicenseUsageService" url-pattern=3D"/Li=
censeUsageService"/>
  <endpoint name=3D"UsersServiceServlethttp" implementation=3D"com.surecomp=
.allMATCH.client.webservices.UsersService" url-pattern=3D"/UsersService"/>
  <endpoint name=3D"HelpServiceServlethttp" implementation=3D"com.surecomp.=
allMATCH.client.webservices.HelpService" url-pattern=3D"/HelpService"/>
  <endpoint name=3D"LogServiceServlethttp" implementation=3D"com.surecomp.a=
llMATCH.client.webservices.LogService" url-pattern=3D"/LogService"/>
  <endpoint name=3D"ReasonCodeServiceServlethttp" implementation=3D"com.sur=
ecomp.allMATCH.client.webservices.ReasonCodeService" url-pattern=3D"/Reason=
CodeService"/>
  <endpoint name=3D"SupportEmailServiceServlethttp" implementation=3D"com.s=
urecomp.allMATCH.client.webservices.SupportEmailService" url-pattern=3D"/Su=
pportEmailService"/>
  <endpoint name=3D"NewPasswordServiceServlethttp" implementation=3D"com.su=
recomp.allMATCH.client.webservices.NewPasswordService" url-pattern=3D"/NewP=
asswordService"/>
  <endpoint name=3D"LearnedServiceServlethttp" implementation=3D"com.sureco=
mp.allMATCH.client.webservices.LearnedService" url-pattern=3D"/LearnedServi=
ce"/>
  <endpoint name=3D"CommentsServiceServlethttp" implementation=3D"com.surec=
omp.allMATCH.client.webservices.CommentsService" url-pattern=3D"/CommentsSe=
rvice"/>
  <endpoint name=3D"LogoutServiceServlethttp" implementation=3D"com.surecom=
p.allMATCH.client.webservices.LogoutService" url-pattern=3D"/LogoutService"=
/>
</endpoints>

For each web service I had to map the servlet name ie. LearnedExceptionServ=
iceServlethttp to the actual class name ie. com.surecomp.allMATCH.client.we=
bservices.LearnedService and indicate the url-pattern for the web service /=
LogoutService.

The url-pattern is the name used by IE/Firefox to call the web service.

Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


This mail was sent via Mail-SeCure System.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message