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 Yiannis Chronakis <jc...@gmail.com> on 2009/04/08 03:44:18 UTC
axis says /WEB-INF/server-config.wsdd was created but it does not
Hi,
I have successfully installed axis (axis-1.4) under tomcat 4.1
(apache-tomcat-4.1.37-LE-jdk1.4 and java 1.4 (j2sdk1.4.2_17) and ubuntu 8.10
and I can run perfectly my web service application.
I can generate the server-config.wsdd from a deploy.wsdd file with my web
service class using the AdminService. From the WEB-INF directory i do:
export CLASSPATH=lib/*:classes
java -classpath "$CLASSPATH" org.apache.axis.client.AdminClient
-lhttp://localhost:8080/ws/services/AdminService classes/vmp/deploy.wsdd
It would be very convenient to do that automatically on loading my webapp
(ws) and I think that used to work in previous versions. However now when I
am starting tomcat and get the message:
Unable to find config file. Creating new servlet engine config file:
/WEB-INF/server-config.wsdd
there isn't any server-config.wsdd anywhere in my webapp.
I enabled logging for DEBUG messages following the manual instructions
(removing the configuration file from the axis.jar) and while I am getting
various messages, nothing says why server-config.wsdd is failing to be
created. Directories under webapp are writable by the tomcat process.
I even created a small clean test web application called ws to test it.
I do not understand what I am doing wrong here. I was thinking that probably
axis cannot write in the WEB-INF but I think i would get some security or io
exception in this case. I am pasting the files as well.
Any help would be apreciated.
regards
Yiannis
Here is my class:
------------------------
package vmp;
public class PingService {
public String ping() {
return "Hi There";
}
}
Here is my deploy.wsdd placed under /WEB-INF/classes/vmp/deploy.wsdd
-------------------------------------------------------------------------------------------------------------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="PingService" provider="java:RPC">
<parameter name="className" value="vmp.PingService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
This is my web.xml file (copy & paste from axis distribution)
--------------------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Apache-Axis</display-name>
<listener>
<listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>
</listener>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>
org.apache.axis.transport.http.AxisServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminServlet</servlet-name>
<display-name>Axis Admin Servlet</display-name>
<servlet-class>
org.apache.axis.transport.http.AdminServlet
</servlet-class>
<load-on-startup>100</load-on-startup>
</servlet>
<servlet>
<servlet-name>SOAPMonitorService</servlet-name>
<display-name>SOAPMonitorService</display-name>
<servlet-class>
org.apache.axis.monitor.SOAPMonitorService
</servlet-class>
<init-param>
<param-name>SOAPMonitorPort</param-name>
<param-value>5001</param-value>
</init-param>
<load-on-startup>100</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SOAPMonitorService</servlet-name>
<url-pattern>/SOAPMonitor</url-pattern>
</servlet-mapping>
<!-- uncomment this if you want the admin servlet -->
<servlet-mapping>
<servlet-name>AdminServlet</servlet-name>
<url-pattern>/servlet/AdminServlet</url-pattern>
</servlet-mapping>
<session-config>
<!-- Default to 5 minute session timeouts -->
<session-timeout>5</session-timeout>
</session-config>
<!-- currently the W3C havent settled on a media type for WSDL;
http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
for now we go with the basic 'it's XML' response -->
<mime-mapping>
<extension>wsdl</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xsd</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<welcome-file-list id="WelcomeFileList">
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jws</welcome-file>
</welcome-file-list>
</web-app>
console outpout
-----------------------
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/classes
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/commons-logging-api-1.1.1.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/servlet.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/jasper-compiler.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/commons-collections-3.2.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/naming-factory.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/jasper-runtime.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/naming-resources.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/ant.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/naming-common.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/common/lib/ant-launcher.jar
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/classes
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/catalina-ant.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-io-1.3.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat-jk2.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat-coyote.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat-util.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat4-coyote.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-digester-1.8.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-logging-1.1.1.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat-http11.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/servlets-common.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/servlets-invoker.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/catalina.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/servlets-default.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-fileupload-1.2.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/servlets-manager.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/jakarta-regexp-1.5.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/tomcat-jk.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-modeler-2.0.1.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/commons-beanutils.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/servlets-webdav.jar
ClassLoaderFactory: Including jar file
/opt/java/apache-tomcat-4.1.37-LE-jdk1.4/server/lib/mx4j.jar
ClassLoaderFactory: Creating new class loader
Bootstrap: Loading startup class
Bootstrap: Setting startup class properties
Bootstrap: Calling startup class process() method
Created MBeanServer with ID: 1bdc9d8:1208361f71d:-8000:vmstation:1
08-Apr-2009 02:40:17 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.37-LE-jdk1.4
- In AxisServletBase init
- Enter: getEngine()
- getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en_GB
- Created org.apache.axis.i18n.resource, linked to parent null
- getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.utils.resource, locale en_GB
- loadBundle: Ignoring MissingResourceException: Can't find bundle for base
name org.apache.axis.resource, locale en_GB
- Root package not found, cross link to org.apache.axis.i18n.resource
- Root package not found, cross link to org.apache.axis.i18n.resource
- org.apache.axis.i18n.resource::handleGetObject(engineFactory)
- Got EngineFactory:
org.apache.axis.configuration.EngineConfigurationFactoryServlet
- org.apache.axis.i18n.resource::handleGetObject(servletEngineWebInfError03)
- Unable to find config file. Creating new servlet engine config file:
/WEB-INF/server-config.wsdd
- Enter: DefaultAxisServerFactory::getServer
- Enter: DefaultAxisServerFactory::getEngineConfiguration
- Exit: DefaultAxisServerFactory::getEngineConfiguration
- Enter: AxisEngine::init
- org.apache.axis.i18n.resource::handleGetObject(attachEnabled)
- Attachment support is enabled? false
- org.apache.axis.i18n.resource::handleGetObject(attachDisabled)
- Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
- org.apache.axis.i18n.resource::handleGetObject(oddDigits00)
- org.apache.axis.i18n.resource::handleGetObject(badChars01)
- Exit: AxisEngine::init
- Exit: DefaultAxisServerFactory::getServer
- Exit: getEngine()
08-Apr-2009 02:40:22 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
08-Apr-2009 02:40:23 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
08-Apr-2009 02:40:23 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/851 config=null