[JBossWS] - Re: Using WSSecurityHandlerOutbound in a DII client
by ShadenS
"acxjbertr" wrote : My client-mapping.xml file is generated by wstools. Here is the Ant task that performs the generation:
|
| <!-- Define a taskdef for the wstools ant task -->
| | <taskdef name="wstools" classname="org.jboss.ws.tools.ant.wstools">
| | <classpath refid="build.classpath" />
| | </taskdef>
| |
| | <target name="generate.ws.client">
| | <wstools dest="${dir.gend}" config="wstools-client-config.xml" />
| | </target>
|
| Note that the build.classpath contains jbossws-client.jar.
|
| Here is the wstools-client-config.xml:
|
| <?xml version="1.0" encoding="UTF-8"?>
| | <configuration xmlns:jbos="http://www.jboss.org/jbossws-tools">
| | <wsdl-java file="wsdl/ClientService.wsdl">
| | <mapping file="client-mapping.xml"/>
| | </wsdl-java>
| | </configuration>
|
| All the task does is look at my WSDL file and generate the client-mapping.xml. This client-mapping.xml file contains information about how to map XML to Java objects.
|
| Does that answer your question?
Thanks for fast reply! :_)
And yes, it answer my question :)
I'm starting to understand my errors.
Uhm uhm... Tomorrow I have to restart with all examples :(
The problem is that I'm working with some differences: for example, I use jsr-181 specification; and my DII client is very different from yours. Then, I have to connect from a client to a session bean and from this I'm connect to WS (ws is within a ejb.... O_o).
So, I often don't understand what I have to "take" from guide and what I have not to consider...
I go to home... now I'm very tired. I hope to find forces tomorrow :P
Greetings from Italy! ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963261#3963261
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963261
19 years, 9 months
[JBoss Portal] - CMS portlet broke in 2.4CR#?
by PeterJ
I downloaded 2.4CR3 and am running with JBoss 4.0.4GA and MySQL 4.1. It appears that the CMS portlet is having problems. I get this exception:
2006-08-04 09:24:59,142 DEBUG [org.jboss.system.ServiceController] starting service portal:service=CMS
| 2006-08-04 09:24:59,142 DEBUG [org.jboss.portal.cms.impl.jcr.JCRCMS] Starting portal:service=CMS
| 2006-08-04 09:24:59,142 INFO [org.jboss.portal.cms.impl.jcr.JCRCMS] Starting JCR CMS
| 2006-08-04 09:24:59,173 DEBUG [org.jboss.portal.cms.impl.jcr.JCRCMS] Jackrabbit configuration : <Repository>
| --lines deleted--
| </Repository>
|
| 2006-08-04 09:24:59,376 INFO [org.apache.jackrabbit.core.RepositoryImpl] Starting repository...
| 2006-08-04 09:24:59,626 WARN [org.jboss.resource.connectionmanager.TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@b1fba0[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@105f759 handles=1 lastUse=1154708699626 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@b2311b context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@b5f87c xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@ccbb35 txSync=null]
| java.lang.ArrayIndexOutOfBoundsException
| at java.lang.System.arraycopy(Native Method)
| at org.jboss.portal.jems.hibernate.ByteArrayBlob.getBytes(ByteArrayBlob.java:74)
| at com.mysql.jdbc.PreparedStatement.setBlob(PreparedStatement.java:1845)
| at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setBlob(WrappedPreparedStatement.java:517)
| at org.jboss.portal.jems.hibernate.CacheableBlobUserType.nullSafeSet(CacheableBlobUserType.java:97)
| at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:145)
| at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1910)
| --- lines deleted ---
| at org.hibernate.impl.SessionImpl.save(SessionImpl.java:521)
| at org.jboss.portal.cms.hibernate.HibernateStore$1.close(HibernateStore.java:1049)
| at sun.nio.cs.StreamEncoder$ConverterSE.implClose(StreamEncoder.java:261)
| at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
| at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
| at org.apache.jackrabbit.core.RepositoryImpl.loadRootNodeId(RepositoryImpl.java:429)
| at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:214)
| at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
| at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:102)
| at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200)
| at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:167)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
| at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:72)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| --- lines deleted ---
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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:324)
| 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:464)
| at java.lang.Thread.run(Thread.java:534)
| 2006-08-04 09:24:59,641 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
|
I can still access the portal, but the CMS portlet windows show an NPE, the rest of the portlets work fine.
I had downloaded and used the CVS source for 2.4 just two weeks ago and that worked fine, as did 2.4CR2. I used MySQL 4.1 and 5.0, and even tried this on two different computers using two separate downloads.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963258#3963258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963258
19 years, 9 months
[JBoss jBPM] - findLatestProcessDefinition crashes after a while
by fuimens
Hello everyone,
just after deploying my application in jbpm-starters-kit-3.1.1, it runs normally but crashes after some calls with the following exception.
| org.jbpm.JbpmException: couldn't find process definition 'my_first_workflow'
| at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.jav
| a:155)
| at action.ListeTachesAction.liste_taches(ListeTachesAction.java:60)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
| n.java:280)
| at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
| 216)
| at action.DispatchingAction.execute(DispatchingAction.java:28)
| at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
| tProcessor.java:484)
| at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
| va:274)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
| 2)
| at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:173)
| at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFi
| lter.java:55)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:173)
| at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:173)
| at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
| lter.java:81)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
| alve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
| alve.java:178)
| at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
| ipalValve.java:39)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
| yAssociationValve.java:159)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
| e.java:59)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
| ava:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
| ava:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
| ve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
| a:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
| :856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
| ssConnection(Http11Protocol.java:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
| int.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
| kerThread.java:112)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
| at antlr.CharScanner.makeToken(CharScanner.java:175)
| at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
| at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
| at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
|
| at antlr.TokenBuffer.fill(TokenBuffer.java:69)
| at antlr.TokenBuffer.LA(TokenBuffer.java:80)
| at antlr.LLkParser.LA(LLkParser.java:52)
| at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:13
| 9)
| at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.j
| ava:236)
| at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorIm
| pl.java:153)
| at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl
| .java:103)
| at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.jav
| a:473)
| at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1060)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1010)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.j
| ava:650)
| at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.jav
| a:138)
| ... 42 more
|
Any help would be much appreciated.
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963257#3963257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963257
19 years, 9 months