Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink DBWS @PostConstruct Exception(Problem invoking a service runnin on JBoss)
EclipseLink DBWS @PostConstruct Exception [message #660860] Tue, 22 March 2011 01:50 Go to next message
Evgeny  is currently offline Evgeny
Messages: 4
Registered: March 2011
Junior Member
Hi,

I'm trying to implement a simplest service using EclipseLink DBWS.
No problem generating the deployment, deploying or getting the WSDL.

However when I try to invoke it from SoapUI I get the following exception:

Exception Description: Could not locate file [eclipselink-dbws-sessions.xml]
	at org.eclipse.persistence.exceptions.DBWSException.couldNotLocateFile(DBWSException.java:64)
	at org.eclipse.persistence.internal.xr.XRServiceFactory.buildSessions(XRServiceFactory.java:226)
	at org.eclipse.persistence.internal.xr.XRServiceFactory.initializeService(XRServiceFactory.java:174)
	at org.eclipse.persistence.internal.dbws.ProviderHelper.buildService(ProviderHelper.java:680)
	at org.eclipse.persistence.internal.dbws.ProviderHelper.init(ProviderHelper.java:237)



DBWS-Builder.xml:

<?xml version="1.0" encoding="UTF-8"?>
<dbws-builder xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <properties>
        <property name="projectName">PGDB</property>
        <property name="driver">org.postgresql.Driver</property>
        <property name="platformClassname">org.eclipse.persistence.platform.database.PostgreSQLPlatform</property>
        <property name="username">streamin</property>
        <property name="password">streamin</property>
        <property name="url">jdbc:postgresql://127.0.0.1:5432/DEVT1</property>
        <property name="dataSource">jdbc/streamin</property>  
        <property name="logLevel">DEBUG</property>	
        <property name="targetNamespace">http://www.streamin.nl/streamin</property>
        <property name="contextRoot">/service</property>  
    </properties>

    <sql simpleXMLFormatTag="aggregate-info"
		xmlTag="DATA"
		name="getData"
		isCollection="true">
        <statement>
	            <![CDATA[select * from stream_in ]]>
        </statement>
       
    </sql>
</dbws-builder>



The stack:
EclipseLink : 2.1.2, 2.2.0, 2.3.0
JBoss: 5.1.0 GA
JDK: 1.6.0_21
Postgres: 8.4

Do I miss something obvious? I have put eclipselink.jar into the server /lib forlder...

Please help.
Re: EclipseLink DBWS @PostConstruct Exception [message #661252 is a reply to message #660860] Wed, 23 March 2011 13:22 Go to previous message
Mike Norman is currently offline Mike Norman
Messages: 35
Registered: July 2009
Member
That's weird - the code in ProviderHelper.init should be run when
the service is deployed, not when the first SOAP message
hits it!

In the 'stack', you mention JBoss: 5.1.0 GA - have you
installed JBossWS into the GA server?

Can you send me the .war file?
michael.norman@oracle.com
Previous Topic:Convert query to native query
Next Topic:Duplicate key error when persisting a relationship
Goto Forum:
  


Current Time: Fri Apr 18 11:38:55 EDT 2014

Powered by FUDForum. Page generated in 0.02430 seconds