where are Oracle's DMS class files? - java

I'm running a JBoss server (inside Eclipse), with some Hibernate mixed in. I installed Oracle's ojdbc drivers from here:
Oracle Database 11g Release 2 JDBC Drivers
I specifically downloaded the file: ojdbc6dms_g.jar, which according to the site contains instrumentation to support DMS. However when I startup my AS server, I get the following:
Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole from [Module
"com.oracle:main" from local module loader #485fcf29 (roots: /usr/local/jboss-7.1.1-
final/modules)]
when the server is trying to get a new hibernate ejb exception.
I checked Oracle's jar file and sure enough it doesn't contain the class oracle.dms.console.DMSConsole, although from the notes on Oracle's site about the jar file, it seems like the jar file should contain the DMS classes.
Can anyone point me to the correct jar file? And when I do get the right file, where should this file be installed to, particularly with regards to Eclipse and JBoss?
Update: Just found another question asking the same thing here on SO.

The missing classes are indeed in dms.jar. But as I've seen asked elsewhere finding the dms.jar file is not easy. You won't find dms.jar at Oracle Database 11g Release 2 JDBC Drivers because as noted by Oracle: dms.jar is not shipped as part of the RDBMS product. It is only available as part of the Oracle Application Server product.
I hopped onto our server and grabbed the jar file from our Oracle installation directory. We have 11g installed. With 11g you should be able to find the file here:
$ORACLE_HOME/oc4j/lib/dms.jar

I got the same error for different reason and yes it was due to missing dms.jar file. I just had to find where dms.jar file was on our Oracle Application server (Release 12.2.3) and assigned it to the CLASSPATH. And it worked. Thanks for the pointing to the missing .jar file.
Out .jar file was in $ORACLE_HOME/lib/ folder. Changed the path value as :
CLASSPATH=$CLASSPATH:$ORACLE_HOME/lib/dms.jar and it started working.
Fyi..if it helps anyone i was trying to load BI/XML publisher DATA TEMPLATE using XDOLoader utility when i got this error.
-ppemavath

i too face this problem but when i removed all database related jars and added ojdbc6 (or ojdbc7) jar then application working fine. more details please see below link.
https://community.oracle.com/thread/2388722

Related

Why does Derby have to be manually added even though its apart of JDK

A little while ago I asked a question about a no driver error. I was able to figure it out by adding the C:\Program Files\Java\jdk1.8.0_112\db\lib directory to my eclipse project manually. I'm just wondering why it does. Especially when it seems like all of the other jar files in JDK 8 run automatically. Maybe.
First, you are correct that you need to add the Driver JAR file to your classpath. The Oracle documentation for JavaDB says so: see http://docs.oracle.com/javadb/10.10.1.2/getstart/twwdactivity4.html for example.
Why? Well this is conjecture, but suppose that you wanted to run a Java program that talked to a MySQL database. If the JAR files containing the Derby drivers were added to the JVM's bootstrap classpath automatically, then the Derby Driver classes would typically be loaded (by the DriverManager framework), even though it is only the MySQL Driver class that you want to use. Many people would consider loading unwanted drivers to be a defect ... if the JVM did that.

Stored procedure in neo4j 3.0

I'm using neo4j 3.0 on Windows and I try to use stored procedures new feature.
I have built the apoc.jar from github sources.
This jar is copied into plugins repository (C:\Program Files\Neo4j Community\plugins)
I get a Neo.ClientError.Procedure.ProcedureNotFound error when I try to call any apoc stored procedure from neo4j browser.
I tried to follow this post, but dbms configuration parameter does not work for me...
I was having the same problem but then I came to know that I was copying the jar file in the wrong directory. I created a plugins folder in the following directory and copied the jar file in plugins folder then everything started to work.
Path: C:\Users\<username>\Documents\Neo4j\default.graphdb
This is the path where your neo4j instance is residing. While starting neo4j you can see the path of DB for which you are starting Neo4j.
The commenter is right, the Desktop version has these issues for sure. I ran into the same problem on windows but I've switched to the zipped version and everything is working correctly, I was able to deploy the apoc procedures and it is running.

Cannot load net.sourceforge.jtds.jdbc.Driver in Tomcat

I see there are other similar questions, but none of them cover my exact situation.
I'm migrating an Eclipse based web service from FreeBSD 9.2 and Tomcat7 over to FreeBSD 10.0 and Tomcat8. I've deployed my .war on the new server and it runs, right up until it has to do a SQL access, where it fails with "cannot load net.sourceforge.jtds.jdbc.Driver". I'm not sure what's missing. We don't load a driver in lib, it's all bundled into the one .war file (which works fine on the old machine). I've searched the tomcat config files to see if there's any pointers that need to be set, but I'm coming up empty.
Download the jTDS driver from here. Copy it into the Tomcats lib folder. Are you sure you are not using JNDI to retreive the datasource? If thats not the case, its better to include app specific jars in your project and not on the server, to avoid version conflicts with other projects.
Download ojdbc6 or ojdbc14 (which one usefull for Tomcat8)
copy to apache-tomcat-(version) >> lib file.
And in eclipse add ojdbc in Build Path >> order & export.

ClassNotFoundexception: net.sourceforge.jtds.jdbc.Driver

I'm running into java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
I can get around the error by putting jtds.jar file in the CATALINA_HOME/lib directory but this isn't an ideal solution as the application should be modular enough to be deployable on any server.
I have the jtds.jar file in [tomcat_dir]/webapps/myapp/WEB-INF/lib which is where I want it to be found from.
I know there are TONS of similar questions so I apologize if this is a duplicate but I've yet to be able to find a post that helps.
Why can't my app find the correct jtds.jar file which I've included in the app package? What do I need to do in order to get the app to recognize that jar file?
Tomcat 6 and higher demands that JDBC driver JARs appear in the server /lib, especially if you have JNDI data sources.
It might not be ideal, but you'll have to get over it. How often will you be changing app servers?

Mysql ClusterJ Plug-in

Mysql cluster comes with jars for clusterj. I downloaded Mysql Cluster 7.2.7. In shared/java folder,clusterj-7.2.7.jar,clusterj-api-7.2.7.jar,etc. exist. But when I add them to my project class path and write my first Java application that uses clusterj, some classes like SessionFactory,Session,ClusterJHelper is not included in the available jars. In another words, in none of the my jars includes these classes and then I cannot import. Why ?
You are really need to download the latest MySQL Cluster 7.2. SessionFactory, Session, and ClusterJHelper included in
clusterj-7.2.10.jar
clusterj-api-7.2.10.jar
clusterjpa-7.2.10.jar

Categories

Resources