You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Jose Airton F. Silva" <ja...@hotmail.com> on 2002/06/02 21:27:32 UTC

Problems with Axis beta2 on Resin 2.1.1 server

Please, I need help. Could someone help me?

I'm using Windows 2000 server, Axis beta2, Resin 2.1.1, Sun JDK 1.3.1_03,
and Microsoft Internet Explorer 5.00.

I  installed and run Axis beta2 on Tomcat 4.0.2.
I successfully deployed and invoked my "InvertStrService" web service.

I  installed and run Axis beta2 on Resin 2.1.1.
I successfully  surfed  to http://localhost:8080/axis and
http://localhost:8080/axis/servlet/AxisServlet.
But the Axis server created a wrong SERVER-CONFIG. WSDD when I deployed the
"InvertStrService"  web service.

I tried to use on Resin 2.1.1 the SERVER-CONFIG. WSDD  file created by Axis
beta2 on Tomcat 4.0.2 but I got an error when I try to surf to
http://localhost:8080/axis/services/InvertStrService?wsdl. That error is
returned by Internet Explorer browser. The error is shown below.

I reported this error as bug (#9510) but I didn't get an answer until this
moment.

Thanks,

Jose.

****************************************************************
SERVER-CONFIG.WSDD FILE CREATED BY AXIS BETA2 ON RESIN 2.1.1
****************************************************************

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns:="http://xml.apache.org/axis/wsdd/"
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:="http://www.w3.org/2000/xmlns/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <globalConfiguration xmlns:="http://xml.apache.org/axis/wsdd/">
  <parameter name="adminPassword" value="admin"/>
  <parameter name="attachments.Directory" value="E:\resin-2.1.1
\webapps\axis\WEB-INF\attachments"/>
  <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>
   <handler type="java:org.apache.axis.handlers.JWSHandler"/>
  </requestFlow>
 </globalConfiguration>
 <handler xmlns:="http://xml.apache.org/axis/wsdd/" name="Authenticate"
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
 <handler xmlns:="http://xml.apache.org/axis/wsdd/" name="LocalResponder"
type="java:org.apache.axis.transport.local.LocalResponder"/>
 <handler xmlns:="http://xml.apache.org/axis/wsdd/" name="URLMapper"
type="java:org.apache.axis.handlers.http.URLMapper"/>
 <handler xmlns:="http://xml.apache.org/axis/wsdd/" name="MsgDispatcher"
type="java:org.apache.axis.providers.java.MsgProvider"/>
 <handler xmlns:="http://xml.apache.org/axis/wsdd/" name="RPCDispatcher"
type="java:org.apache.axis.providers.java.RPCProvider"/>
 <service xmlns:="http://xml.apache.org/axis/wsdd/" name="AdminService"
provider="java:MSG">
  <parameter name="allowedMethods" value="AdminService"/>
  <parameter name="enableRemoteAdmin" value="false"/>
  <parameter name="className" value="org.apache.axis.utils.Admin"/>
  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
 </service>
 <service xmlns:="http://xml.apache.org/axis/wsdd/" name="InvertStrService"
provider="java:RPC">
  <parameter name="allowedMethods" value="*"/>
  <parameter name="className" value="invertstr.InvertStr"/>
 </service>
 <service xmlns:="http://xml.apache.org/axis/wsdd/" name="Version"
provider="java:RPC">
  <parameter name="allowedMethods" value="getVersion"/>
  <parameter name="className" value="org.apache.axis.Version"/>
 </service>
 <transport xmlns:="http://xml.apache.org/axis/wsdd/" name="http">
  <requestFlow>
   <handler type="URLMapper"/>
   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
  </requestFlow>
 </transport>
 <transport xmlns:="http://xml.apache.org/axis/wsdd/" name="local">
  <responseFlow>
   <handler type="java:org.apache.axis.transport.local.LocalResponder"/>
  </responseFlow>
 </transport>
</deployment>

*******************
DEPLOY.WSDD FILE
*******************

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

 <service name="InvertStrService" provider="java:RPC">
  <parameter name="className" value="invertstr.InvertStr"/>
  <parameter name="allowedMethods" value="*"/>
 </service>

</deployment>


****************************************
ERROR RETURNED BY INTERNET EXPLORER
****************************************

  The XML page cannot be displayed
  Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.


----------------------------------------------------------------------------
--

  Duplicate attribute. Line 2, Position 483



<wsdl:definitions
targetNamespace="http://localhost:8080/axis/services/InvertStrService"
xmlns:="" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:intf="http://localhost:8080/axis/services/InvertStrService"
xmlns:impl="http://localhost:8080/axis/services/InvertStrService-impl"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:="http://www.w3.org/2000/xmlns/">
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------^



(---- Original Message -----
From: "Scott Nichol" <sn...@scottnichol.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, May 28, 2002 11:19 PM
Subject: Re: Please Help-me - Basic install of Axis on Web Server Resin
2.1.0


> Jose,
>
> I had no problem getting the beta2 distribution of Axis working under
Resin
> 2.1.1.  Perhaps there is a problem with 2.1.0?  Working on Windows 2000,
here is
> what I did:
>
> 1. Unzip xml-axis-beta2.zip to i:\ (so Axis root is i:\xml-axis-beta2).
> 2. Unzip resin-2.1.1.zip to i:\ (so Resin root is i:\resin-2.1.1).
> 3. xcopy i:\xml-axis-beta2\webapps\axis\* i:\resin-2.1.1\webapps\axis /e
(to
> make Axis a Resin webapp).
> 4. i:\resin-2.1.1\bin\httpd (to start Resin).
> 5. Surf to http://localhost:8080/axis (to see welcome page).
> 6. Click link to http://localhost:8080/axis/servlet/AxisServlet (to see
some
> services).
>
> Other things of note:
>
> * I have JAVA_HOME=j:\jdk1.3.1 (the Sun JDK) in my environment.
> * j:\jdk1.3.1\jre\lib\ext is empty.
> * I have
>
CLASSPATH=.;j:\soap-2_2\lib\soap.jar;j:\soap-2_2;j:\xerces-1_2_3\xerces.jar;
>
k:\progra~1\allaire\jrun\lib\ext\mail.jar;k:\progra~1\allaire\jrun\lib\ext\a
ctiv
> ation.jar;
> k:\progra~1\allaire\jrun\lib\ext\jaxp.jar
>
> As I said, maybe 2.1.1 changes something important from 2.1.0.  Or perhaps
there
> is something about the JDK, environment or OS you are using.  Can you post
some
> more details about your environment?
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Jose Airton F. da Silva" <ja...@hotmail.com>
> To: <ax...@xml.apache.org>
> Sent: Tuesday, May 28, 2002 6:23 PM
> Subject: Please Help-me - Basic install of Axis on Web Server Resin 2.1.0
>
>
> > I installed the Axis context in webapps directory of Resin web server.
> > I started Resin web server and I invoked the URL
http://localhost:8080/axis/
> > . The web server answered with the Apache-Axis page, without any
problem.
> > When I attempt to invoke the URL
> > http://localhost:8080/axis/servlet/AxisServlet, I got the error shown
below.
> >
> > I don't know what happen.
> >
> > Could someone help me?
> >
> > Jose Airton.
> >
> >
> > ERROR:
> >
> > 500 Servlet Exception
> > org.apache.axis.InternalException:
org.apache.axis.ConfigurationException:
> > org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Must
> > include type attribute for Handler deployment!
> >  at org.apache.axis.AxisEngine.init(Unknown Source)
> >  at org.apache.axis.AxisEngine.<init>(Unknown Source)
> >  at org.apache.axis.server.AxisServer.<init>(Unknown Source)
> >  at
org.apache.axis.server.DefaultAxisServerFactory.createNewServer(Unknown
> > Source)
> >  at org.apache.axis.server.DefaultAxisServerFactory.getServer(Unknown
> > Source)
> >  at org.apache.axis.server.AxisServer.getServer(Unknown Source)
> >  at org.apache.axis.transport.http.AxisServlet.getEngine(Unknown Source)
> >  at org.apache.axis.transport.http.AxisServlet.getEngine(Unknown Source)
> >  at org.apache.axis.transport.http.AxisServlet.doGet(Unknown Source)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> >  at
> >
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
> > 5)
> >  at com.caucho.server.http.Invocation.service(Invocation.java:291)
> >  at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
> >  at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:217)
> >  at
> >
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:159)
> >  at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
> >  at java.lang.Thread.run(Thread.java:479)
> >
>
>