[JBoss Portal] - ERROR [SchemaExport] schema export unsuccessful
by anders3
Migration from 2.6-BETA1
When I start 2.6-CR1 for the first time it will create tables....
I have some data in table jbp_group that I want to keep
I therefore dropped all tables except jbp_group (groups)
This makes problems
It seems like Portal/Hibernate cannot accept that some tables are there and others not.
So I have to drop all tables or none ?
/Anders
ATTACHED: LOG
java.sql.SQLException: You cannot commit during a managed transaction!
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:543)
.....
18:35:45,917 WARN [JDBCExceptionReporter] SQL Error: 1146, SQLState: 42S02
18:35:45,918 ERROR [JDBCExceptionReporter] Table 'jbossportal.jbp_object_node' doesn't exist
18:35:46,043 WARN [ServiceController] Problem starting service portal:container=PortalObject
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2147)
.....
at org.hibernate.loader.Loader.doQuery(Loader.java:662)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2144)
... 139 more
18:35:46,097 WARN [ServiceController] Problem starting service portal:service=Hibernate,type=Portlet
org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=hilda.local/46, BranchQual=, localId=46]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=hilda.local/46, BranchQual=, localId=46])
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
at org.jboss.portal.jems.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:229)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041257#4041257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041257
17 years, 8 months
[JBoss Portal] - how to change JWS 80 port on jboss portal 26CR1
by kevnlin
11:33:37,485 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
11:33:37,599 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : zh_TW
11:33:38,018 INFO [HtmlRenderKitImpl] Overwriting renderer with family = facelets rendererType = facelets.ui.Repeat renderer class = com.sun.facelets.component.RepeatRenderer
11:33:38,160 INFO [StartupServletContextListener] ServletContext '/myweb/jboss-portal-2.6-CR1/server/default/./tmp/deploy/portal-wsrp-exp.war/' initialized.
11:33:38,162 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
11:33:39,545 INFO [WSDLFilePublisher] WSDL published to: file:/myweb/jboss-portal-2.6-CR1/server/default/data/wsdl/portal-wsrp.war/wsrp_services.wsdl
11:33:47,036 INFO [ServiceEndpointManager] WebService started: https://555.gotdns.org:8443/portal-wsrp/ServiceDescriptionService
11:33:47,038 INFO [ServiceEndpointManager] WebService started: https://555.gotdns.org:8443/portal-wsrp/MarkupService
11:33:47,039 INFO [ServiceEndpointManager] WebService started: https://555.gotdns.org:8443/portal-wsrp/RegistrationService
11:33:47,041 INFO [ServiceEndpointManager] WebService started: https://555gotdns.org:8443/portal-wsrp/PortletManagementService
11:33:53,895 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041253#4041253
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041253
17 years, 8 months
[JBoss/Spring Integration] - JBoss, Spring and AspectJ integration
by wspiteri
I have deployed a simple application that has the following Spring bean configuration.
| <aop:config proxy-target-class="true">
| <!-- will execute after the profiling advice (c.f. the order attribute) -->
| <aop:advisor advice-ref="txAdvice" pointcut="execution(* com.xxx.clientaccountmgmt.bs.impl.ClientAccountMgmtImpl.*(..))" /><!-- order value is higher than the profiling aspects -->
| </aop:config>
|
| <tx:advice id="txAdvice" transaction-manager="transactionManager">
| <tx:attributes>
| <tx:method name="add*" propagation="REQUIRED"
| read-only="false" />
| <tx:method name="update*" propagation="REQUIRED"
| read-only="false" />
| <tx:method name="delete*" propagation="REQUIRED"
| read-only="false" />
| <tx:method name="get*" read-only="true" />
| </tx:attributes>
| </tx:advice>
|
| <!-- Transaction Manager -->
| <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
| <property name="userTransactionName"><null></null></property>
| <property name="transactionManager"><ref bean="containerTransactionManager"/></property>
| </bean>
|
| <!-- Transaction Manager for JBOSS -->
| <bean id="containerTransactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
| <property name="jndiName"><value>java:/TransactionManager</value></property>
| </bean>
|
|
When I run this inside of the JBoss container I get the following error;-
| Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
| ng bean with name 'accountAliasDao' defined in class path resource [com/xxx/cl
| ientaccountmgmt/applicationContext-dao.xml]: Initialization of bean failed; nest
| ed exception is org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldExcept
| ion: warning can't determine implemented interfaces of missing type $Proxy63
| [Xlint:cantFindType]
| at org.springframework.beans.factory.support.AbstractAutowireCapableBean
| Factory.createBean(AbstractAutowireCapableBeanFactory.java:442)
| at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
| ject(AbstractBeanFactory.java:245)
| at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
| y.getSingleton(DefaultSingletonBeanRegistry.java:141)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
| (AbstractBeanFactory.java:242)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
| (AbstractBeanFactory.java:156)
| at org.springframework.beans.factory.support.BeanDefinitionValueResolver
| .resolveReference(BeanDefinitionValueResolver.java:246)
| ... 75 more
|
|
If I reconfigure it to run outside of the container it works fine.
Do i need to remove certain aspect classes from my classpath to resolve this or is there another issue here?
This issue has been logged before but there was no real resolution to the problem.
Any suggestions would be much appreciated.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041250#4041250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041250
17 years, 8 months
[JBoss.NET] - Axis 1.4 and Web Client deployed in same Jboss server - Clas
by melvinet84
Hi,
I am using JBoss 4.0.2 in linux. I have currently deployed an Axis 1.4 web service and a web application client in the same JBoss server. A client calls the web service by using the generated client stubs by Axis.
There are no problems when accessing the web service from an external webapp client outside of JBoss. But when the webapp client deployed in the JBoss calls the web service (which is also deployed in the same JBoss), it's unable to do so and I get a ClassCastException at the following:
org.apache.axis.ConfigurationException: java.lang.ClassCastException
java.lang.ClassCastException
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:302)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getHandler(WSDDDeployment.java:394)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:276)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
at org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:473)
at org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:269)
at org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:365)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
... ...
... ...
Since an external webapp client is able to access the web service from anywhere outside, it can be assumed the web service deployed in JBoss is working fine. The only problem is when the webapp client calls the web service within the same JBoss server.
Has anyone faced a similar problem of this nature, and solved it? If there is a solution to this, please help refer me to it.
Thanks!
BR,
Melvin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041248#4041248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041248
17 years, 8 months