[JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ?
by iner
Hello,
My mistake with Wise, sorry for that.
changed the login in 'wise-ds.xml' and able to create a new user and to log in ( shame that I cannot erase the last post )
Adding a WebService which I have tried out in Glassfish:
It is this small one:
@Stateless()
| @WebService()
| public class ProjectManagerWs {
|
| @WebMethod
| public String version() {
| return "ProjectManager version 0.1";
| }
| }
Surfing to:
http://127.0.0.1:8080/ProjectManagerWsService/ProjectManagerWs?wsdl
I am able to see the WSDL.
But adding it to wise and clicking the link which I have created gives me the following error:
16:47:48,421 INFO [WSDLManagerBean] *** Beginning conversation, savedWsdl = null
16:47:48,426 ERROR [WSDLManagerBean] An unexpected exception occurred while selecting the wsdl.
java.lang.NoClassDefFoundError: org/jboss/wsf/spi/tools/WSContractConsumer
| at it.javalinux.wise.seam.actions.WSDLManagerBean.selectWsdl(WSDLManagerBean.java:116)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Am I forgetting something ?
the mysql says:
mysql> select * from savedwsdl;
| +-------------+---------------------------------------------------------------------+----------+------------+-------------------+
| | idSavedWSDL | wsdlLink | wsdlText | savingDate | idUserInformation |
| +-------------+---------------------------------------------------------------------+----------+------------+-------------------+
| | 2 | http://127.0.0.1:8080/ProjectManagerWsService/ProjectManagerWs?wsdl | tt | 2007-10-21 | 3 |
| +-------------+---------------------------------------------------------------------+----------+------------+-------------------+
|
| regards, i
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097254#4097254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097254
16 years, 8 months
[JBossWS] - Re: JBossWS vs Glassfish, do we a 'Tester' ?
by iner
Hello Alessio,
Trying the WISE.
Using JBoss 4.2.1.
Did not install JBossWS though - is that necessary ?
When surfing to:
http://localhost:8080/Wise/
I get the following error in the JBoss-console:
| 15:35:12,680 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbTransaction ejbName: EjbTransaction
| 15:35:12,713 INFO [EJB3Deployer] Deployed: file:/C:/app/jboss-4.2.1.GA/server/default/tmp/deploy/tmp39865Wise.ear-contents/jboss-seam.jar
| 15:35:12,717 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
| 15:35:12,720 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Wise.ear,jar=Wise.ejb3.jar,unitName=Wise with dependencies:
| 15:35:12,722 INFO [JmxKernelAbstraction] jboss.jca:name=WiseDatasource,service=DataSourceBinding
| 15:35:12,725 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Wise.ear,jar=Wise.ejb3.jar,unitName=Wise
| 15:35:12,762 INFO [Ejb3Configuration] found EJB3 Entity bean: it.javalinux.wise.seam.entities.SavedWsdl
| 15:35:12,766 INFO [Ejb3Configuration] found EJB3 Entity bean: it.javalinux.wise.seam.entities.UserInformation
| 15:35:12,792 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
| 15:35:12,794 INFO [Ejb3Configuration] [PersistenceUnit: Wise] no META-INF/orm.xml found
| 15:35:12,800 INFO [AnnotationBinder] Binding entity from annotated class: it.javalinux.wise.seam.entities.SavedWsdl
| 15:35:12,803 INFO [EntityBinder] Bind entity it.javalinux.wise.seam.entities.SavedWsdl on table SavedWSDL
| 15:35:12,826 INFO [AnnotationBinder] Binding entity from annotated class: it.javalinux.wise.seam.entities.UserInformation
| 15:35:12,828 INFO [EntityBinder] Bind entity it.javalinux.wise.seam.entities.UserInformation on table UserInformation
| 15:35:12,839 INFO [CollectionBinder] Mapping collection: it.javalinux.wise.seam.entities.UserInformation.savedWsdls -> SavedWSDL
| 15:35:12,986 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 15:35:12,989 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 15:35:12,999 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Access denied for user 'root'@'loc
| alhost' (using password: NO))
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
|
When using 'MySQL Administrator' and going to 'Server Connection'
Then I am able to see all the connection made in my mysql-ds.xml within JBoss but not the connection in 'wise-ds.xml'
I am not able to register a new user ....
I am running on a windows vista at the moment, that is
my working machine - the installation-routine for JBossWS seems
a bit complicated.
Could you give me further advice.
regards, i
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097250#4097250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097250
16 years, 8 months
[JBossWS] - web service not found
by robert_trudel
hi
somebody sent me a wsdl, i use the jboss tool to generate the classe
it's the wsdl:
<?xml version="1.0" encoding="utf8" ?>
| <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="
| http://www.w3.org/2001/XMLSchema" xmlns:soapenc="
| http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="
| http://tempuri.org/Facturateur/Service1" xmlns:tm="
| http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="
| http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="
| http://tempuri.org/Facturateur/Service1" xmlns:wsdl="
| http://schemas.xmlsoap.org/wsdl/">
| <wsdl:types>
| <s:schema elementFormDefault="qualified" targetNamespace="
| http://tempuri.org/Facturateur/Service1">
| <s:element name="GetVersion">
| <s:complexType />
| </s:element>
| <s:element name="GetVersionResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="
| GetVersionResult" type="s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="GetPrix">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="F" type="
| s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="GetPrixResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="
| GetPrixResult" type="s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="Authentification" type="tns:Authentification"
| />
| <s:complexType name="Authentification">
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="CodeApporteur"
| type="s:string" />
| </s:sequence>
| </s:complexType>
| <s:element name="GetDevis">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="F" type="
| s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="GetDevisResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="
| GetDevisResult" type="s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="GetSouscription">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="F" type="
| s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="GetSouscriptionResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="
| GetSouscriptionResult" type="s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| </s:schema>
| </wsdl:types>
| <wsdl:message name="GetVersionSoapIn">
| <wsdl:part name="parameters" element="tns:GetVersion" />
| </wsdl:message>
| <wsdl:message name="GetVersionSoapOut">
| <wsdl:part name="parameters" element="tns:GetVersionResponse" />
| </wsdl:message>
| <wsdl:message name="GetPrixSoapIn">
| <wsdl:part name="parameters" element="tns:GetPrix" />
| </wsdl:message>
| <wsdl:message name="GetPrixSoapOut">
| <wsdl:part name="parameters" element="tns:GetPrixResponse" />
| </wsdl:message>
| <wsdl:message name="GetPrixAuthentification">
| <wsdl:part name="Authentification" element="tns:Authentification"
| />
| </wsdl:message>
| <wsdl:message name="GetDevisSoapIn">
| <wsdl:part name="parameters" element="tns:GetDevis" />
| </wsdl:message>
| <wsdl:message name="GetDevisSoapOut">
| <wsdl:part name="parameters" element="tns:GetDevisResponse" />
| </wsdl:message>
| <wsdl:message name="GetDevisAuthentification">
| <wsdl:part name="Authentification" element="tns:Authentification"
| />
| </wsdl:message>
| <wsdl:message name="GetSouscriptionSoapIn">
| <wsdl:part name="parameters" element="tns:GetSouscription" />
| </wsdl:message>
| <wsdl:message name="GetSouscriptionSoapOut">
| <wsdl:part name="parameters" element="tns:GetSouscriptionResponse
| " />
| </wsdl:message>
| <wsdl:message name="GetSouscriptionAuthentification">
| <wsdl:part name="Authentification" element="tns:Authentification"
| />
| </wsdl:message>
| <wsdl:portType name="PrixSoap">
| <wsdl:operation name="GetVersion">
| <wsdl:input message="tns:GetVersionSoapIn" />
| <wsdl:output message="tns:GetVersionSoapOut" />
| </wsdl:operation>
| <wsdl:operation name="GetPrix">
| <wsdl:input message="tns:GetPrixSoapIn" />
| <wsdl:output message="tns:GetPrixSoapOut" />
| </wsdl:operation>
| <wsdl:operation name="GetDevis">
| <wsdl:input message="tns:GetDevisSoapIn" />
| <wsdl:output message="tns:GetDevisSoapOut" />
| </wsdl:operation>
| <wsdl:operation name="GetSouscription">
| <wsdl:input message="tns:GetSouscriptionSoapIn" />
| <wsdl:output message="tns:GetSouscriptionSoapOut" />
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="PrixSoap" type="tns:PrixSoap">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
| style="document" />
| <wsdl:operation name="GetVersion">
| <soap:operation soapAction="
| http://tempuri.org/Facturateur/Service1/GetVersion" style="
| document" />
| <wsdl:input>
| <soap:body use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="GetPrix">
| <soap:operation soapAction="
| http://tempuri.org/Facturateur/Service1/GetPrix" style="
| document" />
| <wsdl:input>
| <soap:body use="literal" />
| <soap:header message="tns:GetPrixAuthentification" part="
| Authentification" use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="GetDevis">
| <soap:operation soapAction="
| http://tempuri.org/Facturateur/Service1/GetDevis" style="
| document" />
| <wsdl:input>
| <soap:body use="literal" />
| <soap:header message="tns:GetDevisAuthentification" part="
| Authentification" use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="GetSouscription">
| <soap:operation soapAction="
| http://tempuri.org/Facturateur/Service1/GetSouscription" style="
| document" />
| <wsdl:input>
| <soap:body use="literal" />
| <soap:header message="tns:GetSouscriptionAuthentification"
| part="Authentification" use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="Prix">
| <wsdl:port name="PrixSoap" binding="tns:PrixSoap">
| <soap:address location="
| http://www.test.com/ws/tarificateur/tarif.asmx" />
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
jboss generated some classe
GetPrix.java
GetPrixResponse.java
Prix.java
PrixSoap.java
....
so i implemented the server class (TarifImpl who implement the interface generated by jobss)
in the web.xml i wrote
| <servlet>
| <servlet-name>Facturateur</servlet-name>
| <servlet-class>com.test.ws.TarifImpl</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Facturateur</servlet-name>
| <url-pattern>/Facturateur</url-pattern>
| </servlet-mapping>
|
when i go to http://localhost:8080/jbossws/services
there is no service
any idea?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097246#4097246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097246
16 years, 8 months