-
Jun 26th, 2007, 09:48 AM
#1
Tomcat 5.5 errors in applicationContext-ws.xml
Hi,
I have the following in my applicationContext-ws.xml.
<bean id="messageWebService" class="org.springframework.ws.wsdl.wsdl11.DynamicW sdl11Definition">
<property name="builder">
<bean class="org.springframework.ws.wsdl.wsdl11.builder. XsdBasedSoap11Wsdl4jDefinitionBuilder">
<property name="schema" value="/MessageWebService.xsd"/>
<property name="portTypeName" value="MessageWebService"/>
<property name="locationUri" value="http://localhost:8080/messageService/"/>
<property name="targetNamespace" value="http://monitise.com/types/MWSEndpointIntf"/>
</bean>
</property>
</bean>
<bean id="messageDispatcher" class="org.springframework.ws.soap.SoapMessageDisp atcher">
<description>
The MessageDispatcher is responsible for routing messages to endpoints.
</description>
<property name="endpointMappings">
<ref local="payloadMapping"/>
</property>
<property name="endpointExceptionResolvers">
<list>
<ref local="endpointExceptionResolver"/>
</list>
</property>
</bean>
<bean id="payloadMapping" class="org.springframework.ws.soap.endpoint.Payloa dRootQNameEndpointMapping">
<description>
This endpoint mapping uses the qualified name of the payload (body contents) to determine the endpoint for
an incoming message. The name GetFlightsRequest with namespace
http://www.springframework.org/sprin...irline/schemas is mapped to the getFlightsEndpoint.
Additionally, messages are logged using the logging interceptor.
</description>
<property name="mappings">
<props>
<prop key="{http://monitise.com/types/MWSEndpointIntf}MessageSendRequest">
MessageEndpoint</prop>
</props>
</property>
<property name="interceptors">
<ref local="loggingInterceptor"/>
</property>
</bean>
Tomcat keeps giving me the following error cant seem to understand why.Can you help?
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registerin
g bean with name 'messageWebService' defined in class path resource [org/springf
ramework/ws/samples/airline/ws/applicationContext-ws.xml]: Could not parse inner
bean definition; nested exception is org.springframework.beans.factory.BeanDefi
nitionStoreException: Error registering bean with name '' defined in class path
resource [org/springframework/ws/samples/airline/ws/applicationContext-ws.xml]:
Class that bean class [org.springframework.ws.wsdl.wsdl11.builder.XsdBase dSoap11
Wsdl4jDefinitionBuilder] depends on not found; nested exception is java.lang.NoC
lassDefFoundError: javax/wsdl/WSDLException
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registerin
g bean with name '' defined in class path resource [org/springframework/ws/sampl
es/airline/ws/applicationContext-ws.xml]: Class that bean class [org.springframe
work.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDe finitionBuilder] depends on no
t found; nested exception is java.lang.NoClassDefFoundError: javax/wsdl/WSDLExce
ption
java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
-
Jun 27th, 2007, 05:18 AM
#2
I have resolved the above problem but now though there are no errors on tomcat.I cant seem to see any wsdl being generated at all.
-
Jun 28th, 2007, 09:23 AM
#3
How did you resolve the bean creation exception?
How did you resolve the problem described in this thread? I have the same issue in my application.
-
Jun 29th, 2007, 04:59 AM
#4
Well i got tht error because i had rc2 and m1 spring core and spring oxm jars in my web-inf/lib dir .removed the m1 jars and the error vanished
-
Jun 29th, 2007, 06:56 AM
#5
Hi,
I am having same problem,bean creation Exception.I don't have a spring-core jar but spring.jar in my project library it makes this problem ...
Thanks in advance
mahe
-
Jun 29th, 2007, 11:37 AM
#6
If the wsdl is not being generated put the wsdl4j.jar version 1.6.2 into your classpath or lib dir
-
Jun 29th, 2007, 10:20 PM
#7
Hi,
I am using rmi for access remote methods.
Did you use rmi concept to access remote methods,if you know that means can you please tell this ,
I got error for access the remote methods..I put all spring jar files in my project library and netbeans/common/lib.
My xml configuration is
<bean id="EmpDAO" class="DataAccess.Impl.EmployeeDAOImpl"/>
<!-- =============== RMI =============== -->
<bean id="rmiservice2" class="org.springframework.remoting.rmi.RmiService Exporter">
<property name="registryPort" value="1199"/>
<property name="serviceName" value="EmployeeDAO"/>
<property name="service" ref="EmpDAO"/>
<property name="serviceInterface" value="DataAccess.dao.EmployeeDAO"/>
</bean>
<bean id="proxyservice2" class="org.springframework.remoting.rmi.RmiProxyFa ctoryBean" depends-on="EmpDAO">
<property name="serviceUrl" value="rmi://localhost:1199/EmployeeDAO"/>
<property name="serviceInterface" value="DataAccess.dao.EmployeeDAO"/>
</bean>
i got bean in my application like
ClassPathResource resource = new ClassPathResource("BusinessObjectFactory.xml");
BeanFactory factory = new XmlBeanFactory(resource);
return(EmployeeDAO)factory.getBean("proxyservice2" );
when i run the application i got Exception below
exception value rg.springframework.beans.factory.BeanCreationExc eption: Error creating bean with name 'proxyservice2' defined in class path resource [BusinessObjectFactory.xml]: Invocation of init method failed; nested exception is org.springframework.remoting.RemoteLookupFailureEx ception: Lookup of RMI stub failed; nested exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
what i did wrong can please help me....
default registry port is 1199 right.what i did mistake here.....can i split any client and server class seperatly,now i am not using client and server class in my application.
i am using simple interface and their Implementations..to access local and remote....
Is any firewall problems to me......
Thanks in Advance
mahe
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules