tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "louis.alexander" <louis.alexan...@gmail.com>
Subject Re: OpenEJB not deploying my WebService properly
Date Fri, 24 Apr 2009 15:21:30 GMT

Forwarded conversation
Subject: OpenEJB not deploying my WebService properly
------------------------

From: Louis Alexander <panicked.kernel@gmail.com>
Date: Fri, Apr 24, 2009 at 10:07 AM
To: jean-louis.monteiro@atosorigin.com


And my error log:

INFO - Configuring enterprise application: classpath.ear
INFO - Configuring Service(id=Default Stateless Container, type=Container,
provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean AutoCopyBean:
Container(type=STATELESS, id=Default Stateless Container)
INFO - Configuring PersistenceUnit(name=CommonMocksPU,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
INFO - Configuring Service(id=Default JDBC Database, type=Resource,
provider-id=Default JDBC Database)
INFO - Auto-creating a Resource with id 'Default JDBC Database' of type
'DataSource for 'CommonMocksPU'.
INFO - Configuring Service(id=Default Unmanaged JDBC Database,
type=Resource, provider-id=Default Unmanaged JDBC Database)
INFO - Auto-creating a Resource with id 'Default Unmanaged JDBC Database' of
type 'DataSource for 'CommonMocksPU'.
INFO - Adjusting CommonMocksPU <jta-data-source> to 'Default JDBC Database'
INFO - Adjusting CommonMocksPU <non-jta-data-source> to 'Default Unmanaged
JDBC Database'
INFO - Enterprise application "classpath.ear" loaded.
INFO - Assembling app: classpath.ear
INFO - PersistenceUnit(name=CommonMocksPU,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
INFO - Jndi(name=AutoCopyBeanLocal) --> Ejb(deployment-id=AutoCopyBean)
INFO - Jndi(name=AutoCopyConfigBeanLocal) -->
Ejb(deployment-id=AutoCopyConfigBean)
INFO - Jndi(name=ConfigMockImplLocal) --> Ejb(deployment-id=ConfigMockImpl)
INFO - Jndi(name=maf-components/ConfigurationBean/remote) -->
Ejb(deployment-id=ConfigMockImpl)
INFO - Jndi(name=LdapMockImplLocal) --> Ejb(deployment-id=LdapMockImpl)
INFO - Jndi(name=maf-components/LdapServiceBean/remote) -->
Ejb(deployment-id=LdapMockImpl)
INFO - Created Ejb(deployment-id=LdapMockImpl, ejb-name=LdapMockImpl,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=ConfigMockImpl, ejb-name=ConfigMockImpl,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=AutoCopyWeb, ejb-name=AutoCopyWeb,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=AutoCopyConfigBean,
ejb-name=AutoCopyConfigBean, container=Default Stateless Container)
INFO - Created Ejb(deployment-id=AutoCopyConfigWeb,
ejb-name=AutoCopyConfigWeb, container=Default Stateless Container)
INFO - Created Ejb(deployment-id=AutoCopyBean, ejb-name=AutoCopyBean,
container=Default Stateless Container)
INFO - Deployed Application(path=classpath.ear)
INFO - Starting network services
INFO - [Server@4b247c95]: [Thread[main,5,main]]: checkRunning(false) entered
INFO - [Server@4b247c95]: [Thread[main,5,main]]: checkRunning(false) exited
  ** Starting Services **
  NAME                 IP              PORT 
  httpejbd             127.0.0.1       4204 
Apr 24, 2009 10:01:30 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://autocopy.features.acision.com-v0.1}AutoCopyWebService from class
com.acision.features.autocopy.AutoCopyWeb
Apr 24, 2009 10:01:30 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: {http://autocopy.features.acision.com-v0.1}subscriber part element
name {http://autocopy.features.acision.com-v0.1}subscriber references
element {http://autocopy.features.acision.com-v0.1}subscriber
{http://autocopy.features.acision.com-v0.1}return part element name
{http://autocopy.features.acision.com-v0.1}return references element
{http://autocopy.features.acision.com-v0.1}return
{http://autocopy.features.acision.com-v0.1}destination part element name
{http://autocopy.features.acision.com-v0.1}destination references element
{http://autocopy.features.acision.com-v0.1}destination
{http://autocopy.features.acision.com-v0.1}originator part element name
{http://autocopy.features.acision.com-v0.1}originator references element
{http://autocopy.features.acision.com-v0.1}originator
{http://autocopy.features.acision.com-v0.1}type part element name
{http://autocopy.features.acision.com-v0.1}type references element
{http://autocopy.features.acision.com-v0.1}type
{http://autocopy.features.acision.com-v0.1}return part element name
{http://autocopy.features.acision.com-v0.1}return references element
{http://autocopy.features.acision.com-v0.1}return
{http://autocopy.features.acision.com-v0.1}subscriber part element name
{http://autocopy.features.acision.com-v0.1}subscriber references element
{http://autocopy.features.acision.com-v0.1}subscriber
{http://autocopy.features.acision.com-v0.1}direction part element name
{http://autocopy.features.acision.com-v0.1}direction references element
{http://autocopy.features.acision.com-v0.1}direction
{http://autocopy.features.acision.com-v0.1}sender part element name
{http://autocopy.features.acision.com-v0.1}sender references element
{http://autocopy.features.acision.com-v0.1}sender
{http://autocopy.features.acision.com-v0.1}receiver part element name
{http://autocopy.features.acision.com-v0.1}receiver references element
{http://autocopy.features.acision.com-v0.1}receiver
{http://autocopy.features.acision.com-v0.1}message part element name
{http://autocopy.features.acision.com-v0.1}message references element
{http://autocopy.features.acision.com-v0.1}message
{http://autocopy.features.acision.com-v0.1}type part element name
{http://autocopy.features.acision.com-v0.1}type references element
{http://autocopy.features.acision.com-v0.1}type
{http://autocopy.features.acision.com-v0.1}return part element name
{http://autocopy.features.acision.com-v0.1}return references element
{http://autocopy.features.acision.com-v0.1}return
{http://autocopy.features.acision.com-v0.1}destination part element name
{http://autocopy.features.acision.com-v0.1}destination references element
{http://autocopy.features.acision.com-v0.1}destination
{http://autocopy.features.acision.com-v0.1}originator part element name
{http://autocopy.features.acision.com-v0.1}originator references element
{http://autocopy.features.acision.com-v0.1}originator
{http://autocopy.features.acision.com-v0.1}subject part element name
{http://autocopy.features.acision.com-v0.1}subject references element
{http://autocopy.features.acision.com-v0.1}subject
{http://autocopy.features.acision.com-v0.1}type part element name
{http://autocopy.features.acision.com-v0.1}type references element
{http://autocopy.features.acision.com-v0.1}type
{http://autocopy.features.acision.com-v0.1}return part element name
{http://autocopy.features.acision.com-v0.1}return references element
{http://autocopy.features.acision.com-v0.1}return

Apr 24, 2009 10:01:30 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://nopath:80
Apr 24, 2009 10:01:31 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://config.autocopy.features.acision.com/}AutoCopyConfigWebService from
class com.acision.features.autocopy.config.AutoCopyConfigWeb
Apr 24, 2009 10:01:31 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: {http://config.autocopy.features.acision.com/}subscriberId part
element name {http://config.autocopy.features.acision.com/}subscriberId
references element
{http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}addressString part element
name {http://config.autocopy.features.acision.com/}addressString references
element {http://config.autocopy.features.acision.com/}addressString
{http://config.autocopy.features.acision.com/}direction part element name
{http://config.autocopy.features.acision.com/}direction references element
{http://config.autocopy.features.acision.com/}direction
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}addressString part element
name {http://config.autocopy.features.acision.com/}addressString references
element {http://config.autocopy.features.acision.com/}addressString
{http://config.autocopy.features.acision.com/}direction part element name
{http://config.autocopy.features.acision.com/}direction references element
{http://config.autocopy.features.acision.com/}direction
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subid part element name
{http://config.autocopy.features.acision.com/}subid references element
{http://config.autocopy.features.acision.com/}subid
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return
{http://config.autocopy.features.acision.com/}subscriberId part element name
{http://config.autocopy.features.acision.com/}subscriberId references
element {http://config.autocopy.features.acision.com/}subscriberId
{http://config.autocopy.features.acision.com/}enabled part element name
{http://config.autocopy.features.acision.com/}enabled references element
{http://config.autocopy.features.acision.com/}enabled
{http://config.autocopy.features.acision.com/}return part element name
{http://config.autocopy.features.acision.com/}return references element
{http://config.autocopy.features.acision.com/}return

Apr 24, 2009 10:01:31 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://nopath:80
  admin thread         127.0.0.1       4200 
  ejbd                 127.0.0.1       4201 
INFO - [Server@4b247c95]: Initiating startup sequence...
INFO - [Server@4b247c95]: Server socket opened successfully in 2 ms.
INFO - [Server@4b247c95]: Database [index=0, id=0, db=mem:hsqldb,
alias=hsqldb] opened sucessfully in 117 ms.
INFO - [Server@4b247c95]: Startup sequence completed in 122 ms.
INFO - [Server@4b247c95]: 2009-04-24 10:01:31.289 HSQLDB server 1.8.0 is
online
INFO - [Server@4b247c95]: To close normally, connect and execute SHUTDOWN
SQL
INFO - [Server@4b247c95]: From command line, use [Ctrl]+[C] to abort
abruptly
  hsql                 127.0.0.1       9001 
  telnet               127.0.0.1       4202 
-------
Ready!
[Fatal Error] AutoCopyWeb?wsdl:1:1: Premature end of file.


Thanks,

Louis

----------
From: Monteiro Jean-Louis <jean-louis.monteiro@atosorigin.com>
Date: Fri, Apr 24, 2009 at 10:35 AM
To: Louis Alexander <panicked.kernel@gmail.com>


Louis,
 
Your web service definitely works.
I'm able to see the WSDL and to create a stub in my TestCase.
 
Looking deeper in your test case, it seemed to me you may do a mistake with

try {

autoCopy =

Service.create(

new URL( "http://localhost:4204/AutoCopyWebService/AutoCopyWeb?wsdl" ),

null );

}
catch ( Exception e ) {

fail( e.getMessage() );

}

 

Are you sure of this WSDL location ?

By default, openejb does not use this kind of address to publish the web
service and the WSDL.

I think, the right WSDL location is http://127.0.0.1:4204/AutoCopyWeb?wsdl
 
On my computer it works with both

Service testService = Service.create(

new URL("http://127.0.0.1:4204/AutoCopyWeb?wsdl"),

new QName("http://autocopy.features.acision.com-v0.1",
"AutoCopyWebService"));

testService = Service.create(

new URL("http://127.0.0.1:4204/AutoCopyWeb?wsdl"),

null);
 
Do not hesitate to post on the user mailling list (accessible from openejb
web site).
 
Regards,
Jean-Louis
 
De : Louis Alexander [panicked.kernel@gmail.com]
Date d'envoi : vendredi 24 avril 2009 16:07
À : Monteiro Jean-Louis
Objet : OpenEJB not deploying my WebService properly


Ce message et les pièces jointes sont confidentiels et réservés à l'usage
exclusif de ses destinataires. Il peut également être protégé par le secret
professionnel. Si vous recevez ce message par erreur, merci d'en avertir
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne
pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin
ne pourra être recherchée quant au contenu de ce message. Bien que les
meilleurs efforts soient faits pour maintenir cette transmission exempte de
tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa
responsabilité ne saurait être recherchée pour tout dommage résultant d'un
virus transmis.

This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos Origin group liability cannot be
triggered for the message content. Although the sender endeavours to
maintain a computer virus-free network, the sender does not warrant that
this transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.

----------
From: Louis Alexander <panicked.kernel@gmail.com>
Date: Fri, Apr 24, 2009 at 10:54 AM
To: Monteiro Jean-Louis <jean-louis.monteiro@atosorigin.com>


One more problem, when i try to get the port as follows:

        AutoCopyWeb acw = autoCopy.getPort( AutoCopyWeb.class );

 i get the following error/exception:

com.acision.features.autocopy.AutoCopyWeb is not an interface
java.lang.IllegalArgumentException:
com.acision.features.autocopy.AutoCopyWeb is not an interface
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
        at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:108)
        at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:376)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:265)
        at javax.xml.ws.Service.getPort(Service.java:161)
        at
com.acision.features.autocopy.AutoCopyWebServiceTest.testIsEnabled(AutoCopyWebServiceTest.java:95)

Notice that my AutoCopyWeb does not implement an interface, but simply has
@WebService annotation, is this supported by OpenEJB?

Thanks again!


Thanks,

Louis

-- 
View this message in context: http://www.nabble.com/Re%3A-OpenEJB-not-deploying-my-WebService-properly-tp23218656p23218656.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message