[JBoss Seam] - My list of questions: Seam validation, transactions and exte
by beligum
Hi all,
I know this is a much-asked topic/question, but it would be cool if someone takes the time to explain a thing or two to me. Don't think I'm lazy; I've been reading up on this all day, I just need some clarification ;-)
I also hope this is the right forum to ask, since it's pretty much seam-specific, so please excuse me if it's not.
I have this very well documented scenario: a user clicks something he wants to edit, changes some things, and sends the changes back to the DB (the "multipage wizard pattern").
I have the following installed: a stateful session bean that keeps track of the object that is to be edited, an persistence context, a method that init's the edit-session and one that writes the changes to the db.
I begin a conversation in the init() method and load the selected object into a variable of the SSB. The conversation is ended in the update() method.
Now my questions:
0. If I inject (@In) my EntityManager in Seam, it holds an extended persistence context, right?
1. If I call merge() or not in the update() method, it doesn't make any difference, the changes are always written to the DB. Why is that?
2. I use seam-validation that checks my data, but when something goes wrong in the update() method, a rollbackException is thrown, but my changed data is still written to the DB. How come?
3. If I would like to solve the issue in question #2, if @Begin(flushMode=MANUAL) the only solution? If you have an answer here, please elaborate regarding @TransactionAttribute and @Rollback, because this is all but clear to me. For instance, why doesn't my @Rollback on the update() method work if something goes wrong in that method?
4. Is this solution: http://docs.jboss.org/ejb3/app-server/tutorial/extended_pc/extended.html the same as @Begin(flushMode=MANUAL)?
5. Is it normal I can't use <s:convertEntity /> if I use @PersistenceContext instead of an injected (@In) entity manager?
6. Is there a way to specify flushMode=MANUAL in the <begin-conversation> tag of pages.xml?
7. A bit of a general question: in my scenario (without the manual flushmode), where are the transactions started/ended, and where will throwing runtime exceptinos do any rollback on the changed data?
8. If I would like to post my findings of today in a wiki, what's the best one I can choose?
I hope I can help others out with my questions too, because this is supposed to be general knowledge, but it's hard to get your thoughts around these concepts if one comes from a non-ejb3 environment, directly to seam.
kudos to those who find the time and helpfulness to answer my questions.
b.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052839#4052839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052839
18Â years, 10Â months
[Installation, Configuration & Deployment] - ArrayIndexOutOfBoundsException - running jems-installer-1.2.
by strayhud
Trying to do a full install of jems 1.2 GA. Get the stacktrace below that also shows a null pointer being thrown. Anyone seen this or have any hints on how to fix?
TIA,
Steve
OS is Ubuntu 7.04 (fiesty)
$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
$ sudo java -jar jems-installer-1.2.0.GA.jar
PackageListener, install.log=/tmp/jems-install.log
Exception during event dispatch:
java.lang.NullPointerException
at javax.swing.text.GapContent.garbageCollect(libgcj.so.70)
at javax.swing.text.GapContent$GapContentPosition.(libgcj.so.70)
at javax.swing.text.GapContent.createPosition(libgcj.so.70)
at javax.swing.text.AbstractDocument.createPosition(libgcj.so.70)
at javax.swing.text.AbstractDocument$LeafElement.(libgcj.so.70)
at javax.swing.text.html.HTMLDocument$RunElement.(libgcj.so.70)
at javax.swing.text.html.HTMLDocument.createLeafElement(libgcj.so.70)
at javax.swing.text.DefaultStyledDocument.create(libgcj.so.70)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(libgcj.so.70)
at gnu.javax.swing.text.html.parser.GnuParserDelegator.parse(libgcj.so.70)
at javax.swing.text.html.HTMLEditorKit.read(libgcj.so.70)
at javax.swing.JEditorPane.setText(libgcj.so.70)
at com.izforge.izpack.panels.InstallationGroupPanel.valueChanged(InstallationGroupPanel.java:189)
at javax.swing.DefaultListSelectionModel.fireValueChanged(libgcj.so.70)
at javax.swing.DefaultListSelectionModel.fireValueChanged(libgcj.so.70)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(libgcj.so.70)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.updateSelection(libgcj.so.70)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(libgcj.so.70)
at java.awt.Component.processMouseEvent(libgcj.so.70)
at java.awt.Component.processEvent(libgcj.so.70)
at java.awt.Container.processEvent(libgcj.so.70)
at java.awt.Component.dispatchEventImpl(libgcj.so.70)
at java.awt.Container.dispatchEventImpl(libgcj.so.70)
at java.awt.Component.dispatchEvent(libgcj.so.70)
at java.awt.LightweightDispatcher.handleMouseEvent(libgcj.so.70)
at java.awt.LightweightDispatcher.dispatchEvent(libgcj.so.70)
at java.awt.Container.dispatchEventImpl(libgcj.so.70)
at java.awt.Window.dispatchEventImpl(libgcj.so.70)
at java.awt.Component.dispatchEvent(libgcj.so.70)
at java.awt.EventQueue.dispatchEvent(libgcj.so.70)
at java.awt.EventDispatchThread.run(libgcj.so.70)
align: javax.swing.text.html.BlockView@34387daf
align: javax.swing.text.html.BlockView@34387d37
align: javax.swing.text.html.InlineView@33a4b6bf
align: javax.swing.text.html.BRView@32c619bf
align: javax.swing.text.html.InlineView@33a4b57f
align: javax.swing.text.html.BRView@32c6545f
align: javax.swing.text.html.InlineView@33a4b52f
align: javax.swing.text.html.BRView@32c651bf
align: javax.swing.text.html.InlineView@33a4b4df
align: javax.swing.text.html.BRView@32c64fff
align: javax.swing.text.html.InlineView@33a4b48f
align: javax.swing.text.html.BRView@32c64e7f
align: javax.swing.text.html.InlineView@33a4b34f
align: javax.swing.text.html.BRView@32c64cdf
align: javax.swing.text.html.InlineView@33a4b2ff
align: javax.swing.text.html.BRView@32c64aff
align: javax.swing.text.html.InlineView@33a4b2af
align: javax.swing.text.html.BRView@32c6497f
align: javax.swing.text.html.BRView@32c6479f
align: javax.swing.text.html.InlineView@33a4b11f
align: javax.swing.text.html.BRView@32c6a63f
align: javax.swing.text.html.InlineView@33a4b0cf
align: javax.swing.text.html.BRView@32c6a45f
align: javax.swing.text.html.InlineView@33a4b07f
align: javax.swing.text.html.BRView@32c6a31f
align: javax.swing.text.html.InlineView@33a4b02f
align: javax.swing.text.html.BRView@32c6a13f
align: javax.swing.text.html.InlineView@33a4afdf
align: javax.swing.text.html.BRView@32c69ebf
align: javax.swing.text.html.InlineView@33a4af8f
align: javax.swing.text.html.BRView@32c69c3f
align: javax.swing.text.html.InlineView@33a4af3f
align: javax.swing.text.html.BRView@32c69a7f
align: javax.swing.text.html.InlineView@33a4aeef
align: javax.swing.text.html.BRView@32c6997f
align: javax.swing.text.html.InlineView@33a4ae9f
align: javax.swing.text.html.BRView@32c6977f
align: javax.swing.text.html.InlineView@33a4ac6f
align: javax.swing.text.html.BRView@32c7059f
align: javax.swing.text.html.InlineView@33a4ac1f
align: javax.swing.text.html.BRView@32c703df
align: javax.swing.text.html.InlineView@33a4abcf
align: javax.swing.text.html.BRView@32c7021f
align: javax.swing.text.html.InlineView@33a4ab7f
align: javax.swing.text.html.BRView@32c700bf
align: javax.swing.text.html.InlineView@33a4ab2f
align: javax.swing.text.html.BRView@32c6feff
align: javax.swing.text.html.InlineView@33a4aadf
align: javax.swing.text.html.BRView@32c6fd5f
align: javax.swing.text.html.InlineView@33a4aa8f
align: javax.swing.text.html.BRView@32c6fa1f
align: javax.swing.text.html.InlineView@33a4aa3f
align: javax.swing.text.html.BRView@32c6f83f
align: javax.swing.text.html.InlineView@33a4a9ef
align: javax.swing.text.html.BRView@32c7463f
align: javax.swing.text.html.InlineView@33a4a99f
align: javax.swing.text.html.BRView@32c743bf
align: javax.swing.text.html.InlineView@33a4a94f
align: javax.swing.text.html.BRView@32c7415f
align: javax.swing.text.html.InlineView@33a4a8ff
align: javax.swing.text.html.BRView@32c73f9f
align: javax.swing.text.html.InlineView@33a4a8af
align: javax.swing.text.html.BRView@32c73e1f
align: javax.swing.text.html.InlineView@33a4a85f
align: javax.swing.text.html.BRView@32c73b9f
align: javax.swing.text.html.InlineView@33a4a80f
align: javax.swing.text.html.BRView@32c73a1f
align: javax.swing.text.html.InlineView@33a4a7bf
align: javax.swing.text.html.BRView@32c7375f
align: javax.swing.text.html.InlineView@335ca6bf
align: javax.swing.text.html.BRView@32c7763f
align: javax.swing.text.html.InlineView@335ca52f
align: javax.swing.text.html.BRView@32c774ff
align: javax.swing.text.html.InlineView@335ca4df
align: javax.swing.text.html.BRView@32c7735f
align: javax.swing.text.html.InlineView@335ca48f
align: javax.swing.text.html.BRView@32c7723f
align: javax.swing.text.html.InlineView@335ca34f
align: javax.swing.text.html.BRView@32c76fbf
align: javax.swing.text.html.InlineView@335ca2ff
align: javax.swing.text.html.BRView@32c76e9f
align: javax.swing.text.html.InlineView@335ca2af
align: javax.swing.text.html.BRView@32c76c5f
align: javax.swing.text.html.InlineView@335ca25f
align: javax.swing.text.html.BRView@32c76a1f
align: javax.swing.text.html.InlineView@335ca11f
align: javax.swing.text.html.BRView@32c7685f
align: javax.swing.text.html.InlineView@335ca0cf
align: javax.swing.text.html.BRView@32c7c67f
align: javax.swing.text.html.InlineView@335ca07f
align: javax.swing.text.html.BRView@32c7c53f
align: javax.swing.text.html.InlineView@335ca02f
align: javax.swing.text.html.BRView@32c7c3ff
align: javax.swing.text.html.InlineView@335c9eef
align: javax.swing.text.html.BRView@32c7c25f
align: javax.swing.text.html.InlineView@335c9e9f
align: javax.swing.text.html.BRView@32c7c09f
align: javax.swing.text.html.InlineView@335c9e4f
align: javax.swing.text.html.BRView@32c7bdbf
align: javax.swing.text.html.InlineView@335c9dff
align: javax.swing.text.html.BRView@32c7bcbf
align: javax.swing.text.html.InlineView@335c9daf
align: javax.swing.text.html.BRView@32c7ba7f
align: javax.swing.text.html.InlineView@335c9d5f
align: javax.swing.text.html.BRView@32c7b89f
align: javax.swing.text.html.InlineView@335c9d0f
align: javax.swing.text.html.BRView@32c7e69f
align: javax.swing.text.html.InlineView@335c9cbf
align: javax.swing.text.html.BRView@32c7e57f
align: javax.swing.text.html.InlineView@335c9c6f
align: javax.swing.text.html.BRView@32c7e31f
align: javax.swing.text.html.InlineView@335c9adf
align: javax.swing.text.html.BRView@32c7e1bf
align: javax.swing.text.html.InlineView@335c9a8f
align: javax.swing.text.html.BRView@32c7e07f
align: javax.swing.text.html.InlineView@335c9a3f
align: javax.swing.text.html.BRView@32c7df7f
align: javax.swing.text.html.InlineView@335c98ff
align: javax.swing.text.html.BRView@32c7dcff
align: javax.swing.text.html.InlineView@335c98af
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(libgcj.so.70)
at java.io.ObjectInputStream.read(libgcj.so.70)
at com.izforge.izpack.installer.Unpacker.run(Unpacker.java:434)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052836#4052836
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052836
18Â years, 10Â months
[JBoss Seam] - Problem running seam-discs example from CVS
by stu2
First, this is with Seam 1.3alpha, from CVS, Jboss 4.2.0GA, on OS X.
I'm able to run the other seam examples I've tried, but seam-discs gives me the following exception when I hit the landing page.
13:42:05,448 ERROR [ExceptionFilter] uncaught exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:210)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:167)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:140)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:93)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:64)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:60)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:126)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:248)
at org.jboss.seam.web.AbstractAjax4jsfFilter.doFilter(AbstractAjax4jsfFilter.java:35)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.AssertionError
at org.apache.myfaces.trinidadinternal.application.StateManagerImpl._removeTransientComponents(StateManagerImpl.java:728)
at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:252)
at org.ajax4jsf.framework.ajax.AjaxStateManager.saveSerializedView(AjaxStateManager.java:90)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:232)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
... 40 more
Is it just me or are others seeing this as well?
I've opened an issue in Jira, at http://jira.jboss.com/jira/browse/JBSEAM-1396
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052830#4052830
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052830
18Â years, 10Â months
[JBoss Seam] - Glassfish example and the entity converter.
by soluble
If I add the entity converter initialization config to components.xml in the \jboss-seam-1.2.1.GA\examples\glassfish example I find that deploying the app for the first time works. However, deploying subsequent times fails with many errors produced in the log files (detailed below).
To use the entity converter, the following changes need to be made to the Glassfish example:
The following needs to be added to components.xml:
| <core:entity-manager-factory name="dbFactory"
| persistence-unit-name="bookingDatabase"/>
| <core:managed-persistence-context name="entityManager"
| auto-create="true" entity-manager-factory="#{dbFactory}"/>
| <core:entity-converter entity-manager="${entityManager}"/>
|
and the persistence.xml needs to use a JTA factory:
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence 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"
| version="1.0">
| <persistence-unit name="bookingDatabase" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>jdbc/__default</jta-data-source>
| <properties>
|
| <property name="hibernate.dialect"
| value="org.hibernate.dialect.DerbyDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.transaction.flush_before_completion" value="true"/>
| <property name="hibernate.transaction.manager_lookup_class"
| value="org.hibernate.transaction.SunONETransactionManagerLookup"/>
| <property name="hibernate.cache.provider_class"
| value="org.hibernate.cache.HashtableCacheProvider"/>
| </properties>
| </persistence-unit>
| </persistence>
|
The first time I deploy the application, the context starts and I have a functioning Hotel Booking system. Subsequent undeploy/deploy cycles, without changing any code results in the following errors and an unfunctioning application.
| ...
| Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader@5c3987
|
| was requested to find resource org/hibernate/ejb/persistence_1_0.xsd after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findResource(EJBClassLoader.java:458)
| at java.lang.ClassLoader.getResource(ClassLoader.java:977)
| at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
| at com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream(EJBClassLoader.java:795)
| at org.hibernate.util.DTDEntityResolver.resolveInHibernateNamespace(DTDEntityResolver.java:78)
| at org.hibernate.cfg.EJB3DTDEntityResolver.resolveEntity(EJB3DTDEntityResolver.java:53)
| at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:107)
| at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1100)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:595)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2403)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1753)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
| at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
| at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:70)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:79)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:212)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:96)
| at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
| ...
|
| ...
| Parent -> EJBClassLoader :
| urlSet = []
| doneCalled = false
| Parent -> java.net.URLClassLoader@5c3987
|
| was requested to find class sun.net.www.protocol.http.HttpURLConnection.LogStrings after done was invoked from the following stack trace
| java.lang.Throwable
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:707)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:627)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2370)
| at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1400)
| at java.util.ResourceBundle.findBundle(ResourceBundle.java:1365)
| at java.util.ResourceBundle.findBundle(ResourceBundle.java:1294)
| at java.util.ResourceBundle.findBundle(ResourceBundle.java:1294)
| at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1236)
| at java.util.ResourceBundle.getBundle(ResourceBundle.java:964)
| at java.util.logging.Logger.findResourceBundle(Logger.java:1298)
| at java.util.logging.Logger.setupResourceInfo(Logger.java:1326)
| at java.util.logging.Logger.getLogger(Logger.java:326)
| at com.sun.enterprise.server.logging.BaseLogManager.doInitializeLogger(BaseLogManager.java:125)
| at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:195)
| at java.util.logging.Logger.getLogger(Logger.java:278)
| at sun.net.www.protocol.http.HttpURLConnection.<clinit>(HttpURLConnection.java:63)
| at sun.net.www.protocol.http.Handler.openConnection(Handler.java:44)
| at sun.net.www.protocol.http.Handler.openConnection(Handler.java:39)
| at java.net.URL.openConnection(URL.java:945)
| at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:651)
| at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1316)
| at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:1268)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:280)
| at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:409)
| at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:491)
| at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:510)
| at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1802)
| at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:531)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2408)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1753)
| at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3084)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:912)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
| at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
| at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
| at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:70)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:79)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:212)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:96)
| at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
|
and so on, ending with
PWC1306: Context startup failed due to previous errors
Does anyone have any idea why this might be? It severely affects the code/debug cycle as each time a developer will need to undeploy, restart Glassfish and then redeploy to get things working.
This is a follow on from a previous post (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=110033).
I am using Glassfish v2 build 48 and jboss-1.2.1.GA.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052828#4052828
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052828
18Â years, 10Â months