[JBoss Portal] - Re: Errors with Jboss Portal and Postgres
by sojoknuckle
Thanks roth, I have now install the postgresql-8.2-505.jdbc2.jar driver. I was using the jdbc3 driver. after I did this I still am seeing the same type of issues. in addition to this I am using the a fresh database that is owned by the portal user configured in the data source. Can you describe how you have setup your database/ data server. I am using a local server on the same physical machine as the Jboss server. the postgres server is configured for connections from both local pipe and also local network tcp. did you have to do anything as far as configuration to either the postgres server or the portal install other than the portal-postgresql-ds.xml file?
At this point the portal works, but where I am finding problems is the cms related features. if I try to add files, delete files, edit documents ...
Here is an example of another error.
javax.servlet.ServletException: Batch entry 0 insert into jbp_cms_wsp_prop (PROP_ID, PROP_DATA, PK) values (d0723d7a-d6ba-4042-a26a-4e95ee03d803/{http://jboss.org/jcr/portalcms}last..., <stream of 56 bytes>, 51) was aborted. Call getNextException to see the cause.
| org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:406)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| java.sql.BatchUpdateException: Batch entry 0 insert into jbp_cms_wsp_prop (PROP_ID, PROP_DATA, PK) values (d0723d7a-d6ba-4042-a26a-4e95ee03d803/{http://jboss.org/jcr/portalcms}last..., <stream of 56 bytes>, 51) was aborted. Call getNextException to see the cause.
| org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2530)
| org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1317)
| org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:350)
| org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2592)
| org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
| org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
| org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
| org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
| org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
Thanks in advance to anyone that can help ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066678#4066678
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066678
18Â years, 9Â months
[JBoss Seam] - The Right Scope
by JUnkie
Hi,
I have a working little book search here. I is triggered from page 1 and the results are rendered on page 2 ("searchResultsPage").
My question: In the code below I bind the DataModel object to the session just to have it available on the page that the SLSB redirects to. I don't want that: How can I avoid the expensive session binding of the DataModel? Other scopes like EVENT or CONVERSATION don't seem to work... how would you do that?
@Stateless
| @Scope(ScopeType.SESSION)
| @Name("bookSearch")
| public class BookSearchAction implements BookSearch {
|
| @In
| private SearchRequest searchRequest;
|
| @DataModel
| private List<SearchResult> searchResults;
|
| public BookSearchAction() {}
|
| public String search() {
|
| searchResults = new ArrayList();
| searchResults.add(...)
| ...
|
| //redirect
| return "searchResultsPage";
| }
| }
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066676#4066676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066676
18Â years, 9Â months
[JBossWS] - Cannot start service endpoint; - nested throwable: (org.jbos
by rashmi_yes
Hi,
I have created an EJB Module using Netbeans 5.5.1 with Jboss 4.2.0. as in the below link & created webservice http://www.netbeans.org/kb/55/websvc-jaxws-jboss.html#Exercise_2
As Netbeans is only supporting JAX-RPC & not JAX-WS whereas JBoss wont support this.
But, when I deployed the project I got the below exception from Jboss server
19:38:15,099 INFO [EJB3Deployer] Deployed: file:/C:/Apps/JBoss/jboss-4.2.0.GA/server/all/deploy/TestEJB.jar
19:38:15,130 INFO [WSDLFilePublisher] WSDL published to: file:/C:/Apps/JBoss/jboss-4.2.0.GA/server/all/data/wsdl/TestEJB.jar/WSTestEJBService60025.wsdl
19:38:15,162 INFO [ServiceEndpointManager] WebService started: http://127.0.0.1:8080/WSTestEJBService/WSTestEJB
19:38:18,615 ERROR [ServiceEndpointDeployer] Cannot create service endpoint
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1768)
at org.jboss.ws.core.utils.JavaUtils.getPackageName(JavaUtils.java:540)
at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:709)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processWebService(JAXWSWebServiceMetaDataBuilder.java:280)
at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:94)
at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77)
at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy34.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
19:38:19,052 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: WSEJBModule.jar
19:38:19,052 ERROR [MainDeployer] Could not create deployment: file:/C:/Apps/JBoss/jboss-4.2.0.GA/server/all/deploy/WSEJBModule.jar
I am new to webservice. So could you please get me a solution/idea to make his work. Or any other way to create EJBs using webservice.
Thanks.
by,
Rashmi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066675#4066675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066675
18Â years, 9Â months