[Security & JAAS/JBoss] - Re: Federation 1.0 CR1 & jboss 4.2.1
by p-nat
"aamonten" wrote : did you read the Readme.txt file that comes with the bundle?
|
| Yes. But patches are for Jboss 4.0.4 and 4.0.5. Not for Jboss 4.2.1!
|
| can you post the error, so we can evaluate what happens.
I've amended the windows hosts file as suggested in order to simulate two domains.
I've started each instance with "run -c default -b node1.jboss.com" and "run -c default2 -b node1.jboss.org" respectively.
I am then able to access the application, and login successfully with the credentials user1:password, on the first instance using the URL:
http://node1.jboss.com:8080/test
However, when I then attempt to click on the "Cross Domain Get Tester" link, I get the following exception on the second instance (default2):
2007-03-20 11:00:14,711 ERROR [org.opensaml.SAMLObject] caught an exception while parsing a stream:
XML document structures must start and end within the same entity.
2007-03-20 11:00:14,727 ERROR [org.jboss.security.federation.servlet.SSOFederationServer] org.jboss.
security.federation.servlet.SSOFederationServer@126f304
org.jboss.security.saml.SSOException: org.xml.sax.SAXParseException: XML document structures must st
art and end within the same entity.
at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:343)
at org.jboss.security.sso.util.SSOUtil.getUsername(SSOUtil.java:119)
at org.jboss.security.federation.servlet.SSOFederationServer.doPost(SSOFederationServer.java:158)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
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.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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
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(Http11Base
Protocol.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:595)
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same
entity.
at org.opensaml.SAMLObject.fromStream(Unknown Source)
at org.opensaml.SAMLResponse.(Unknown Source)
at org.jboss.security.saml.JBossSingleSignOn.parseAuthResponse(JBossSingleSignOn.java:281)
... 23 more
=======================================
Need patch for Jboss 4.2.1?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144325#4144325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144325
18 years, 3 months
[JBoss Tools (users)] - Seam Generate Entities crashes
by redbird
When I tried to do a new/Seam Generate Entities, I got the following error:
Can't generate seam entities
org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
Could not load JPA Configuration
org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
Could not load JPA Configuration
org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
Could not create JPA based Configuration
java.lang.reflect.InvocationTargetException: <no message>
java.lang.reflect.InvocationTargetException
javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
java.lang.IllegalArgumentException: Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
Unable to visit JAR file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes. Cause: Illegal character in path at index 18: file:/C:/Documents and Settings/Pat/My Documents/eclipse workspaces/MySeamProject2-ejb/build/classes
>From first glance, it appears that it cannot handle spaces in the filename. Can anybody verify this?
I'm about out of patience. I've been trying to get a simple seam app going for two weeks, without any success. I may give it a couple more days, but I'm not very hopeful. Nothing seems to work in my environment. I'll probably go back to MyEclipse. I had a lot better luck with them.
I really wanted Seam to work. It looked so cool on the surface. Alas, I have spent two week fighting the tools and the environment, and accomplished nothing. Perhaps I'll revisit in 6 months. Hopefully things will be better then.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144320#4144320
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144320
18 years, 3 months