JBoss 7.1 Datasource Problem

edfred

Mitglied
Hallo zusammen,

ich möchte vom Tomcat zum Jboss 7.1 wechseln und habe ein Probelm mit meiner DB-Connection, die ich über eine Datasource herstellen möchte. Nun erkennt JBoss meine Datasource bzw. findet sie einfach nicht.
Denn Jboss starte ich über eclipse und in der Console steht nun folgendes:

Code:
12:01:02,289 Information [org.jboss.modules] JBoss Modules version 1.1.1.GA
12:01:02,483 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
12:01:02,537 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
12:01:03,273 INFO  [org.xnio] XNIO Version 3.0.3.GA
12:01:03,273 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
12:01:03,282 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
12:01:03,284 WARN  [org.xnio.nio] The currently defined selector provider class (sun.nio.ch.PollSelectorProvider) is not supported for use with XNIO
12:01:03,291 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
12:01:03,307 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
12:01:03,316 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
12:01:03,318 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
12:01:03,323 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
12:01:03,327 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
12:01:03,330 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
12:01:03,335 INFO  [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
12:01:03,367 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
12:01:03,389 INFO  [org.jboss.as.connector] (MSC service thread 1-13) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
12:01:03,410 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
12:01:03,420 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]
12:01:03,472 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA
12:01:03,603 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
12:01:03,948 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory /Applications/jboss-as-7.1.1.Final/standalone/deployments
12:01:03,954 INFO  [org.jboss.as.remoting] (MSC service thread 1-14) JBAS017100: Listening on /127.0.0.1:9999
12:01:03,954 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447
12:01:03,954 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found Zeitfenster.war in deployment directory. To trigger deployment create a file called Zeitfenster.war.dodeploy
12:01:04,227 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.java:/ds-db] 

12:01:04,232 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
12:01:04,233 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2203ms - Started 130 of 207 services (2 services failed or missing dependencies, 74 services are passive or on-demand)
12:01:04,242 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "app.war"
12:01:04,524 Information [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Mojarra 2.1.7-jbossorg-1 (20120227-1401) für Kontext '/app' wird initialisiert.
12:01:05,398 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.2.0.Final
12:01:05,564 INFO  [org.jboss.web] (MSC service thread 1-5) JBAS018210: Registering web context: /app
12:01:05,619 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "app.war"

Diese Meldung hier:
Code:
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.java:/ds-db]

sagt mir, dass da etwas im argen liegt. Leider weiß ich nicht wieso...

Ich habe das Problem gegoggelt und habe dann folgendes gefunden:
My Wiki: JBoss AS 7.1.0.Final "Thunder" released - Java EE 6 Full Profile certified!

Bin dann auch genau so vorgegangen, wie es im Link steht. Funktioniert nur leider so nicht bei mir.

Das ist die module.xml (liegt in $JBOSS_HOME/modules/com/mysql/main):
[XML]
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns=”urn:jboss:module:1.1″ name=”com.mysql“>
<resources>
<resource-root path=”mysql-connector-java-5.1.20-bin.jar”/>
</resources>
<dependencies>
<module name=”javax.api”/>
<module name=”javax.transaction.api”/>
<module name=”javax.servlet.api” optional=”true”/>
</dependencies>
</module>
[/XML]

Im selben Verzeichnis liegt auch die mysql-connector-java-5.1.20-bin.jar.

Der Ausschnitt aus der standalone.xml:
[XML]
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jta="true" jndi-name="java:/ds-db" pool-name="db-pool" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/db</connection-url>
<driver>mysql</driver>
<security>
<user-name>xy</user-name>
<password>yx</password>
</security>
<statement>
<prepared-statement-cache-size>100</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
<drivers>
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
[/XML]

Hatte jemand schon einmal dasselbe Problem? Wäre nett wenn mir jemand weiterhelfen könnte.

Vorab schon einmal vielen Dank.


Viele Grüße

edfred
 

edfred

Mitglied
Also gut, ich habe das Problem gelöst, allerdings nur weil ich den Jboss komplett neu aufgesetzt und die Datasource neu angelegt habe. Woran es genau gelegen hat weiß ich nicht aber ich habe diesmal einen anderen Jboss ausprobiert und zwar einen der "JEE6 full certified" ist. Da hat die oben aufgeführte Konfiguration auf anhieb geklappt.

Viele Grüße

Edfred
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
G JBoss Datasource Allgemeines EE 3
S Oracle DataSource im JBOSS ---> ClassCastException Allgemeines EE 2
Y EJBs und Callbacks (Jboss 7.1) Allgemeines EE 1
J Mit @Schedule annotierte Methode wird nach einer Weile nicht mehr ausgeführt (JBoss AS 7.2) Allgemeines EE 0
P eMail versenden mit JBOSS Allgemeines EE 2
N WS-Security Beispiel mit JBOSS/Wildfly gesucht Allgemeines EE 2
I JBoss unheimlich langsam nach mehreren Deploys Allgemeines EE 2
BuckRogers Jboss 7** und j2ee 1.7 Allgemeines EE 1
D Jboss löscht Archiv nicht beim Redeployed Allgemeines EE 3
J paar Fragen zu JSF2/JEE6 Anwendung mit JBoss 7.1.1 Allgemeines EE 6
D Jboss lernen mit Praxisbeispiel Allgemeines EE 4
Y JBoss 7 - wie kann ich das logging meiner Applikation am JBoss konfigurieren Allgemeines EE 3
O JBoss und die Einbindung eines externen JAR Allgemeines EE 10
E Generelle Frage zu CDI mit JBoss AS 7.1.1 and Jave EE 6 Allgemeines EE 4
B JBoss Libs vs. JBoss Libary Allgemeines EE 12
E CDI mit verschiedenen Jars in EAR klappt auf Jboss AS 7.1.1.Final nicht Allgemeines EE 8
S Webapp in JBoss absichern nur in bestimmten Umgebungen? Allgemeines EE 2
C JBoss Clustering schlägt fehl Allgemeines EE 10
2 Deployment per EAR [JBOSS] Allgemeines EE 6
E JBoss NameNotFoundException: einloggen not bound Allgemeines EE 4
S Jboss Server Allgemeines EE 5
E JBoss, jsp und Parameter Allgemeines EE 2
H Bean läuft unter GlassFish, aber JBoss nicht Allgemeines EE 5
S JBoss 7 Authentifizierung: "No principals available" Allgemeines EE 3
S Principal, Authentication, Security und alles im JBoss 7 Allgemeines EE 16
W JBoss 6 - SocketTimeout dynamisch setzen Allgemeines EE 2
S Manueller EJB Lookup im JBoss AS 7.0.1 Allgemeines EE 8
T eXist und JBoss Allgemeines EE 5
J JBoss, Eclipse, Webseite wird nicht angezeigt? Allgemeines EE 4
T erste Anwendung in JBoss deployen Allgemeines EE 3
V JBoss und Classloader Allgemeines EE 6
S Embedded JBoss Problem beim Deployment Allgemeines EE 4
W Anleitung/Tutorial Eclipse/JBoss 6.0 mit Seam 3.0 bzw. jBPM 5.0 Allgemeines EE 3
G JBoss Portal Allgemeines EE 5
E Servlet Wie kann ich ohne Hilfe von Eclipse in JBoss mein servlet aufrufen Allgemeines EE 2
P Kann jemand mit dieser Exception was anfangen? (JBoss) Allgemeines EE 5
ruutaiokwu jboss problem - work-verzeichnis muss manuell gelöscht werden??? Allgemeines EE 5
W JBoss log dependencies aus jbossall-client.jar Allgemeines EE 7
ruutaiokwu ejb hot deployment unter jboss 4.2.3 Allgemeines EE 7
fastjack jBoss und externes Nachrichtensystem Allgemeines EE 3
H log4j + JBoss Allgemeines EE 10
P JAAS mit jboss 6 Allgemeines EE 2
X JBoss log4j Konflikt Allgemeines EE 2
reibi JBoss Webinterface Allgemeines EE 3
X JBoss InitialContext problem Allgemeines EE 5
E Properties-File in Jboss-Conf Verzeichnis ansprechen Allgemeines EE 2
S Servlet auf JBoss 5? Allgemeines EE 11
T Hibernate 3 + EJB 3 + JBoss 5 Allgemeines EE 6
M Deployment auf entfernten JBoss Allgemeines EE 4
T JBoss und DB2-Express Allgemeines EE 2
G separate log files in JBoss Allgemeines EE 2
Escorter JBoss AS als Webserver Allgemeines EE 2
N JBoss Problem mit Bibliothek in unterschiedlichen Versionen Allgemeines EE 2
K mehrere Datenbanken mit JBoss 4.2 und EJB3 Allgemeines EE 3
S oracle db über jboss in jsp Allgemeines EE 19
F FORM Auth in JBoss für User mit falscher Rolle ? Allgemeines EE 2
E JBoss mit existierendem Tomcat nutzen? Allgemeines EE 4
T POI, Maven, JBoss und ein java.lang.NoClassDefFoundError Allgemeines EE 7
M embedded jboss unter eclipse 3.3 Allgemeines EE 2
M URL-Programm-Handling mit Jboss Allgemeines EE 2
G Deployen am JBoss Server Allgemeines EE 14
I JBOSS Jsp Files Pfad im Servlet? Allgemeines EE 4
B Problem mit JBoss-4.2.1.GA Allgemeines EE 8
remus JBoss Authentifizierung mit MYSQL-Datenbank Allgemeines EE 4
B Client ausführen mit JBoss v4.2 Allgemeines EE 3
G JBoss nutzt beim starten ständig das Root.war Allgemeines EE 12
R Jboss-Server mit Beispielanwendung füttern Allgemeines EE 2
R JBoss über lokale IP ansprechen Allgemeines EE 16
M JSP, MySQL und JBoss "No suitable Driver" Allgemeines EE 3
J Frage zu Jboss Allgemeines EE 7
N Jboss als Dienst -> Fehler 1053 Allgemeines EE 1
I JBOSS IDE EJB 3.0 Servlets JSP Applikation --> JSF sinnvo Allgemeines EE 2
S JBOSS-Security_DatabaseServerLoginModule Allgemeines EE 29
R Eclipse + JBoss + JSF Allgemeines EE 14
G webapplikation mit jsp, ejb 3.0 und jboss Allgemeines EE 10
T JBoss Installation . JAVA_HOME not set Allgemeines EE 2
JimPanse Jboss 4.2.0, myfaces bzw. Tomahawk Allgemeines EE 5
E JBoss Hibernate Datenbank-Timeout Allgemeines EE 3
G JBoss aus einem Java-Programm starten Allgemeines EE 11
G JSP und URL-Auflösung (JBoss 4.2.0) Allgemeines EE 4
G JBoss im LAN / wie konfigurieren Allgemeines EE 2
G JBoss + MySQL Allgemeines EE 8
R JBoss 4.2.0 - Eclipse RC 3.3 und WTP Allgemeines EE 3
D JBOSS unter Eclipse Allgemeines EE 2
B Servlet-Api.jar auf JBoss? (Migration von Tomcat zu JBoss) Allgemeines EE 4
F JBoss WebService Allgemeines EE 3
P Einarbeitung in JBOSS? Allgemeines EE 3
C EntityManager wirft NullpointerException: JBoss-Hibernate Allgemeines EE 4
K JBoss AS & IDE Probleme Allgemeines EE 2
S JBoss gibt POI API nicht frei Allgemeines EE 8
T Probleme beim Einsatz von J2EE / JBoss Allgemeines EE 4
M JBOSS AS von Eclipse aus steuern Allgemeines EE 9
N Struts Jboss und Filter Allgemeines EE 2
G JBoss - Session / Entity Allgemeines EE 8
H Gibt es ein jBoss Tutorial für JSPs ? Für Anfänger ? Allgemeines EE 5
H Hilfe! Wie erstelle ich einen Interceptor unter jBoss? Allgemeines EE 3
P jsf1.2 JBoss Allgemeines EE 5
M Chatähnliche Architektur mit JEE/JBoss Allgemeines EE 2
M Wann braucht man JBoss? Allgemeines EE 34
G jboss fehlermeldung Allgemeines EE 4

Ähnliche Java Themen

Neue Themen


Oben