[Persistence, JBoss/CMP, Hibernate, Database] - Re: jboss-4.2.3.GA with MySQL Server 5.0 configuration probl
by dan jboss
"PeterJ" wrote : The jms-ds.xml file is one of the configuration files that comes with JBoss Messaging when using in AS 4.2.x. Based on the error message, there must be another configuration file that contains the MBean jboss.messaging:service=ServerSessionPoolMBean,name=StdJMSPool. Could you do a text search of all *.xml files in server/jms for that MBean?
|
| Also, could you post the contents of the *-ds.xml file you created for MySQL? When you do that, make sure you enclose the XML text within code brackets (select the text and click the Code button above the editor window). Also, click Preview to ensure that the text is formatted correctly before clicking Submit.
Thanks a lot for your patience. I got my problem fixed. I had the file hajndi-jms-ds.xml in the deploy directory, and it contained the same MBean defined. I am not sure the instructions told me to remove it and I missed it.
Here is the content of my mysql-ds.xml file:
<?xml version="1.0" encoding="UTF-8"?>
|
| <!-- $Id: mysql-ds.xml 71535 2008-04-01 07:05:03Z adrian(a)jboss.org $ -->
| <!-- Datasource config for MySQL using 3.0.9 available from:
| http://www.mysql.com/downloads/api-jdbc-stable.html
| -->
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>MySQLDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/jboss</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <user-name>jbossuser</user-name>
| <password>jbosspass</password>
| <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
| <!-- should only be used on drivers after 3.22.1 with "ping" support
| <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
| -->
| <!-- sql to call when connection is created
| <new-connection-sql>some arbitrary sql</new-connection-sql>
| -->
| <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
| <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
| -->
|
| <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
|
Thanks again.
Dan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174419#4174419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174419
17 years, 10 months
[JNDI/Naming/Network] - JNDI lookup of DataSource failed
by braca
Hello,
I can't get connected to my Oracle-DB with my Web Application (war). JBoss 4.2.3 is connected to Oracle (relevant tables have been deployed). However, no connection is possible through my web app. The exception is as follows:
21:11:42,847 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
21:11:42,991 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
21:11:43,995 INFO [A] Bound to JNDI name: queue/A
21:11:43,999 INFO [B] Bound to JNDI name: queue/B
21:11:44,003 INFO [C] Bound to JNDI name: queue/C
21:11:44,007 INFO [D] Bound to JNDI name: queue/D
21:11:44,012 INFO [ex] Bound to JNDI name: queue/ex
21:11:44,044 INFO [testTopic] Bound to JNDI name: topic/testTopic
21:11:44,049 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
21:11:44,053 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
21:11:44,058 INFO [testQueue] Bound to JNDI name: queue/testQueue
21:11:44,109 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
21:11:44,164 INFO [DLQ] Bound to JNDI name: queue/DLQ
21:11:44,194 INFO [TomcatDeployer] deploy, ctxPath=/FinanzManagerKUR, warUrl=.../tmp/deploy/tmp17011FinanzManagerKUR-exp.war/
21:11:44,205 WARN [ServiceController] Problem starting service jboss.web.deployment:war=FinanzManagerKUR.war,id=1936763747
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: OracleDS has no valid JNDI binding. Check the jboss-web/resource-ref.)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:384)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
I use only a web.xml for my web-app:
<?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>FinanzManagerKUR</display-name>
<welcome-file-list>
<welcome-file>index.jspx</welcome-file>
</welcome-file-list>
<resource-ref>
JNDI DataSource for OracleDS database im JBoss
<res-ref-name>OracleDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Do I need anything else? Config/Xml-Files, or libs? But it seems the JNDI-Binding is wrong... Can anyone help me?
Thanks, braca
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174412#4174412
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174412
17 years, 10 months
[Security & JAAS/JBoss] - JBoss and JBoss Portal SSO authentication, please help
by x.uiterlinden
Hi,
Currently I'm investigating the possibilities of SSO between a JBoss AS and a JBoss portal instance both running on a separate physical server, preferably not clustered.
Reading through JBoss portal documentation I find there a different possibilities to accomplish SSO, but none of them is mentioned in the JBoss AS documentation. Configuration for all of them is fine when done on JBoss portal, but I get stuck configuring them on JBoss AS.
>From JBoss portal reference documentation:
- Tomcat valve configuration using Treecache; not really an option since it requires a cluster;
- SSO using CAS; no clues on how to configure for jboss AS
- JOSSO; no clues on how to configure for jboss AS
>From JBoss WIKI:
- JBossso: SSO option for JBoss AS, but doesn't seem to support JBoss portal in the current release.
Another option is using opensso. But documentation on JBoss integration is very scarce.
I'm kinda stuck now. There seem to be a lot of options for SSO, but none of them seems to be trivial to implement for my setup. Googling my way through the SSO forest I find lots of hits mentioning SSO and JBoss portal, but nearly nothing on SSO and JBoss AS, except JBossso.
Has anyone accomplished a SSO setup between AS and portal ? What is the preferable setup and where can I find a *working* howto describing the SSO configuration ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174410#4174410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174410
17 years, 10 months
[Security & JAAS/JBoss] - After Login standalone client -> getCallerPrincipal on JBos
by noFreak
Hi all,
i have wrote a client side LoginModule which aquires a Kerberos Service Ticket and than "send it" to JBoss. This works with the SecurtiyAssociationActions (i have copied the class to the client...i know, its not very good...), the same way like the ClientLoginModule do this:
SecurityAssociationActions.setPrincipalInfo(loginPrincipal, loginCredential, subject);
the loginCredential contains the kerberos Service Ticket. This is done by the KerberosClientLoginModule class.
Then, on the servcer side i use the Service Ticket to authenticate the user (with win2k3 server exchange and Java GSS-API functions). This is done by the KerberosJBossLoginModule. It works fine. After thats done I use the IdentityRoleMappingLoginModule to obtain the roles from my database with help of the username. only the name of the user (the database don't contains information about the service ticket, but except for the username) is used for this.It works fine to. This Modlue depends on the DatabaseLoginModule and do following with the obtained (correct) username:
sharedState.put("javax.security.auth.login.name",identity);
But then i want to use the sessionContext.getCallerPrincipal in the ejb and i get an empty String. Furthermore is use the ClientLoginModule and third loginModule like following:
<application-policy name="orga-security">
| <authentication>
| <login-module code="com.mgsoftech.orga.security.KerberosJBossLoginModule" flag="requisite">
| <module-option name="storeKey">true</module-option>
| <module-option name="isInitiator">false</module-option>
| <module-option name="krbRealm">myDomain</module-option>
| <module-option name="name">JBossUserName</module-option>
| <module-option name="password">JBossPW</module-option>
| <module-option name="kdcAddress">ipAddres</module-option>
| <module-option name="debug">true</module-option>
| </login-module>
| <login-module code="com.mgsoftech.orga.security.IdentityRoleMappingLoginModule"
| flag="required">
| <module-option name="password-stacking">
| useFirstPass
| </module-option>
| <module-option name="dsJndiName">
| workingDBName
| </module-option>
| <module-option name="rolesQuery"> workingRolesQuery
| </module-option>
| </login-module>
| <login-module code="org.jboss.security.ClientLoginModule" flag="required">
| <module-option name="password-stacking">
| useFirstPass
| </module-option>
| <module-option name="multi-threaded">
| true
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
but sessionContext.getCallerPrincipal don't work, although i use the clientLoginModule...:(
do anybody know what i could do wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174406#4174406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174406
17 years, 10 months