[JBoss Tools (users)] - Re: Bug Highlights in JBoss Tools 2.1.1.GA
by bbeloff
"rob.stryker(a)jboss.com" wrote : anonymous wrote : The reason why I take this route is that - from experience - if I take the Server > Add or Remove Projects route, I don't get automatic redeployments. Another bug. Sigh.
|
| This is a WTP issue and something we have no control over sadly.
I think I figured out what was going on here.
When I start up Eclipse and immediately start my server from the Servers view, the deployment screws up. This probably has nothing to do with the WTP ...
The work-around is - before starting the server - to go to the Project Archives pane. At this point I get the message about "Please select an opened project or resource." Once I've done this, the archives are re-synchronised, and the server deployment will work OK.
My question is, why the f*&^ do I have to tell the archive system which archives I'm interested in? Surely it already knows? Can't it sort this out itself on start-up?
Cheers,
Bruno.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158680#4158680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158680
17 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Trying to get JBoss and Hibernate to integrate
by thetikigod
I added the session factory directly to the MainView class, and here are the exceptions that are produced:
| 08:33:09,545 ERROR [MainView] Errornull
| java.lang.ExceptionInInitializerError
| at com.burris.ssapp.database.HibernateUtil.<clinit>(HibernateUtil.java:26)
| at com.burris.ssapp.user.views.MainView.prepare(MainView.java:333)
| at com.burris.ssapp.user.portlet.UserPortlet.doView(UserPortlet.java:80)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
|
| ...
|
| Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found
| at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
| at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
| at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
| at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
| at com.burris.ssapp.database.HibernateUtil.<clinit>(HibernateUtil.java:19)
|
| 08:33:13,970 ERROR [MainView] Errornull
| java.lang.NoClassDefFoundError
| at com.burris.ssapp.user.views.MainView.prepare(MainView.java:333)
| at com.burris.ssapp.user.portlet.UserPortlet.doView(UserPortlet.java:80)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
| at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158679#4158679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158679
17 years, 10 months
[EJB 3.0] - Re: EntityManager's Native Query & Paging Results
by rabbiaqaswar
It is Oracle 9i. Here is the datasource file:
<datasources>
| <xa-datasource>
| <jndi-name>UserDS</jndi-name>
| <track-connection-by-tx/>
| <isSameRM-override-value>false</isSameRM-override-value>
| <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
| <xa-datasource-property name="URL">jdbc:oracle:thin:@mach:1521:ORAUR</xa-datasource-property>
| <xa-datasource-property name="User">name</xa-datasource-property>
| <xa-datasource-property name="Password">password</xa-datasource-property>
| <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
| <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
| <!-- Checks the Oracle error codes and messages for fatal errors -->
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -->
| <no-tx-separate-pools/>
|
| <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -->
| <metadata>
| <type-mapping>Oracle9i</type-mapping>
| </metadata>
| </xa-datasource>
|
| <mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter"
| name="jboss.jca:service=OracleXAExceptionFormatter">
| <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
| </mbean>
|
| </datasources>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158675#4158675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158675
17 years, 10 months