Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] DBWS output format

Still the same error. 
WAR ( http://old.nabble.com/file/p30025177/dbws.war dbws.war ) 
builder file ( http://old.nabble.com/file/p30025177/testSQL.xml testSQL.xml
)

generated with command
./dbwsbuilder.sh -builderFile testSQL.xml -stageDir ./stage/ -packageAs
glassfish

[#|2010-10-22T07:28:11.687+0200|SEVERE|glassfish3.0.1|com.sun.xml.ws.server.SyncProviderInvokerTube|_ThreadID=30;_ThreadName=http-thread-pool-8080-(1);|com.sun.enterprise.container.common.spi.util.InjectionException:
Error creating managed object for class _dbws.DBWSProvider
javax.xml.ws.WebServiceException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error
creating managed object for class _dbws.DBWSProvider
        at
org.glassfish.webservices.InstanceResolverImpl.resolve(InstanceResolverImpl.java:89)
        at
org.glassfish.webservices.InstanceResolverImpl$1.invokeProvider(InstanceResolverImpl.java:142)
        at
com.sun.xml.ws.server.InvokerTube$2.invokeProvider(InvokerTube.java:156)
        at
com.sun.xml.ws.server.provider.SyncProviderInvokerTube.processRequest(SyncProviderInvokerTube.java:78)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
        at
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
        at
org.glassfish.webservices.MonitoringPipe.process(MonitoringPipe.java:138)
        at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
        at
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
        at
com.sun.enterprise.security.webservices.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:195)
        at
com.sun.enterprise.security.webservices.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:127)
        at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
        at
com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:295)
        at
com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:519)
        at
com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:288)
        at
com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:143)
        at
org.glassfish.webservices.JAXWSServlet.doPost(JAXWSServlet.java:149)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
        at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
        at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
        at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
        at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
        at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
        at java.lang.Thread.run(Thread.java:619)
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Error creating managed object for class _dbws.DBWSProvider
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
        at
org.glassfish.webservices.InstanceResolverImpl.resolve(InstanceResolverImpl.java:87)
        ... 53 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Exception attempting invoke lifecycle  method public void
_dbws.DBWSProvider.init()
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeLifecycleMethod(InjectionManagerImpl.java:653)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:408)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:141)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:127)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:306)
        ... 54 more
Caused by: java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.invokeLifecycleMethod(InjectionManagerImpl.java:638)
        ... 58 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl$3.run(InjectionManagerImpl.java:644)
        ... 60 more
Caused by: javax.xml.ws.WebServiceException: Exception [EclipseLink-47007]
(Eclipse Persistence Services - 2.1.2.v20101019-r8373):
org.eclipse.persistence.exceptions.DBWSException
Exception Description: Result type [{urn:testSQL}testSQLType] for operation
[tablewithpk] has no O-X mapping
        at
org.eclipse.persistence.internal.dbws.ProviderHelper.init(ProviderHelper.java:241)
        at _dbws.DBWSProvider.init(DBWSProvider.java from
JavaSourceFromString:50)
        ... 65 more
Caused by: Exception [EclipseLink-47007] (Eclipse Persistence Services -
2.1.2.v20101019-r8373): org.eclipse.persistence.exceptions.DBWSException
Exception Description: Result type [{urn:testSQL}testSQLType] for operation
[tablewithpk] has no O-X mapping
        at
org.eclipse.persistence.exceptions.DBWSException.resultHasNoMapping(DBWSException.java:155)
        at
org.eclipse.persistence.internal.xr.QueryOperation.validate(QueryOperation.java:148)
        at
org.eclipse.persistence.internal.xr.XRServiceFactory.validateOperations(XRServiceFactory.java:286)
        at
org.eclipse.persistence.internal.xr.XRServiceFactory.initializeService(XRServiceFactory.java:177)
        at
org.eclipse.persistence.internal.dbws.ProviderHelper.buildService(ProviderHelper.java:680)
        at
org.eclipse.persistence.internal.dbws.ProviderHelper.init(ProviderHelper.java:237)
        ... 66 more
|#]


Mike Norman wrote:
> 
>   See comments inline ...
> 
> On 21/10/2010 3:15 AM, todhunter wrote:
>> I followed your instruction and I generated dbws.war (
>> http://old.nabble.com/file/p30016792/dbws.war dbws.war ).
>> I am using glassfish-3.0.1.
>> Files
>> eclipselink.jar
>> javax.persistence_1.0.0.v200905011740.jar
>> javax.persistence_2.0.1.v201006031150.jar
>> org.eclipse.persistence.oracle_2.1.2.v20101019-r8373.jar
>> are in lib directory of glassfish
>> I revcived error after call WS
>>
>> [#|2010-10-21T09:06:46.263+0200|SEVERE|glassfish3.0.1|com.sun.xml.ws.server.SyncProviderInvokerTube|_ThreadID=31;_ThreadName=http-thread-pool-8080-(2);|com.sun.enterprise.container.common.spi.util.InjectionException:
>> Error creating managed object for class _dbws.DBWSProvider
>>
>> ... [MWN - many many lines deleted] ...
>>
>> Caused by: Exception [EclipseLink-47007] (Eclipse Persistence Services -
>> 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DBWSException
> The version of EclipseLink used to generate the DBWS Web service (r8373) 
> is different from the version embedded in Glassfish 3.0.1 (r6600).
> The modules in ...glassfishv3/glassfish/modules need to be updated:
> 
>      org.eclipse.persistence.antlr_2.1.2.v20101019-r8373.jar
>      org.eclipse.persistence.asm_2.1.2.v20101019-r8373.jar
>      org.eclipse.persistence.core_2.1.2.v20101019-r8373.jar
>      org.eclipse.persistence.jpa_2.1.2.v20101019-r8373.jar
>      org.eclipse.persistence.jpa.modelgen_2.1.2.v20101019-r8373.jar
>      org.eclipse.persistence.oracle_2.1.2.v20101019-r8373.jar
> 
> and the DBWS runtime module needs to be added:
> 
>      org.eclipse.persistence.dbws_2.1.2.v20101019-r8373.jar
> 
> The last thing to check is that the -packageAs argument is correct:
> 
> prompt>dbwsbuilder.sh -builderFile /tmp/sqltest/dbws-builder.xml 
> -stageDir /tmp/sqltestout -packageAs  glassfish
> 
> 
> Hope this helps,
> ------------------------------------------------------------------------
> Oracle <http://www.oracle.com>
> Mike Norman | Principal Software Designer
> Phone: +6132884638 | Fax: +6132382818
> Server Technologies | EclipseLink Product
> Oracle Canada | 45 O'Connor Street, Suite 400, Ottawa, Ontario | K1P 1A4
> Hardware and Software, Engineered to Work Together <http://www.oracle.com>
> Oracle is committed to developing practices and products that help 
> protect the environment <http://www.oracle.com/commitment>
> 
> 
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 

-- 
View this message in context: http://old.nabble.com/DBWS-output-format-tp29903283p30025177.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top