[Security & JAAS/JBoss] - Re: JBoss federated SSO setup
by sohil.shah@jboss.com
Just to be clear, the values in server.cfg.xml should be ssosite1.com and ssosite2.com and not just ssosite1, and ssosite2.
If that is in place, looks like you need to do some debugging on your end to see whats happening. Here are some tips for debugging
1/ Use the LiveHeaders or something like that to see the sequence of requests that happen when going from ssosite1 to ssosite2. Expected behavior would be, when hitting ssosite2, the SSOFederationRouter valve on ssosite2 must redirect back through ssosite1's federation server (redirect). This is based on the partner federation server value specified in server.cfg.xml file. Debug and see if this redirecting occurs to move the SAML token from one domain to another
2/ If from step2, you are seeing that the SAML token is in fact propagated from ssosite1 to ssosite2, then debug the SSOAutoLogin valve to see if the AutoLogin is actually getting processed correspondingly calling your LoginModule, and the login is actually occuring successfully.
The missing link is somewhere here
Hope this provides some clues
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161754#4161754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161754
15 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - MappingException: JDBC Type -1(MySQL 5)
by sidslog
Hi? I'm using JBOSS-4.2.2, Mysql - 5.0.51a-0. Connector driver - mysql-connector-java-5.1.6.
When using Native Queries (for example :
Query query =getEntityManager().createNativeQuery("SELECT agr.AGREEMENTID , enc.NAME\n" +
| "\tFROM GEL$DOC$AGREEMENT agr INNER JOIN GEL$DOC$AGR$ENCLOSURE enc ON (enc.AGREEMENTID = agr.AGREEMENTID)\n" +
| "UNION\n" +
| "SELECT template.TEMPLATEID, tenc.NAME\n" +
| "\tFROM GEL$DOC$TEMPLATE template INNER JOIN GEL$DOC$TPL$PARAGRAPH tenc ON (tenc.TEMPLATEID = template.TEMPLATEID)") ;
|
| List<Object[]> obj = query.getResultList() ;
| )
I get an error:
15:54:53,509 ERROR [STDERR] javax.ejb.EJBException: javax.persistence.Persistenc eException: org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
| 15:54:53,510 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptio nInOurTx(Ejb3TxPolicy.java:63)
| 15:54:53,510 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(T xPolicy.java:83)
| 15:54:53,510 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.i nvoke(TxInterceptor.java:191)
| 15:54:53,510 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,510 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor .invoke(TxPropagationInterceptor.java:95)
| 15:54:53,510 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,510 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInt erceptor.invoke(StatelessInstanceInterceptor.java:62)
| 15:54:53,511 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,511 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInte rceptor.invoke(AuthenticationInterceptor.java:77)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInt erceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| 15:54:53,511 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invo ke(ENCPropagationInterceptor.java:46)
| 15:54:53,511 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInter ceptor.invoke(AsynchronousInterceptor.java:106)
| 15:54:53,511 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.l ocalInvoke(StatelessContainer.java:240)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.l ocalInvoke(StatelessContainer.java:210)
| 15:54:53,511 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy. invoke(StatelessLocalProxy.java:84)
| 15:54:53,511 ERROR [STDERR] at $Proxy314.store(Unknown Source)
| 15:54:53,511 ERROR [STDERR] at ru.geckoSoftware.geleos.documents.faces.agree ment.AgreementInfo.store(Unknown Source)
| 15:54:53,511 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method)
| 15:54:53,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39)
| 15:54:53,512 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25)
| 15:54:53,512 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5 85)
| 15:54:53,512 ERROR [STDERR] at org.apache.myfaces.el.MethodBindingImpl.invok e(MethodBindingImpl.java:129)
| 15:54:53,512 ERROR [STDERR] at org.apache.myfaces.application.ActionListener Impl.processAction(ActionListenerImpl.java:63)
| 15:54:53,512 ERROR [STDERR] at javax.faces.component.UICommand.broadcast(UIC ommand.java:106)
| 15:54:53,512 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processEv ents(AjaxViewRoot.java:184)
| 15:54:53,512 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.broadcast Events(AjaxViewRoot.java:162)
| 15:54:53,512 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processAp plication(AjaxViewRoot.java:350)
| 15:54:53,512 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.in vokeApplication(LifecycleImpl.java:343)
| 15:54:53,512 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.ex ecute(LifecycleImpl.java:86)
| 15:54:53,512 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(Faces Servlet.java:137)
| 15:54:53,512 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:290)
| 15:54:53,512 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206)
| 15:54:53,513 ERROR [STDERR] at org.apache.myfaces.webapp.filter.ExtensionsFi lter.doFilter(ExtensionsFilter.java:100)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206)
| 15:54:53,513 ERROR [STDERR] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter (BaseXMLFilter.java:141)
| 15:54:53,513 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseF ilter.java:281)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206)
| 15:54:53,513 ERROR [STDERR] at org.apache.myfaces.webapp.filter.ExtensionsFi lter.doFilter(ExtensionsFilter.java:147)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206)
| 15:54:53,513 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte r.doFilter(ReplyHeaderFilter.java:96)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.internalDoFilter(ApplicationFilterChain.java:235)
| 15:54:53,513 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha in.doFilter(ApplicationFilterChain.java:206)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve .invoke(StandardWrapperValve.java:230)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve .invoke(StandardContextValve.java:175)
| 15:54:53,514 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia tionValve.invoke(SecurityAssociationValve.java:179)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.authenticator.Authenticat orBase.invoke(AuthenticatorBase.java:524)
| 15:54:53,514 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv e.invoke(JaccContextValve.java:84)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in voke(StandardHostValve.java:127)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i nvoke(ErrorReportValve.java:102)
| 15:54:53,514 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnec tionValve.invoke(CachedConnectionValve.java:157)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve. invoke(StandardEngineValve.java:109)
| 15:54:53,514 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s ervice(CoyoteAdapter.java:262)
| 15:54:53,514 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc ess(Http11Processor.java:844)
| 15:54:53,514 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http1 1ConnectionHandler.process(Http11Protocol.java:583)
| 15:54:53,514 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker .run(JIoEndpoint.java:446)
| 15:54:53,515 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 15:54:53,515 ERROR [STDERR] Caused by: javax.persistence.PersistenceException: o rg.hibernate.MappingException: No Dialect mapping for JDBC type: -1
| 15:54:53,515 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.t hrowPersistenceException(AbstractEntityManagerImpl.java:629)
| 15:54:53,515 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.getResultList(Que ryImpl.java:73)
| 15:54:53,515 ERROR [STDERR] at ru.geckoSoftware.geleos.service.documents.agr eement.AgreementServiceImpl.store(Unknown Source)
| 15:54:53,516 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method)
| 15:54:53,516 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39)
| 15:54:53,516 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25)
| 15:54:53,516 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5 85)
| 15:54:53,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:112)
| 15:54:53,516 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextI mpl.proceed(InvocationContextImpl.java:166)
| 15:54:53,516 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsIn terceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 15:54:53,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,516 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntity ManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 15:54:53,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,516 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.i nvoke(AllowedOperationsInterceptor.java:47)
| 15:54:53,516 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invo keNext(MethodInvocation.java:101)
| 15:54:53,516 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(T xPolicy.java:79)
| 15:54:53,517 ERROR [STDERR] ... 60 more
| 15:54:53,517 ERROR [STDERR] Caused by: org.hibernate.MappingException: No Dialec t mapping for JDBC type: -1
| 15:54:53,517 ERROR [STDERR] at org.hibernate.dialect.TypeNames.get(TypeNames .java:56)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.dialect.TypeNames.get(TypeNames .java:81)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.dialect.Dialect.getHibernateTyp eName(Dialect.java:370)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.custom.CustomLoader$Meta data.getHibernateType(CustomLoader.java:559)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.custom.CustomLoader$Scal arResultColumnProcessor.performDiscovery(CustomLoader.java:485)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.custom.CustomLoader.auto DiscoverTypes(CustomLoader.java:501)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.getResultSet(Load er.java:1796)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.doQuery(Loader.ja va:674)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.doQueryAndInitial izeNonLazyCollections(Loader.java:236)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.doList(Loader.jav a:2220)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.listIgnoreQueryCa che(Loader.java:2104)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.Loader.list(Loader.java: 2099)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.loader.custom.CustomLoader.list (CustomLoader.java:289)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.impl.SessionImpl.listCustomQuer y(SessionImpl.java:1695)
| 15:54:53,518 ERROR [STDERR] at org.hibernate.impl.AbstractSessionImpl.list(A bstractSessionImpl.java:142)
| 15:54:53,519 ERROR [STDERR] at org.hibernate.impl.SQLQueryImpl.list(SQLQuery Impl.java:152)
| 15:54:53,519 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.getResultList(Que ryImpl.java:64)
| 15:54:53,519 ERROR [STDERR] ... 74 more
|
Here is my persistence.xml :
| <persistence>
| <persistence-unit name="GP">
| <jta-data-source>java:/GPDS</jta-data-source>
| <properties>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <property name="hibernate.hbm2ddl.auto" value=""/>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <property name="hibernate.show_sql" value="false" />
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <property name="hibernate.use_outer_join" value="true" />
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <property name="hibernate.max_fetch_depth" value="0" />
| <property name="com.intellij.javaee.persistence.datasource" value="252"/>
| <!--<property name="connection.url">jdbc:mysql://195.34.12.76:3306/geleos</property> <property name="connection.username">geleos</property>-->
| <!--<property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.password">geleos</property>-->
| </properties>
| </persistence-unit>
| </persistence>
|
And application-ds.xml
| <datasources>
| <local-tx-datasource>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <jndi-name>GPDS</jndi-name>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <connection-url>jdbc:mysql://192.168.0.251:3306/geleos?zeroDateTimeBehavior=convertToNull</connection-url>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <driver-class>com.mysql.jdbc.Driver</driver-class>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <user-name>user</user-name>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <password>pswd</password>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <connection-property name="autoReconnect">true</connection-property>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <connection-property name="autoReconnectForPools">true</connection-property>ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
| <!--<metadata>-->
| <!--ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <type-mapping>mySQL</type-mapping>-->
| <!--ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ </metadata>-->
| ÃÂ
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <min-pool-size>5</min-pool-size>
| ÃÂ
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <max-pool-size>30</max-pool-size>
| ÃÂ
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <idle-timeout-minutes>30</idle-timeout-minutes>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
| <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
| ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name> </local-tx-datasource>
| </datasources>
When using non native queries everithing is ok.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161753#4161753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161753
15 years, 10 months
[JBoss jBPM] - jbpm sen mail error
by btl_ayd
Hi I use jbpm 3.2.1 version.I want to send mail.I made necessary configuration.On the testcase my application execute well and can send mail.But when I deployed project on jboss and run it this error has been occured:
| 2008-07-01 14:53:09,016 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't send email
| org.jbpm.JbpmException: couldn't send email
| at org.jbpm.mail.Mail.send(Mail.java:149)
| at org.jbpm.mail.Mail.send(Mail.java:113)
| at org.jbpm.mail.Mail.execute(Mail.java:63)
| at org.jbpm.graph.def.Action.execute(Action.java:122)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:255)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
| at org.jbpm.graph.def.GraphElement$$FastClassByCGLIB$$7a7d6aa6.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$7e22fdfe.fireEvent(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:191)
| at org.jbpm.graph.exe.Token.signal(Token.java:157)
| at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
| at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
| at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
| at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
| at javax.faces.component.UICommand.broadcast(UICommand.java:368)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:810)
| Caused by:
| javax.mail.SendFailedException: Sending failed;
| nested exception is:
| class javax.mail.MessagingException: Exception reading response;
| nested exception is:
| java.net.SocketException: Connection reset
| at javax.mail.Transport.send0(Transport.java:218)
| at javax.mail.Transport.send(Transport.java:80)
| at org.jbpm.mail.Mail.send(Mail.java:147)
| ... 43 more
|
| and here is my processdefinition.xml for sendin mail.
|
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <start-state name="start">
| <transition name="to_state" to="first">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>Going to the first state!</message>
| </action>
| </transition>
| </start-state>
| <state name="first" >
| <event type="before-signal">
| <mail name="mail" to="baydin(a)kipas.com.tr" subject="dnetjeÅr" text="http://localhost:8080/jbpm-console"></mail>
| <action name="action1" class="com.sample.action.MessageActionHandler">
| <message>BETUL AYDIN BU BÄ°R DENEME</message>
| </action>
| </event>
| <transition name="to_end" to="end">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>About to finish!</message>
| </action>
| </transition>
| </state>
| <end-state name="end"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161748#4161748
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161748
15 years, 10 months
[Security & JAAS/JBoss] - Client for SSL WebService
by aiko85
Hi!
I'm trying to connect to SSL-secured webservice; my client code looks like this:
System.setProperty("javax.net.ssl.trustStore", trustStoreLocation);
System.setProperty("javax.net.ssl.trustStorePassword", trustStorePass);
this.service = Service.create(new URL(wsdl), new QName(nameSpace, serviceName));
Now, this works fine when I run it as a stand-alone application and I'm able to use the webservice without problems...
but when I use it as a part of application deployed on Jboss I get:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:236)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:216)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:145)
at sun.security.validator.Validator.validate(Validator.java:203)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:172)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
...
Can anyone help me with this :(?
Regards,
Anne
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161745#4161745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161745
15 years, 10 months
[Installation, Configuration & DEPLOYMENT] - How to authenticate to the JBoss server from a desktop (Swin
by Marcos_APS
- JBoss 4.2.2.GA
- Java 5 Update 15
Hello, everybody!
I have already finished my web application using the JBoss server. It's already deployed, running and working well. This web application uses the FORM authentication method to authenticate users (so users must provide a user name and password to log in), being helped by a custom login module that does the real authentication behind the scenes. All the JavaBeans and entity beans that this web application uses are in a EJB jar file deployed on the same server (so the business logic is separated from the presentation).
But now I want to use this same EJB jar file that contains the business logic
from desktop applications (Swing clients). I suppose (correct me if I'm wrong) that in order to make method calls on the session beans from the Swing clients, these Swing clients also have to be authenticated on the server, like the web application is. But the problem is that I have no idea how to authenticate from desktop applications, as the process to do that could be very different from the web applications authentication process. I also would like to know how to log out from the desktop applications.
Below are some extracts from my web application related to the authentication. I think that showing this here is really not necessary, but I chose to do so in the hope that it can be helpful to you to find an answer to me and to show you more precisely how I'm authenticating from the web application.
--------------------------------------------------------------------------------
IN THE WEB APPLICATION:
=================
web.xml
----------
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>Laboratorio de Informatica</display-name>
<!-- more configuration... -->
<security-constraint>
<web-resource-collection>
<web-resource-name>restrito</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>ADMINISTRADOR</role-name>
<role-name>USUARIO</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>permitido</web-resource-name>
<url-pattern>/css/*</url-pattern>
<url-pattern>/script/*</url-pattern>
<url-pattern>/imagens/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/errologin.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>ADMINISTRADOR</role-name>
</security-role>
<security-role>
<role-name>USUARIO</role-name>
</security-role>
<!-- more configuration... -->
</web-app>
jndi.properties
-----------------
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://localhost:1099
jboss-web.xml
-----------------
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/laboratorio-informatica</security-domain>
</jboss-web>
login.jsp
----------
<h5>Informe o seu nÃÂúmero de matrÃÂÃÂcula e senha para acessar o sistema.</h5>
MatrÃÂÃÂcula:
Senha:
IN THE EJB APPLICATION:
=================
ModuloLoginFuncionarios.java (this is the custom login module)
I'm showing you here just the methods that I override
--------------------------------------------------------------
package br.urca.www.laboratorioinformatica.seguranca.jboss;
|
| import org.jboss.security.auth.spi.UsernamePasswordLoginModule;
| // other imports...
|
| public class ModuloLoginFuncionarios extends UsernamePasswordLoginModule
| {
| @Override
| protected String getUsersPassword() throws LoginException
| {
| // code...
| }
|
| @Override
| protected boolean validatePassword(String inputPassword, String expectedPassword)
| {
| // code...
| }
|
| @Override
| protected Throwable getValidateError()
| {
| // code...
| }
|
| @Override
| protected Group[] getRoleSets() throws LoginException
| {
| // code...
| }
| }
IN THE SERVER:
===========
C:\jboss-4.2.2.GA\server\default\conf\login-config.xml
---------------------------------------------------------------
<?xml version='1.0'?>
<!DOCTYPE policy PUBLIC
"-//JBoss//DTD JBOSS Security Config 3.0//EN"
"http://www.jboss.org/j2ee/dtd/security_config.dtd">
<!-- other configuration... -->
<!-- other configuration... -->
<application-policy name="laboratorio-informatica">
<login-module code="br.urca.www.laboratorioinformatica.seguranca.jboss.ModuloLoginFuncionarios"
flag="required" />
</application-policy>
C:\jboss-4.2.2.GA\server\default\deploy\laboratorio-informatica-ds.xml
-----------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mssql-ds.xml 61002 2007-02-28 16:13:00Z weston.price(a)jboss.com $ -->
<local-tx-datasource>
<jndi-name>LaboratorioInformaticaDS</jndi-name>
<connection-url>jdbc:sqlserver://server_name;databaseName=database_name</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>user_name</user-name>
password
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>MS SQLSERVER2000</type-mapping>
</local-tx-datasource>
--------------------------------------------------------------------------------
So, I hope to get your help about this subject.
Thank you very much.
Marcos
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161742#4161742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161742
15 years, 10 months
[JBoss Portal] - Error:
by Subemontes
Describe your environment:
JBoss Portal Version: jboss-portal-2.6.5.SP1.zip
Did you get Portal from CVS? or download it? Download
JBoss AS Version 4.2.2.GA
Database Vendor and Version: Hyper
JDBC Connector and Version: Integrated
OS Platform: Window 2003 Server Sp2
Java Version:JDK 1.5.0_15-b04
Describe the problem:
I have a running Jboss Server, with 3 deployed aplications, 2 from our developers and another bought.
The aplications use SQL 2005 (correct JDBC and so on)
The problem comes when I try to deploy portal (for future development) in this server.
I want to use the integrated database in jboss (yep, it's running and show on Console)
So what i do is:
Modify: portal-hsqldb-ds.xml with my sa password
Copy:jboss-portal.sar folder and the file to the deploy server:
thanks in advice for the help, have checked the forums, the
http://docs.jboss.com/jbportal/v2.6.5/userGuide/pdf/JBossPortalUserGuide.pdf
http://docs.jboss.com/jbportal/v2.6.5/referenceGuide/pdf/JBossPortalrefer...
And no luck
I That is what I get:
Running Server, I paste the folder and file and...
13:20:35,020 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 3m
| :49s:784ms
| 13:28:43,451 INFO [DefaultEndpointRegistry] register: jboss.ws:context=portal-wsrp,endpoint=ServiceDescriptionService
| 13:28:43,498 INFO [DefaultEndpointRegistry] register: jboss.ws:context=portal-wsrp,endpoint=MarkupService
| 13:28:43,529 INFO [DefaultEndpointRegistry] register: jboss.ws:context=portal-wsrp,endpoint=RegistrationService
| 13:28:43,576 INFO [DefaultEndpointRegistry] register: jboss.ws:context=portal-wsrp,endpoint=PortletManagementService
| 13:28:43,607 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:47,951 INFO [TomcatDeployer] deploy, ctxPath=/portal-admin, warUrl=.../deploy/jboss-portal.sar/portal-admin.sar/porta
| l-admin.war/
| 13:28:48,482 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 13:28:48,638 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/p
| ortal-admin.sar/portal-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/faces-config.xml
| 13:28:48,716 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 13:28:48,857 INFO [FacesConfigurator] MyFaces-package : myfaces-api not found.
| 13:28:48,888 INFO [FacesConfigurator] MyFaces-package : myfaces-impl not found.
| 13:28:48,919 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
| 13:28:48,966 INFO [FacesConfigurator] MyFaces-package : tomahawk not found.
| 13:28:49,263 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
And here he comes!
13:28:49,529 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSeri
| alFactory
| 13:28:49,607 INFO [StartupServletContextListener] ServletContext 'C:\jboss-4.2.2.GA\server\default\.\deploy\jboss-portal.sa
| r\portal-admin.sar\portal-admin.war\' initialized.
| 13:28:49,763 INFO [TomcatDeployer] deploy, ctxPath=/portal-cms, warUrl=.../deploy/jboss-portal.sar/portal-cms.sar/portal-cm
| s.war/
| 13:28:50,247 INFO [TomcatDeployer] deploy, ctxPath=/portal-identity, warUrl=.../deploy/jboss-portal.sar/portal-identity.sar
| /portal-identity.war/
| 13:28:50,685 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 13:28:50,841 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/p
| ortal-identity.sar/portal-identity.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/faces-config.xml
| 13:28:50,904 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 13:28:51,029 INFO [FacesConfigurator] MyFaces-package : myfaces-api not found.
| 13:28:51,060 INFO [FacesConfigurator] MyFaces-package : myfaces-impl not found.
| 13:28:51,076 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
| 13:28:51,107 INFO [FacesConfigurator] MyFaces-package : tomahawk not found.
| 13:28:51,263 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
| 13:28:51,638 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSeri
| alFactory
| 13:28:51,732 INFO [StartupServletContextListener] ServletContext 'C:\jboss-4.2.2.GA\server\default\.\deploy\jboss-portal.sa
| r\portal-identity.sar\portal-identity.war\' initialized.
| 13:28:52,154 INFO [NativeServiceRefBinderJAXRPC] setupServiceRef [jndi=wsrp-client/service/PortletManagementService]
| 13:28:52,216 INFO [NativeServiceRefBinderJAXRPC] setupServiceRef [jndi=wsrp-client/service/MarkupService]
| 13:28:52,263 INFO [NativeServiceRefBinderJAXRPC] setupServiceRef [jndi=wsrp-client/service/ServiceDescriptionService]
| 13:28:52,294 INFO [NativeServiceRefBinderJAXRPC] setupServiceRef [jndi=wsrp-client/service/RegistrationService]
| 13:28:52,341 INFO [ClientDeployer] Client ENC bound under: wsrp-client
| 13:28:52,372 INFO [TomcatDeployer] deploy, ctxPath=/portal-wsrp-admin, warUrl=.../deploy/jboss-portal.sar/portal-wsrp.sar/p
| ortal-wsrp-admin.war/
| 13:28:53,919 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 13:28:54,013 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss-4.2.2.GA/server/default/./deploy/jboss-portal.sar/p
| ortal-wsrp.sar/portal-wsrp-admin.war/WEB-INF/lib2/jsf-facelets.jar!/META-INF/faces-config.xml
| 13:28:54,107 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 13:28:54,185 INFO [FacesConfigurator] MyFaces-package : myfaces-api not found.
| 13:28:54,216 INFO [FacesConfigurator] MyFaces-package : myfaces-impl not found.
| 13:28:54,247 INFO [FacesConfigurator] MyFaces-package : tomahawk-sandbox not found.
| 13:28:54,294 INFO [FacesConfigurator] MyFaces-package : tomahawk not found.
| 13:28:54,388 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
| 13:28:54,607 INFO [FacesConfigurator] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSeri
| alFactory
| 13:28:54,700 INFO [StartupServletContextListener] ServletContext 'C:\jboss-4.2.2.GA\server\default\.\deploy\jboss-portal.sa
| r\portal-wsrp.sar\portal-wsrp-admin.war\' initialized.
| 13:28:54,794 INFO [TomcatDeployer] deploy, ctxPath=/portal-wsrp, warUrl=.../deploy/jboss-portal.sar/portal-wsrp.sar/portal-
| wsrp.war/
| 13:28:58,310 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:58,325 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:58,888 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:58,935 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:59,138 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:59,169 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:59,294 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:59,341 WARN [AbstractServerConfig] Unable to calculate 'WebServicePort', using default '8080'
| 13:28:59,716 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/jboss-portal.sar
| /portal-wsrp.sar/portal-wsrp.war/
| java.lang.NullPointerException
| at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:303)
| at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:103)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161741#4161741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161741
15 years, 10 months