quality@glassfish.java.net

Re: JDBC resource resolution problem?

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Fri, 24 Apr 2009 21:08:25 +0200

Hi Yifeng,


Many thanks for looking up the issue number for me!


Greets, Wouter

On Fri, Apr 24, 2009 at 11:44:39AM -0700, Yifeng wrote:
> Hello Wouter,
>
> Thanks for using glassfish.
>
> For the image problem you mentioned, there is an issue 7470 filed.
>
> For the stack trace you have seen, I have an issue 7471, and it has the
> similar stack trace.
>
> java.lang.RuntimeException: Cant copy Serializable object:
>
> Those have been reported since b42.
>
> Thanks
>
> -Yifeng
>
> Wouter van Reeven wrote:
> >OK I think I got a little closer to what's going on. For some reason the
> >admin
> >console doesn't work well on my Firefox 3 browser on Debian. Whenever some
> >JSF
> >pages reload I get a messed up screen, like in the attached image.
> >
> >When I try to create a JDBC Resource, I get the error
> >
> >[#|2009-04-24T19:49:05.346+0200|SEVERE|glassfish|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=21;_ThreadName=Thread-1;|failed to load resources/ResourceAdapter|#]
> >[#|2009-04-24T19:49:05.346+0200|SEVERE|glassfish|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=21;_ThreadName=Thread-1;| com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Cant copy Serializable object:
> > at
> > com.sun.enterprise.connectors.service.ConnectorService.loadDeferredResourceAdapter(ConnectorService.java:220)
> >
> >I guess creating the JDBC Resource fails due to that.
> >
> >When I create the JDBC Resource via the CLI using the create-jdbc-resource
> >command, everything works fine and my war deploys without a problem.
> >
> >
> >Thanks, Wouter
> >
> >On Thu, Apr 23, 2009 at 10:30:31AM +0200, To quality wrote:
> >
> >>Kedar,
> >>
> >>
> >>Thanks for the reply. I tried deploying the war on V2 and there I do not
> >>get the
> >>NamingException for the datasource after I modifed my persistence.xml so
> >>it
> >>looks for jdbc/astro again. I get loads of other errors since I am trying
> >>JEE6
> >>and not JEE5 however :-)
> >>
> >>I have attached the V3 domain.xml to this mail.
> >>
> >>
> >>Thanks, Wouter
> >>
> >>On Wed, Apr 22, 2009 at 11:41:36AM -0700, Kedar Mhaswade wrote:
> >>
> >>>Wouter,
> >>>
> >>>Can you attach the domain.xml? And no, I don't think renaming is
> >>>necessary.
> >>>
> >>>(BTW, did you try this on V2 as well)?
> >>>
> >>>Thanks,
> >>>Kedar
> >>>Wouter van Reeven wrote:
> >>>
> >>>>Hmm, when I rename the JDBC resource to astro (i.e. without the jdbc
> >>>>part) it
> >>>>also fails, even though it shows up in the list-jdbc-resources command
> >>>>
> >>>>$ ./bin/asadmin list-jdbc-resources
> >>>>astro
> >>>>jdbc/__TimerPool
> >>>>jdbc/__default
> >>>>
> >>>>Any clues? Thanks!
> >>>>
> >>>>
> >>>>Wouter
> >>>>
> >>>>On Wed, Apr 22, 2009 at 08:03:28PM +0200, To quality wrote:
> >>>>
> >>>>>Hi all,
> >>>>>
> >>>>>
> >>>>>Today I started testing the JPA 2.0 / EJB 3.1 support of GFv3 b45. I
> >>>>>created a
> >>>>>connection pool that pings ok and then created a JDBC resource called
> >>>>>
> >>>>>jdbc/astro
> >>>>>
> >>>>>which shows up with the list-jdbc-resources command:
> >>>>>
> >>>>>$ ./bin/asadmin list-jdbc-resources
> >>>>>jdbc/__TimerPool
> >>>>>jdbc/astro
> >>>>>jdbc/__default
> >>>>>
> >>>>>However, when I deploy an application with this persistence.xml
> >>>>>
> >>>>><?xml version="1.0" encoding="UTF-8"?>
> >>>>><persistence version="1.0"
> >>>>>xmlns="http://java.sun.com/xml/ns/persistence"
> >>>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> >>>>> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> >>>>> <persistence-unit name="ObservationPlannerAndLoggerPU"
> >>>>> transaction-type="JTA">
> >>>>> <jta-data-source>jdbc/astro</jta-data-source>
> >>>>> <properties>
> >>>>> <property name="eclipselink.logging.level" value="FINE" />
> >>>>> </properties>
> >>>>> </persistence-unit>
> >>>>></persistence>
> >>>>>
> >>>>>When I deploy the application with this persistence.xml, I get this
> >>>>>exception:
> >>>>>
> >>>>>[#|2009-04-22T19:58:31.604+0200|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=15;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
> >>>>>java.lang.RuntimeException: javax.naming.NamingException: Lookup
> >>>>>failed for 'jdbc/astro' in SerialContext [Root exception is
> >>>>>javax.naming.NameNotFoundException: astro not found]
> >>>>> at
> >>>>> org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:109)
> >>>>>
> >>>>>Any idea if this is a problem with my persistence.xml or with GFv3 b45?
> >>>>>
> >>>>>
> >>>>>Thanks, Wouter
> >>>>>
> >>>>>--
> >>>>>There are 10 kinds of people in the world. Those that understand
> >>>>>the binary system and those that don't.
> >>>>>[Unknown Source]
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> >>>>>For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
> >>>>>
> >>>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> >>>For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
> >>>
> >>>
> >>--
> >>King Arthur: [after Arthur's cut off both of the Black Knight's arms]
> >>Look, you
> >>stupid Bastard. You've got no arms left.
> >>Black Knight: Yes I have.
> >>King Arthur: *Look*!
> >>Black Knight: It's just a flesh wound.
> >>[Monty Python and the Holy Grail]
> >>
> >
> >
> >
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> >>For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
> >>
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> >For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>

-- 
Freeze without an answer
Free from all the shame
Must I hide?
Cause I'll never
Never sleep alone
[Mars Volta - The Widow]