[Security & JAAS/JBoss] - can't do loging to Authorized pages using JAAS
by haplo_3
hi all
i have problem using jaas the login/password popup window apear but when im trying to enter the username and password nothing happen
web.xml
-----------
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Content</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>AuthorizedUser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>AuthorizedUser</realm-name>
</login-config>
<security-role>
The role required to access restricted content
<role-name>AuthorizedUser</role-name>
mysql-ds.xml
----------------------
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/authority</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
root
</local-tx-datasource>
login-config.xml
----------------------
<application-policy name="myOwnDomain">
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule\"
flag="required">
<module-option name="dsJndiName">java:MySqlDS</module-option>
<module-option name="principalsQuery">
select Password from users where userID=?</module-option>
<module-option name="rolesQuery">
select Role,'Roles' from Roles where userID=?</module-option>
</login-module>
</application-policy>
is there a way i can debug what the query return?
how can i make sure jboss succefully conncted to mysql?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978717#3978717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978717
19 years, 8 months
[Installation, Configuration & Deployment] - Installation of JBOSS on gentoo
by kevin_ingen
I want to install jboss on gentoo(linux).
I'm have a problem in the beginning with the installation.
| HPNETSERVER3 jboss2 # java -version
| java version "1.4.2-03"
| Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03)
| Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode)
| HPNETSERVER3 jboss2 # java -jar jboss-4.0.4.GA-Patch1-installer.jar
| Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
| at java.lang.ClassLoader$NativeLibrary.load(Native Method)
| at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
| at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
| at java.lang.Runtime.loadLibrary0(Runtime.java:788)
| at java.lang.System.loadLibrary(System.java:834)
| at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
| at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
| at java.awt.Color.<clinit>(Color.java:250)
| at com.izforge.izpack.installer.InstallData.<init>(InstallData.java:44)
| at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:99)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
| at java.lang.Class.newInstance0(Class.java:308)
| at java.lang.Class.newInstance(Class.java:261)
| at com.izforge.izpack.installer.Installer.main(Installer.java:53)
|
Can someone tell me what to do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978716#3978716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978716
19 years, 8 months
[JBoss Seam] - Re: java.lang.UnsupportedOperationException
by rlhr
In build jboss-seam-CVS.20061016 I get this:
java.util.NoSuchElementException
| at org.jboss.seam.util.EnumerationEnumeration.nextElement(EnumerationEnumeration.java:34)
| at org.jboss.seam.core.Messages$1.entrySet(Messages.java:87)
| at java.util.AbstractMap.toString(AbstractMap.java:584)
| at java.lang.String.valueOf(String.java:2577)
| at java.lang.StringBuffer.append(StringBuffer.java:220)
| at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:155)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.setValue(LegacyELContext.java:201)
| at com.sun.el.parser.AstValue.setValue(AstValue.java:134)
| at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
| at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
| at com.sun.facelets.el.LegacyValueBinding.setValue(LegacyValueBinding.java:68)
| at javax.faces.component.UIInput.updateModel(UIInput.java:226)
| at javax.faces.component.UIInput.processUpdates(UIInput.java:165)
| at javax.faces.component.UIForm.processUpdates(UIForm.java:85)
| at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:428)
| at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:153)
| at org.apache.myfaces.lifecycle.LifecycleImpl.updateModelValues(LifecycleImpl.java:277)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:81)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:33)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.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:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978713#3978713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978713
19 years, 8 months
[JBoss Portal] - A question about IFrame in JBOSS Portal
by yegaofei888@sohu.com
Hi all,
Now I am transfering a struts application to JPortal application. And in the struts application, there are lot of IFrame tags.
like :
| <IFRAME SRC="createDeal.do?name=<%=name%>®ion=<%=us%>" > </IFRAME>
|
I use the apache portal-struts-bridge to transfe this application. it works.
and then the code looks like :
| <IFRAME SRC="<html:rewrite href='createDeal.do?name=<%=name%>®ion=<%=us%>' actionURL='true' />" > </IFRAME>
|
But I meet a problem.
Although it can show the page in IFRAME, the IFRAME will show the whole page, which includes the head image and the footer of JPortal default page. And the page which contains the iframe also has the head image and the footer of JPortal default page.
In other words, my portal page includes a iframe, the iframe includes another portal page. my client will not accept this view.
So I just want to show the content of my jsp file without the layout of portal page.
What shall I do ?
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978705#3978705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978705
19 years, 8 months