Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem: ODBC Datasource über Tomcat

Empfohlene Antworten

Hallo,

ich habe ein Problem, ich habe einen Linuxserver aufgesetzt auf welchem ich eine Verbindung zu meiner MySql-Datenbank aufbauen muss. Ich habe den Tomcat über MOD_JK im Apache verdrahtet, diese Verbindung läuft. Das Deployment haut auch hin, nur die ODBC-Verbindung läuft nicht.

Ich bekomme folgenden Fehler:

javax.servlet.ServletException: Unable to get connection, DataSource invalid: "org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'"

	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)

	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)

	org.apache.jsp.test_jsp._jspService(test_jsp.java:219)

	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Hier ein Link zur JSP: http://www.immotas.de/jsp-examples/test.jsp Die Konfiguration in der server.xml sieht wie folgt aus:
      

<Host name="localhost" debug="0" appBase="webapps"

       unpackWARs="true" autoDeploy="true"

       xmlValidation="false" xmlNamespaceAware="false">


<context path="" docbase="webapps">

                <Resource name="jdbc/TestDB" auth="Container"

                                type="javax.sql.DataSource"

                                                maxActive="100" maxIdle="30"

maxWait="10000"

                username="XXX" password="XXXX"

driverClassName="com.mysql.jdbc.Driver"

url="jdbc:mysql://localhost:3306/usr_web0_14?autoReconnect=true"/>

</context>

die MySql-Connector.jar habe ich im /common/lib hinterlegt

Wer kann mir helfen, ich denke ich habe da ein Problem mit dem ODBC-Treiber und komme einfach nicht weiter.

Ich muss das Problem gelöst bekommen - HILFE

Danke

Gruß Thomas

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.