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 / May 2007

Tip: Looking for answers? Try searching our database.

No services in tomcat

Thread view: 
ffellico@inwind.it - 13 May 2007 10:52 GMT
Hi.

I have a webservice named thewebservice and it work ok in windows.

When I copy it from the webapps of windows to the webapps of linux I
can't see it.

Infact visiting the url http://localhost:8080/thewebservice/services
on linux I see only the following line:

And now... Some Sevices (and nothing after)

If I delete in server-config.wsdd the lines to deploy my new WS I can
see the following:

And now... Some Sevices

AdminService (wsdl)
   AdminService

Version (wsdl)
   getVersion

Can anyone help me? Thank you from Franco in Italy
Lew - 13 May 2007 16:36 GMT
> I have a webservice named thewebservice and it work ok in windows.
>
[quoted text clipped - 16 lines]
> Version (wsdl)
>     getVersion

I will make guesses about the (substantial amount of) information that you
omitted from your description.  If they are mistaken, please provide the
missing information.

Guess: You are using Axis 1.x.
Guess: You are deploying to Tomcat 5.x.

The disappearance of the services from the "And now..." page comes from the
failure of 'thewebservice' to deploy properly.  Their reappearance after you
deleted the references from the WSDD indicates that Axis is correctly installed.

What are the WSDD tags pertinent to your service?

Are they exactly (!) the same in the Linux WSDD as in Windows?

Are the same libs (JAR files) for the service installed in the Linux
application as for the Windows?

It'll probably help to clear out all cached classes and other deployment
artifacts from Tomcat relating to your service between deployments.  You have
to hunt through directories like ${CATALINA_HOME}/work/Catalina/localhost and
${CATALINA_HOME}/webapps for these.

Your symptoms are tricky to nail down.  The WSDD is the first trouble spot to
investigate.  Anything that messes up the service deployment will produce the
same symptoms in the browser.

Signature

Lew

ffellico@inwind.it - 14 May 2007 17:31 GMT
Ok Lew.

You guess correctly: I use AXIS 1.2 and Tomcat 5.5.9

I checked anything you suggest me, but I am still unable to see my
webservice in Linux.

You must consider that I moved the entire directory "thewebservice"
from the Windows webapps to the Linux webapps; so all I have in
Windows is the same that I have in Linux.

In ...WEB-INF/lib also I have all the library I use in the webservice
(obviously in Windows and in Linux).

I have had another doubt: In windows I compiled everything using
NETBEANS IDE and JAVA 1.6 but in Linux I have Java 1.5. So I installed
the java JDK 1.6 also in Linux, but still the webservice don't
appears.

I am not to expert in Linux so I am not sure that I am using the
correct Java version: anyway with following command:

rpm -qva jdk
 the response is :
jdk-1.6.0-fcs

but I don't know if this is sufficient to tell me that the Java
version used is the correct one.

with the command: echo $JAVA_HOME I receive /usr/lib/java but why I
can check that in that location there is  now the 1.6.0 version?

I hope that you can help me with some other suggestion. Thanks again.
Franco.

Lew ha scritto:

> > I have a webservice named thewebservice and it work ok in windows.
> >
[quoted text clipped - 46 lines]
> --
> Lew
Lew - 15 May 2007 01:05 GMT
> Ok Lew.

Please post comments in line with quoted material rather than above it
("top-posted").

> I checked anything you suggest me, but I am still unable to see my
> webservice in Linux.

>>> What are the WSDD tags pertinent to your service?

Often the error is something in the WSDD.

> I have had another doubt: In windows I compiled everything using
> NETBEANS IDE and JAVA 1.6 but in Linux I have Java 1.5. So I installed
> the java JDK 1.6 also in Linux, but still the webservice don't
> appears.

That should not matter if you got no warnings or errors from the build or the
deployment in Linux, whichever you did.

> I am not to expert in Linux so I am not sure that I am using the
> correct Java version: anyway with following command:
[quoted text clipped - 5 lines]
> but I don't know if this is sufficient to tell me that the Java
> version used is the correct one.

It says that you are using Java 6, which should be fine.

> with the command: echo $JAVA_HOME I receive /usr/lib/java but why I
> can check that in that location there is  now the 1.6.0 version?

Run "java -version" for the "java" executable you wish to investigate.

Signature

Lew

ffellico@inwind.it - 15 May 2007 06:42 GMT
Hi Lew (here my post in-line)

> ffell...@inwind.it wrote:
> > Ok Lew.
[quoted text clipped - 5 lines]
> > webservice in Linux.
> >>> What are the WSDD tags pertinent to your service?
I don't understand what you ask me here (about tags), sorry!
Anyway here is all my WSDD:
------------------
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
 <parameter name="adminPassword" value="admin"/>
 <parameter name="enableNamespacePrefixOptimization" value="true"/>
 <parameter name="attachments.Directory" value="C:\apache-
tomcat-5.5.15\webapps\prova\WEB-INF\attachments"/>
 <parameter name="disablePrettyXML" value="true"/>
 <parameter name="attachments.implementation"
value="org.apache.axis.attachments.AttachmentsImpl"/>
 <parameter name="sendXsiTypes" value="true"/>
 <parameter name="sendMultiRefs" value="true"/>
 <parameter name="sendXMLDeclaration" value="true"/>
 <requestFlow name="RequestFlow1">
  <handler name="Handler1"
type="java:org.apache.axis.handlers.JWSHandler">
   <parameter name="scope" value="session"/>
  </handler>
  <handler name="Handler2"
type="java:org.apache.axis.handlers.JWSHandler">
   <parameter name="scope" value="request"/>
   <parameter name="extension" value=".jwr"/>
  </handler>
  <handler name="Handler3"
type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
 </requestFlow>
 <responseFlow name="ResponseFlow1">
  <handler name="Handler1"
type="java:org.apache.axis.handlers.SOAPMonitorHandler"/>
 </responseFlow>
</globalConfiguration>
<responseFlow name="ResponseFlow1">
 <handler name="Handler1" type="LocalResponder"/>
</responseFlow>
<handler name="soapmonitor"
type="java:org.apache.axis.handlers.SOAPMonitorHandler">
 <parameter name="wsdlURL" value="/axis/SOAPMonitorService-impl.wsdl"/

 <parameter name="serviceName" value="SOAPMonitorService"/>
 <parameter name="namespace" value="http://tempuri.org/wsdl/2001/12/
SOAPMonitorService-impl.wsdl"/>
 <parameter name="portName" value="Demo"/>
</handler>
<handler name="Handler1" type="LocalResponder"/>
<handler name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>
<handler name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="Handler2"
type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
<requestFlow name="RequestFlow1">
 <handler name="Handler1" type="URLMapper"/>
 <handler name="Handler2"
type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
<service name="AdminService" provider="java:MSG">
 <parameter name="allowedMethods" value="AdminService"/>
 <parameter name="enableRemoteAdmin" value="true"/>
 <parameter name="className" value="org.apache.axis.utils.Admin"/>
 <namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="Version" provider="java:RPC">
 <parameter name="allowedMethods" value="getVersion"/>
 <parameter name="className" value="org.apache.axis.Version"/>
</service>
<service name="theWS" provider="java:RPC">
 <parameter name="allowedMethods" value="*"/>
 <parameter name="className" value="org.ffellico.jws.theWS"/>
</service>
<service name="SOAPMonitorService" provider="java:RPC">
 <parameter name="allowedMethods" value="publishMessage"/>
 <parameter name="scope" value="Application"/>
 <parameter name="className"
value="org.apache.axis.monitor.SOAPMonitorService"/>
</service>
<transport name="http">
 <requestFlow name="RequestFlow1">
  <handler name="Handler1" type="URLMapper"/>
  <handler name="Handler2"
type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
 </requestFlow>
 <parameter name="qs.list"
value="org.apache.axis.transport.http.QSListHandler"/>
 <parameter name="qs.method"
value="org.apache.axis.transport.http.QSMethodHandler"/>
 <parameter name="qs.wsdl"
value="org.apache.axis.transport.http.QSWSDLHandler"/>
</transport>
<transport name="local">
 <responseFlow name="ResponseFlow1">
  <handler name="Handler1" type="LocalResponder"/>
 </responseFlow>
</transport>
</deployment>
----------------------
the service that don't work is:
<service name="theWS" provider="java:RPC">
 <parameter name="allowedMethods" value="*"/>
 <parameter name="className" value="org.ffellico.jws.theWS"/>
</service>

and when I delete that lines the other services appears.
remember always that as I said you it WORK OK in Windows

In ...classes/org/ffellico/jws I have the folllowing classes:
theWS$1.class
theWS$serverPwd.class
theWS.class
which are the compiler output using NETBEANS 5.5

> Often the error is something in the WSDD.
>
[quoted text clipped - 22 lines]
>
> Run "java -version" for the "java" executable you wish to investigate.
OK. As you suppose using that command I have seen that I am using Java
1,6

Another my opinion is that some name have different capital letters
(as you no this is important in Linux) but
I checked it and all appears to be right
Also can be a problem of permission?

> --
> Lew

I hope you can discover some mistake. Thank you very much Lew.
Greetings from Franco.


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



©2009 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.