Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » [Closed] EclipseLink.Examples.student.web JPARSApplication cannot be instantiated
[Closed] EclipseLink.Examples.student.web JPARSApplication cannot be instantiated [message #1036581] Mon, 08 April 2013 15:14 Go to next message
Barry Zhong is currently offline Barry ZhongFriend
Messages: 11
Registered: March 2013
Junior Member
I am new to EclipseLink, and I am trying to adapt to Eclipselink to new platform. During evaluating phase, I am trying the examples from wiki.eclipse.org.

I came across the following error while I am trying

http://wiki.eclipse.org/EclipseLink/Examples/JPARS/Simple


Quote:


com.sun.jersey.api.container.ContainerException: The Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication could not be instantiated
at com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder.<init>(DeferredResourceConfig.java:86)
at com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder.<init>(DeferredResourceConfig.java:78)
at com.sun.jersey.server.impl.application.DeferredResourceConfig.getApplication(DeferredResourceConfig.java:75)
at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1140)
at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:169)
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:775)
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:771)
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:771)
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:766)
at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:488)
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:609)
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1093)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:722)
|#]



And then I debug into the line from the stackTrace:

at com.sun.jersey.server.impl.application.DeferredResourceConfig$ApplicationHolder.<init>(DeferredResourceConfig.java:86)

Quote:

private ApplicationHolder(ProviderFactory pf) {
final ComponentProvider cp = pf.getComponentProvider(appClass);
if (cp == null) {
throw new ContainerException("The Application class " + appClass.getName() + " could not be instantiated");
}
this.originalApp = (Application)cp.getInstance();

if ((originalApp.getClasses() == null || originalApp.getClasses().isEmpty()) &&
(originalApp.getSingletons() == null || originalApp.getSingletons().isEmpty())) {
LOGGER.info("Instantiated the Application class " + appClass.getName() +
". The following root resource and provider classes are registered: " + defaultClasses);
this.adaptedApp = new DefaultResourceConfig(defaultClasses);
adaptedApp.add(originalApp);
} else {
LOGGER.info("Instantiated the Application class " + appClass.getName());
adaptedApp = null;
}

}



Why there isn't a componentProvider corresponding to the class org.eclipse.persistence.jpa.rs.service.JPARSApplication?

Do I need to specify the component provider? There isn't anything related mentioned in wiki. What kind of mistake did i do?

[Updated on: Tue, 09 April 2013 13:34]

Report message to a moderator

Re: EclipseLink.Examples.student.web JPARSApplication cannot be instantiated [message #1036623 is a reply to message #1036581] Mon, 08 April 2013 16:07 Go to previous messageGo to next message
Barry Zhong is currently offline Barry ZhongFriend
Messages: 11
Registered: March 2013
Junior Member
When I switch to 2.4.1 release, build and deploy successfully with warnings, and the server logs are as following:

Quote:

[#|2013-04-09T00:01:49.099+0800|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=93;_ThreadName=Thread-4;|DPL8029: Ignore WEB-INF/weblogic.xml in archive /Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/, as Sun counterpart runtime xml WEB-INF/sun-web.xml is present in the same archive.|#]

[#|2013-04-09T00:01:49.119+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.level; value=FINEST; translated value=FINEST|#]

[#|2013-04-09T00:01:49.119+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.parameters; value=true|#]

[#|2013-04-09T00:01:49.119+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.level; value=FINEST; translated value=FINEST|#]

[#|2013-04-09T00:01:49.120+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.parameters; value=true|#]

[#|2013-04-09T00:01:49.120+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Begin predeploying Persistence Unit jpars_example_student; session file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student; state Initial; factoryCount 0|#]

[#|2013-04-09T00:01:49.120+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.orm.throw.exceptions; default value=true|#]

[#|2013-04-09T00:01:49.120+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.weaving.changetracking; default value=true|#]

[#|2013-04-09T00:01:49.120+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.weaving.lazy; default value=true|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.weaving.eager; default value=false|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.weaving.fetchgroups; default value=true|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.weaving.internal; default value=true|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.multitenant.tenants-share-emf; default value=true|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.multitenant.tenants-share-cache; default value=false|#]

[#|2013-04-09T00:01:49.121+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.metadata-source; default value=null|#]

[#|2013-04-09T00:01:49.122+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Searching for default mapping file in file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/|#]

[#|2013-04-09T00:01:49.122+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Searching for default mapping file in file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/|#]

[#|2013-04-09T00:01:49.124+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The access type for the persistent class [class eclipselink.example.jpars.student.model.Course] is set to [FIELD].|#]

[#|2013-04-09T00:01:49.125+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The access type for the persistent class [class eclipselink.example.jpars.student.model.Student] is set to [FIELD].|#]

[#|2013-04-09T00:01:49.125+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The element [field courses] is being defaulted to a one to many mapping.|#]

[#|2013-04-09T00:01:49.125+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The target entity (reference) class for the one to many mapping element [field courses] is being defaulted to: class eclipselink.example.jpars.student.model.Course.|#]

[#|2013-04-09T00:01:49.125+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The alias name for the entity class [class eclipselink.example.jpars.student.model.Course] is being defaulted to: Course.|#]

[#|2013-04-09T00:01:49.126+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The column name for element [id] is being defaulted to: ID.|#]

[#|2013-04-09T00:01:49.126+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The column name for element [name] is being defaulted to: NAME.|#]

[#|2013-04-09T00:01:49.126+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The alias name for the entity class [class eclipselink.example.jpars.student.model.Student] is being defaulted to: Student.|#]

[#|2013-04-09T00:01:49.126+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The column name for element [id] is being defaulted to: ID.|#]

[#|2013-04-09T00:01:49.127+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The column name for element [name] is being defaulted to: NAME.|#]

[#|2013-04-09T00:01:49.127+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The join table name for the many to many mapping [class eclipselink.example.jpars.student.model.Student] is being defaulted to: JPARS_STUDENT_JPARS_COURSE.|#]

[#|2013-04-09T00:01:49.127+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The source primary key column name for the many to many mapping [field courses] is being defaulted to: ID.|#]

[#|2013-04-09T00:01:49.128+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The source foreign key column name for the many to many mapping [courses] is being defaulted to: students_ID.|#]

[#|2013-04-09T00:01:49.128+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The target primary key column name for the many to many mapping [field courses] is being defaulted to: ID.|#]

[#|2013-04-09T00:01:49.128+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.ejb_or_metadata|_ThreadID=93;_ThreadName=Thread-4;|The target foreign key column name for the many to many mapping [courses] is being defaulted to: courses_ID.|#]

[#|2013-04-09T00:01:49.128+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Class [eclipselink.example.jpars.student.model.Course] registered to be processed by weaver.|#]

[#|2013-04-09T00:01:49.129+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Class [eclipselink.example.jpars.student.model.Student] registered to be processed by weaver.|#]

[#|2013-04-09T00:01:49.129+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|End predeploying Persistence Unit jpars_example_student; session file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student; state Predeployed; factoryCount 1|#]

[#|2013-04-09T00:01:49.129+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Begin deploying Persistence Unit jpars_example_student; session file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student; state Predeployed; factoryCount 1|#]

[#|2013-04-09T00:01:49.131+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Begin weaver class transformer processing class [eclipselink/example/jpars/student/model/Student].|#]

[#|2013-04-09T00:01:49.133+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved persistence (PersistenceEntity) [eclipselink/example/jpars/student/model/Student].|#]

[#|2013-04-09T00:01:49.133+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved change tracking (ChangeTracker) [eclipselink/example/jpars/student/model/Student].|#]

[#|2013-04-09T00:01:49.134+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved fetch groups (FetchGroupTracker) [eclipselink/example/jpars/student/model/Student].|#]

[#|2013-04-09T00:01:49.134+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|End weaver class transformer processing class [eclipselink/example/jpars/student/model/Student].|#]

[#|2013-04-09T00:01:49.138+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Begin weaver class transformer processing class [eclipselink/example/jpars/student/model/Course].|#]

[#|2013-04-09T00:01:49.139+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved persistence (PersistenceEntity) [eclipselink/example/jpars/student/model/Course].|#]

[#|2013-04-09T00:01:49.139+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved change tracking (ChangeTracker) [eclipselink/example/jpars/student/model/Course].|#]

[#|2013-04-09T00:01:49.140+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Weaved fetch groups (FetchGroupTracker) [eclipselink/example/jpars/student/model/Course].|#]

[#|2013-04-09T00:01:49.140+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.weaver|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|End weaver class transformer processing class [eclipselink/example/jpars/student/model/Course].|#]

[#|2013-04-09T00:01:49.144+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.target-server; value=SunAS9; translated value=org.eclipse.persistence.platform.server.sunas.SunAS9ServerPlatform|#]

[#|2013-04-09T00:01:49.144+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.level; value=FINEST; translated value=FINEST|#]

[#|2013-04-09T00:01:49.144+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.parameters; value=true|#]

[#|2013-04-09T00:01:49.144+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.level; value=FINEST; translated value=FINEST|#]

[#|2013-04-09T00:01:49.144+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|property=eclipselink.logging.parameters; value=true|#]

[#|2013-04-09T00:01:49.145+0800|INFO|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;|EclipseLink, version: Eclipse Persistence Services - 2.3.2.v20111125-r10461|#]

[#|2013-04-09T00:01:49.145+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.oracle.Oracle11Platform, regular expression: (?i)oracle.*11|#]

[#|2013-04-09T00:01:49.145+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform, regular expression: (?i)oracle.*10|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.oracle.Oracle9Platform, regular expression: (?i)oracle.*9|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.oracle.OraclePlatform, regular expression: (?i)oracle.*|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.SQLAnywherePlatform, regular expression: SQL\ Anywhere.*|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.SybasePlatform, regular expression: (?i)(sybase.*)|(adaptive\ server\ enterprise.*)|(SQL\ Server.*)|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.SQLServerPlatform, regular expression: (?i)microsoft.*|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.JavaDBPlatform, regular expression: (?i).*derby.*|#]

[#|2013-04-09T00:01:49.146+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.DB2Platform, regular expression: (?i).*db2.*|#]

[#|2013-04-09T00:01:49.147+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.PointBasePlatform, regular expression: (?i)pointbase.*|#]

[#|2013-04-09T00:01:49.147+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Database platform: org.eclipse.persistence.platform.database.MySQLPlatform, regular expression: (?i)mysql.*|#]

[#|2013-04-09T00:01:49.147+0800|FINE|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Detected database platform: org.eclipse.persistence.platform.database.MySQLPlatform|#]

[#|2013-04-09T00:01:49.147+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;|connecting(DatabaseLogin(
platform=>DatabasePlatform
user name=> ""
connector=>JNDIConnector datasource name=>null
))|#]

[#|2013-04-09T00:01:49.148+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;|Connected: jdbc:mysql://dbserver:3306/jpa_rs
User: root@localhost
Database: MySQL Version: 5.6.10-log
Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-5.1.22 ( Revision: ${bzr.revision-id} )|#]

[#|2013-04-09T00:01:49.148+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Connection acquired from connection pool [read].|#]

[#|2013-04-09T00:01:49.148+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Connection released to connection pool [read].|#]

[#|2013-04-09T00:01:49.149+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;|connecting(DatabaseLogin(
platform=>MySQLPlatform
user name=> ""
connector=>JNDIConnector datasource name=>null
))|#]

[#|2013-04-09T00:01:49.149+0800|CONFIG|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.connection|_ThreadID=93;_ThreadName=Thread-4;|Connected: jdbc:mysql://dbserver:3306/jpa_rs
User: root@localhost
Database: MySQL Version: 5.6.10-log
Driver: MySQL-AB JDBC Driver Version: mysql-connector-java-5.1.22 ( Revision: ${bzr.revision-id} )|#]

[#|2013-04-09T00:01:49.150+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.sequencing|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|sequencing connected, state is Preallocation_Transaction_NoAccessor_State|#]

[#|2013-04-09T00:01:49.150+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.sequencing|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|sequence SEQUENCE: preallocation size 50|#]

[#|2013-04-09T00:01:49.150+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.sequencing|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|sequence SEQ_GEN: preallocation size 50|#]

[#|2013-04-09T00:01:49.152+0800|INFO|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student|_ThreadID=93;_ThreadName=Thread-4;|file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student login successful|#]

[#|2013-04-09T00:01:49.152+0800|WARNING|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;|Multiple [2] JMX MBeanServer instances exist, we will use the server at index [0] : [com.sun.jmx.mbeanserver.JmxMBeanServer@1b491b64].|#]

[#|2013-04-09T00:01:49.152+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|JMX MBeanServer instance found: [com.sun.jmx.mbeanserver.JmxMBeanServer@1b491b64], # of beans: [21], domain: [DefaultDomain] at index: [0].|#]

[#|2013-04-09T00:01:49.152+0800|WARNING|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;|JMX MBeanServer in use: [com.sun.jmx.mbeanserver.JmxMBeanServer@1b491b64] from index [0] |#]

[#|2013-04-09T00:01:49.152+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|JMX MBeanServer instance found: [com.sun.enterprise.v3.admin.DynamicInterceptor@74a8dcde], # of beans: [36], domain: [DefaultDomain] at index: [1].|#]

[#|2013-04-09T00:01:49.153+0800|WARNING|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;|JMX MBeanServer in use: [com.sun.enterprise.v3.admin.DynamicInterceptor@74a8dcde] from index [1] |#]

[#|2013-04-09T00:01:49.153+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Registered MBean: org.eclipse.persistence.services.mbean.MBeanDevelopmentServices[TopLink:Name=Development-file_/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student,Type=Configuration] on server com.sun.enterprise.v3.admin.DynamicInterceptor@74a8dcde|#]

[#|2013-04-09T00:01:49.153+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Registered MBean: org.eclipse.persistence.services.glassfish.MBeanGlassfishRuntimeServices[TopLink:Name=Session(file_/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student)] on server com.sun.enterprise.v3.admin.DynamicInterceptor@74a8dcde|#]

[#|2013-04-09T00:01:49.153+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|EclipseLink JMX Runtime Services is referencing the [Platform ConversionManager] ClassLoader at: [WebappClassLoader (delegate=true; repositories=WEB-INF/classes/,WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/)]|#]

[#|2013-04-09T00:01:49.153+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|The applicationName for the MBean attached to session [file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student] is [unknown]|#]

[#|2013-04-09T00:01:49.153+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.server|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|The moduleName for the MBean attached to session [file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student] is [unknown]|#]

[#|2013-04-09T00:01:49.156+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.jpa_metamodel|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Canonical Metamodel class [eclipselink.example.jpars.student.model.Course_] not found during initialization.|#]

[#|2013-04-09T00:01:49.156+0800|FINER|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.jpa_metamodel|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|Canonical Metamodel class [eclipselink.example.jpars.student.model.Student_] not found during initialization.|#]

[#|2013-04-09T00:01:49.157+0800|FINEST|glassfish3.1.2|org.eclipse.persistence.session.file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student.properties|_ThreadID=93;_ThreadName=Thread-4;ClassName=null;MethodName=null;|End deploying Persistence Unit jpars_example_student; session file:/Users/Barry/Professional/Runtimes/glassfish3/glassfish/domains/domain1/eclipseApps/student.web/WEB-INF/lib/student.model-2.4.2-SNAPSHOT.jar/_jpars_example_student; state Deployed; factoryCount 1|#]

[#|2013-04-09T00:01:49.283+0800|WARNING|glassfish3.1.2|javax.org.glassfish.persistence.org.glassfish.persistence.common|_ThreadID=93;_ThreadName=Thread-4;|PER01000: Got SQLException executing statement "CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT NULL, SEQ_COUNT DECIMAL(38), PRIMARY KEY (SEQ_NAME))": com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'sequence' already exists|#]

[#|2013-04-09T00:01:49.289+0800|INFO|glassfish3.1.2|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=93;_ThreadName=Thread-4;|EJB5181:Portable JNDI names for EJB WeaverBean: [java:global/student.web/WeaverBean!eclipselink.example.jpars.student.web.WeaverBean, java:global/student.web/WeaverBean]|#]

[#|2013-04-09T00:01:49.309+0800|INFO|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=93;_ThreadName=Thread-4;|初始化上下文 '/student.web' 的 Mojarra 2.1.6 (SNAPSHOT 20111206)|#]

[#|2013-04-09T00:01:49.394+0800|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=93;_ThreadName=Thread-4;|WEB0671: Loading application at [/student.web]|#]
]

And again , I use Postman to
GET
localhost:8080/student.web/persistence/v1.0/jpars_example_student/metadata

and the response code is 404.

Really made me crazy. Very Happy
Re: EclipseLink.Examples.student.web JPARSApplication cannot be instantiated [message #1037216 is a reply to message #1036623] Tue, 09 April 2013 09:51 Go to previous messageGo to next message
Barry Zhong is currently offline Barry ZhongFriend
Messages: 11
Registered: March 2013
Junior Member
It's so weird that not every time I can see the following web page content.

Installation and Configuration

1. If you are using Glassfish earlier than Glassfish 4.0 (http : / / dlc.sun.com.edgesuite.net/glassfish/4.0/promoted/) you will need to download newer version of EclipseLink 2.4.2 binaries from http : //www.eclipse.org/eclipselink/downloads/nightly.php (2.4.2 Nightly Build Results) and replace following files under $GLASSFISH_HOME/glassfish/modules with corresponding jars you downloaded above:

org.eclipse.persistence.antlr.jar
org.eclipse.persistence.jpa.jar
org.eclipse.persistence.asm.jar
org.eclipse.persistence.jpa.modelgen.jar
org.eclipse.persistence.core.jar
org.eclipse.persistence.oracle.jar
javax.persistence.jar
org.eclipse.persistence.dbws.jar

Make sure you clear Glassfish osgi cache by removing the $GLASSFISH_HOME\glassfish\domains\<your_domain>\osgi-cache directory after you replaced the bundles listed above, and before you restart the Glassfish.


Note: If you want to see JPA-RS logs, add a logger for "org.eclipse.persistence.jpars". Currently exceptions are logged at "FINER" log level. So configure the logger to FINER or FINEST.
Re: EclipseLink.Examples.student.web JPARSApplication cannot be instantiated [message #1037338 is a reply to message #1037216] Tue, 09 April 2013 12:36 Go to previous message
Barry Zhong is currently offline Barry ZhongFriend
Messages: 11
Registered: March 2013
Junior Member
It works after I use glassfish 4 instead, and BTW maybe user will use a different version of Postman, while do POST, please make sure "Headers" are correctly set, especially the content-type and accept-type headers.
Previous Topic:Problem with Class DB2Platform function printSQLSelectStatement
Next Topic:Sorting of hierarchical entities in EclipseLink
Goto Forum:
  


Current Time: Sat Apr 20 03:25:33 GMT 2024

Powered by FUDForum. Page generated in 0.02779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top