Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apex/APEX
Hi All,
Getting the above error when running the following export utility:
$ java oracle/apex/APEXExport
ABove error is thrown.
I have looked at most blogs suggested by ML.
Here are my env params:
echo $CLASSPATH
/u01/app/oracle/product/11.2.0/db_1/jdbc/lib/ojdbc5dms.jar
( No, i don't see any classes12.jar. The classes12.zip resides in oui folder. I tried that as well and it didnt work)
echo $JAVA_HOME
/usr/java/jdk1.7.0_02
So for the heck of it, I tried:
$ export CLASSPATH=.:${ORACLE_HOME}/jdbc/lib/classes12.zip
and lo, I am able to at least summon this:
$ java oracle/apex/APEXExport
Usage APEXExport -db -user -password -applicationid -workspaceid -instance -skipExportDate -expSavedReports -debug
-db: Database connect url in JDBC format
-user: Database username
-password : Database password
-applicationid : ID for application to be exported
-workspaceid : Workspace ID for which all applications to be exported
-instance : Export all applications
-skipExportDate : Exclude export date from application export files
-expSavedReports: Export all user saved intera
BUT: when invoking specific job, I get this:
java oracle/apex/APEXExport -db hostname:1521:SID -user apex_030200 -password welcome123 -instance
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
at oracle.apex.APEXExport.main(APEXExport.java:315)
any ideas?
Hello,
I get a very similar error.
Windows 7 Ultimate SP1
Oracle XE 11.2
Apex 4.1
jdk 6u31-windows x64.exe (installed to C:\Program Files\Java\jdk1.6.0_31\.....)
User Variable CLASSPATH = .\; C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib\ojdbc5.jar
User Variable JAVA_HOME = C:\program files\java\jdk1.6.0_31\jre\bin
User Variable ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server
System Variable PATH = C:\oraclexe\app\oracle\product\11.2.0\server\bin;;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\11.0\DLLShared\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\Pinnacle\Shared Files\Filter\;C:\Program Files (x86)\QuickTime\QTSystem\
At the C:\apex\utilities directory I give the command:
java oracle.apex.APEXExpress -db localhost:1521:XE -user SUSANNA -password skippy123 -expworkspace
I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apex/APEXExpress
Caused by: java.lang.ClassNotFoundException: oracle.apex.APEXExpress
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doProvileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: oracle.apex.APEXExpress. Program will exit.
Similar Messages
-
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
XSLException
Hi
I have downloaded XDK and was trying to use the XSU feature..
I unzipped the XDK file, I ran the following query on SQL plus
select * from emp. It displayed the full table.
Then i set the class path for XDK,XMLparserv2,oracle JDBC driver and then ran the same query on dos prompt(that is front end command line for java in my case).
The following is the line i tried to execute on the command prompt
java OracleXML getXML -user "scott/tiger" -conn "jdbc:oracle:thin:@localhost
:1521:PomonaT" "select * from emp"
PomonaT is the db name(Host string i use to enter SQL+)
I get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
XSLException
at OracleXML.To_XML(OracleXML.java:1038)
at OracleXML.ExecuteGetXML(OracleXML.java:917)
at OracleXML.main(OracleXML.java:184)
IS SOMETHING MISSING IN MY CLASSPATH??
IF YES? Could anyone tell what??
KunalAdd xmlparserv2.jar to Classpath & reboot.
-
I have the following configuration:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
on a Suse 10.1 Linux.
The javaversion is Java.Version = 1.4.2_11
The classpath does look like:
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> echo $CLASSPATH
/derby.jar:/derbytools.jar:/derbynet.jar:/derbyclient.jar:/derbyTesting.jar:/local/derby/tools/java/jakarta-oro-2.0.8.jar:/derbyLocale_de_DE.jar:/derbyLocale_es.jar:/derbyLocale_fr.jar:/derbyLocale_it.jar:/derbyLocale_ja_JP.jar:/derbyLocale_ko_KR.jar:/derbyLocale_pt_BR.jar:/derbyLocale_zh_CN.jar:/derbyLocale_zh_TW.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/classes12.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/classes12.zip:/oracle/oracle/product/10.2.0/db_1/jlib/orai18n.jar:/oracle/oracle/product/10.2.0/db_1/jdbc/lib/ojdbc14.jar:/home/Eisele/Oracle/ojdbc14.jar:/home/Eisele/FH-Weihenstephan/Winter_Semester_200809/Uebungen
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen>
The Program JDBCVersion.java which I copied out of the Oracle-Documentation looks like:
import java.sql.*;
import oracle.jdbc.*;
import oracle.jdbc.pool.OracleDataSource;
class JDBCVersion
public static void main (String args[]) throws SQLException
System.out.println("Java.Version = " + System.getProperty("java.version")) ;
OracleDataSource ods = new OracleDataSource();
ods.setURL("jdbc:oracle:thin:scott/tiger@host:port:service");
Connection conn = ods.getConnection();
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
I get the following error
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> javac JDBCVersion.java
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen> java -cp ~/FH-Weihenstephan/Winter_Semester_200809/Uebungen/ JDBCVersion
Java.Version = 1.4.2_11
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource
at JDBCVersion.main(JDBCVersion.java:10)
Eisele@brezn:~/FH-Weihenstephan/Winter_Semester_200809/Uebungen>
Can anyone help me out here and tell me, what I did wrong ?
Thanks in advance !
RüdigerTwo thoughts.
The first is that 10.2.0.1 is unpatched. Why? It has been two years since its release and no one has applied 10.2.0.2, 10.2.0.3 or 10.2.0.4.
The second is that your question is not a database question but a Java question is you are more likely to get an answer that will help you if you post in a group where it is on-topic. -
Hi All
I am using XSLT transformation in JDeveloper with the following code but getting exception. How to avoid using Oracle XSLT processor which looks incomplete ?
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer;
try {
result =
new StreamResult(new OutputStreamWriter(new FileOutputStream(output),
"UTF-8"));
transformer = factory.newTransformer(XSLTFile);
transformer.transform(inputXML, result);
} catch (TransformerException e) {
e.printStackTrace();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (FileNotFoundException e) {
e.printStackTrace();
Code runs fine but throws exception when there is any XPath expression in the XSLT file such as
/ns:root/sa:node[@name='attribName']
It does not show exception for simple expressions like "/ns:root/sa:node"
Exception is
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/i18n/text/OraCollator
at oracle.xml.xqxp.functions.builtIns.FNUtil.getCollator(FNUtil.java:355)
at oracle.xml.xqxp.datamodel.OXMLItem.compareValue(OXMLItem.java:1080)
at oracle.xml.xpath.XPathItem.compareValue(XPathItem.java:409)
at oracle.xml.xpath.XPathSequence.compareGeneral(XPathSequence.java:1477)
at oracle.xml.xpath.ComparisonExpr.evaluate(XSLExpr.java:1507)
at oracle.xml.xpath.XPathPredicate.filter(XPathPredicate.java:264)
at oracle.xml.xpath.XPathChildAxis.getNodeList(XPathAxis.java:580)
at oracle.xml.xpath.XPathStep.evaluate(XPathStep.java:555)
at oracle.xml.xpath.PathExpr.evaluate(XSLNodeSetExpr.java:859)
at oracle.xml.xpath.XSLExprBase.streamingEvaluate(XSLExprBase.java:392)
at oracle.xml.xslt.XSLForEach.processAction(XSLForEach.java:135)
at oracle.xml.xslt.XSLNode.processChildren(XSLNode.java:497)
at oracle.xml.xslt.XSLTemplate.processAction(XSLTemplate.java:205)
at oracle.xml.xslt.XSLStylesheet.execute(XSLStylesheet.java:585)
at oracle.xml.xslt.XSLProcessor.processXSL(XSLProcessor.java:332)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:485)
PS. my XSLT version is <?xml version="1.0" , can't make it to 2.0 as Jdeveloper (11.1.1.5.0) throws error during compilation.The exception got resolved by the library orai18n-collation.jar in the directory "Oracle\Middleware\oracle_common\modules\oracle.nlsrtl_11.1.0"
However I wanted to completely avoid Oracle V2 Parser as it was working in a fresh project where only standard import javax.xml.transform.Transformer was available. -
Hi!
Kindly assist on the following error.
I'm doing the sample acmevideo on Cashier Application deploying as a Java Application from JDeveloper3.0 and Oracle8i 8.1.5. And I had this error after executing the following command;
Path=e:\javaWebServer2.0\jre\bin;%Path%
jre -cp "e:\cashier\acme.jar" acmevideo.swing.CashierApp
ERROR MESSAGE ARE FOLLOWS:
E:\cashier>jre -cp "e:\cashier\acme.jar" acmevideo.swing.CashierAppException in thread "main" java.lang.NoClassDefFoundError:
oracle/xml/parser/v2/DOMParser
at
at oracle.jbo.server.SessionImpl.init(SessionImpl.java:82)
at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:81)
at oracle.dacf.dataset.SessionInfo._createAppModule(SessionInfo.java:1776)
at oracle.dacf.dataset.SessionInfo.connect(SessionInfo.java:1370)
at oracle.dacf.dataset.SessionInfo.open(Compiled Code)
at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java:952)
at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java:934)
at acmevideo.infoswing.ViewRentalsForm.<init>(ViewRentalsForm.java:189)
at acmevideo.swing.CashierApp.<init>(CashierApp.java:45)
at acmevideo.swing.CashierApp.main(CashierApp.java:141)Make sure the classpath for the application includes all necessary dependency archives.
The error in question is referring to the XMLParverv2.jar. This needs to be in the application's classpath when you launch it.
The jar is available from JDEV_HOME\lib.
Laura -
When I try execute OTT , it is throwing above mentioned exception.
I have set the following in the classpath
classes.zip
translator.zip
runtime.zip
runtime11.zip
runtime12.zip
charset.zip etc.
but still getting this error.
can anyone help me.
Help much apprecitated.Add xmlparserv2.jar to Classpath & reboot.
-
RE:Exception in thread "main" java.lang.NoClassDefFoundError:
Hello all!
I'm trying to connect to a 10g Oracle DB (10.2.0.1.0) from Java code using jdbc. however i get the error below when i try to run the following code in Eclipse. could you please help me out here. Thnx so much in advance.
import java.sql.*;
public class CreateCoffees {
public static void main(String args[]) {
String host="Francis-PC";
int port=1521;
String sid="orcl";
String url = "jdbc:oracle:thin:@" host":"+port+":"+sid;
Connection con;
String createString;
createString = "create table COFFEES " +
"(COF_NAME VARCHAR2(32), " +
"SUP_ID NUMBER, " +
"PRICE NUMBER(4,2), " +
"SALES NUMBER, " +
"TOTAL NUMBER)";
Statement stmt;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,"abiri", "abel");
//con=DriverManager.
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:341)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:816)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at CreateCoffees.main(CreateCoffees.java:30)
Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 moreAmasoni wrote:
how can I include it in the Oracle's JDBC driver library plz?You don't; you learn how to properly set the Java classpath and you include the jars you need in it. If you don't know how to do that, I recommend you get a good book on Java for beginners. -
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
Hi,
I am new to SQLJ. Now, in my PC (with Win98), I have JDK 1.2 and Oracle 8i (personal edition). I have used Java and Oracle in my PC without any problem. Now, I am going to learn SQLJ in order to create a java program to access Oracle database. What I have done is to set up several classpaths in DOS:
SET classpath=C:\ora_program\sqlj\lib\translator.zip;
SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
The code of my program is:
import java.sql.Date;
import java.sql.SQLException;
import oracle.sqlj.runtime.Oracle;
import java.util.Date;
public class Hello{
public static void main(String[] args){
java.sql.Date current_date;
try{
// connect to the db
Oracle.connect(
"C:\ora_program\bin",
"system",
"manager");
// get the current date from the database
#sql{SELECT sysdate INTO :current_date FROM dual};
// display message
System.out.println("Hello, the current date is: "+ current_date);
catch(SQLException e){
System.err.println("sqlException: "+e);
finally{
try{
Oracle.close();
catch(SQLException e){
System.err.println("sqlException: "+e);
And then I compile my program in DOS with the typing: sqlj Hello.sqlj
The program cannot be compiled and the error message is:
"Exception in thread main java.lang.NoClassDefFoundError: sqlj/tools/Sqlj"
It indicates that the SQLJ translator class files cannot be found.
I have set up the classpath in DOS (see above). How does the error come? Please help. Thanks.
PC>
SET classpath=C:\ora_program\sqlj\lib\translator.zip;
SET classpath=C:\ora_program\sqlj\lib\runtime.zip;
SET classpath=C:\ora_program\sqlj\lib\runtime12.zip;
SET classpath=C:\ora_program\jdbc\lib\classes12.zip;
The above only sets the classpath to the last value. You need to use the following.
SET classpath=%classpath%;C:\ora_program\sqlj\lib\runtime.zip; -
Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class
Dear all,
It occur 'Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class' error when I test a oracle java sample.I've already SET CLASSPATH=C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP.
following is the source code:
import java.sql.*;
class Emp
public static void main (String args [])
throws SQLException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You must put a database name after the @ sign in the connection URL.
// You can use either the fully specified SQL*net syntax or a short cut
// syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@localhost:1521:orcl",
"scott", "tiger");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));
Can you tell me what should also be set in classpath?
thanks in advance.You are right, the program is absolutely correct and I've run it before.but why set PATH=%PATH%;C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP?I don't think it is correct.
I've ever run this jdbc program before and remeber only set classpath(path is also be set only for run executable program, for example set path=%path%;c:\j2sdk\bin),
I think the only difference with before is:
1,oracle version is changed from enterprise version to personal version
2,OS is changed from NT to windows 98
but i dont know if it lead to problem and can you give me some advice? -
I am getting the following exception described below:
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled Code)
at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at source.UserCompileASLFromPatch.getConnection(UserCompileASLFromPatch.java, Compiled Code)
at source.UserCompileASLFromPatch.initialize(UserCompileASLFromPatch.java, Compiled Code)
at source.UserCompileASLFromPatch.main(UserCompileASLFromPatch.java, Compiled Code)
I am using java version "1.4.2_09" for the JDBC Connection. Is it the version problem or can be a problem specific to the code?hello debdatta
The JVM is unable to find the class. Just check ur driver class whether its included in the class path.
and its not getting the location of the file. The path where ur program is searching the class isnt there. so its the problem with ur path not the program. -
Exception in thread "main" java.lang.NoClassDefFoundError: utils.CertGen
I want to set the environment by using the setWLSEnv.sh shell in linux OS. Then execute the "java weblogic.utils.CertGen" the below error is occurred.
[root@loaclhost ~]# cd /oracle/Middleware_1033/wlserver_10.3/server/bin/
[root@loaclhost bin]# ll
total 16
drwxr-x--- 2 root root 4096 Dec 3 14:37 international
-rwxr-x--- 1 root root 3845 Dec 3 14:38 setWLSEnv.sh
-rwxr-x--- 1 root root 4150 Dec 3 14:38 startNodeManager.sh
[root@loaclhost bin]# sh setWLSEnv.sh
CLASSPATH=/oracle/Middleware_1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/Middleware_1033/jdk160_18/lib/tools.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic_sp.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/weblogic.jar:/oracle/Middleware_1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/oracle/Middleware_1033/wlserver_10.3/server/lib/webservices.jar:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/oracle/Middleware_1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/Middleware_1033/wlserver_10.3/server/bin:/oracle/Middleware_1033/modules/org.apache.ant_1.7.1/bin:/oracle/Middleware_1033/jdk160_18/jre/bin:/oracle/Middleware_1033/jdk160_18/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
Your environment has been set.
[root@loaclhost bin]# java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.utils.CertGen
at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
at __gcj_personality_v0 (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
at __libc_start_main (/lib64/tls/libc-2.3.4.so)
at JvRegisterClasses (/oracle/Middleware_1033/wlserver_10.3/server/bin/java.version=1.4.2)
You have new mail in /var/spool/mail/root
But i use check the command " echo CLASSPATH " it's doesn't show any thing.
How to resolve this problem to execute the mentioned command "java weblogic.utils.CertGen welcome1 vinoth_MS1_cert vinoth_MS1_key domestic vinoth"
Regards,
S.Vinoth Babu
Edited by: Vinoth Babu on Dec 13, 2010 5:14 AMYou have to 'source' the call the setWLSEnv, for example,
source ./setWLSEnv.sh or the short version
. ./setWLSEnv.sh -
Hi
I am new to java and am trying to deploy a code on linux red hat 4.I have 5 files namely:
1.ClassReportGenerator.java
2.ClassScheduler.java
3.manifest
4.rep_compile.sh
5.repgen.sh
first the rep_compile.sh is used to generate the class files for the two java files and then it creates a jar file
rep.jar file.
rep_compile.sh
export PATH=/app/oradshome/jdk/bin:/app/oradshome:$PATH
echo "Compiling ClassReportGenerator.java ClassScheduler.java"
javac -verbose ClassReportGenerator.java ClassScheduler.java
echo "Creating jar from manifest file"
jar -cvfm rep.jar manifest ClassReportGenerator.class ClassScheduler.class
echo "Executing repgen.sh"
sh repgen.sh
At the end it calls the repgen.sh file
which sets some path and class paths and then takes some user inputs and fires the command
paths being set---
export CLASSPATH=/dit/reports/rep.jar:$CLASSPATH
export PATH=/app/oradshome/jdk/bin:/app/oracle/OraHome/bin:$PATH
command being fired
java -jar rep.jar $userid $password $schema $scheduleafter firing the last lines it throws the error :
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: rep.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/dit/reports/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at JvRegisterClasses (/dit/reports/java.version=1.4.2)
Plaese help me in this regard.The Code is running fine on IBM AIX.
Thanks & Regards
Ankit GoelWrong forum
-
Exception in thread main java.lang.NoClassDefFoundError when Install 11g 2
Exception in thread main java.lang.NoClassDefFoundError when Install Oracle database 11g release 2 on redhat linux enterprise 5
My Java Version is 1.6.0_13-b03, can anyone help?
Error Message as follows:
准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2009-12-01_11-25-58AM. 请稍候...[oracle@redhatlinux ~]$ Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)I am getting the same exception. I tried using xhost_+ but it's still not working for me.
Again, here is the error that I'm receiving when trying to install Oracle 11g:
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)
Thanks in advance for the help!!
Also, this is all very new to me. So if you could provide a step-by-step answer I would really appreciate it.
Edited by: user9014123 on Jan 25, 2010 1:40 PM -
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
when i change memory arguments , i am getting the following error and the server is not starting.
JAVA Memory arguments: Xms512m -Xmx512m -XX:MaxPermSize=128m
WLS Start Mode=Production
CLASSPATH=:/home3/bea9/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home3/bea9/jdk150_07/lib/tools.jar:/home3/bea9/weblogic92/server/lib/weblogic_sp.jar:/home3/bea9/weblogic92/server/lib/weblogic.jar:/home3/bea9/weblogic92/server/lib/webservices.jar::/home3/bea9/weblogic92/common/eval/pointbase/lib/pbclient51.jar:/home3/bea9/weblogic92/server/lib/xqrl.jar::
PATH=/home3/bea9/weblogic92/server/bin:/home3/bea9/jdk150_07/jre/bin:/home3/bea9/jdk150_07/bin:/home3/bea8/weblogic81/server/bin:/weblogic/bea/scripts:/home3/bea8/jdk142_05/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/langtools/bin:/opt/imake/bin:/opt/perf/bin:/opt/ignite/bin:/opt/OV/bin/OpC:/opt/hpnp//bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/sec_mgmt/spc/bin:/opt/graphics/common/bin:/opt/OV/bin:/opt/ssh/bin:/opt/aCC/bin:/opt/sec_mgmt/bastille/bin:.:/u01/app/oracle/product/8.1.7/bin
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
starting weblogic with Java version:
java version "1.5.0.07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.07-_20_mar_2007_05_31)
Java HotSpot(TM) Server VM (build 1.5.0.07 jinteg:03.20.07-04:39 PA2.0 (aCC_AP), mixed mode)
Starting WLS with line:
/home3/bea9/jdk150_07/bin/java -server Xms512m -Xmx512m -XX:MaxPermSize=128m -da -Dplatform.home=/home3/bea9/weblogic92 -Dwls.home=/home3/bea9/weblogic92/server -Dwli.home=/home3/bea9/weblogic92/integration -Dweblogic.management.discover=false -Dweblogic.management.server=http://localhost:9001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home3/bea9/patch_weblogic922/profiles/default/sysext_manifest_classpath -Dweblogic.Name=TEST -Djava.security.policy=/home3/bea9/weblogic92/server/lib/weblogic.policy weblogic.Server
Exception in thread "main" java.lang.NoClassDefFoundError: Xms512m
$
The server is starting fine with domain variables without changing the memory arguments in the managed server startup scripts.
But when i changed the mem args in the server startup script , this is the error and server is not starting.
the domain env is set and weblogic server version 9.2
Here is the arguments i changed in the startup script, the server is starting with out these arguments with domain set memory arguments. Any body please help
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"
export USER_MEM_ARGSI think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m"
Maybe you are looking for
-
How to restrict duplication of BOL number for ASN of same Supplier
Hi All, Is there any way to restrict using same BOL(Bill of Ladding) number in for the 2nd ASN of same supplier. BAdi for validation framework will only make it Mandatory and does not restrict using same BOL number 2nd time. Regards, CK
-
My new 30GB iPod doesn't show in iTunes so I am unable to put any music on it. Also, the updater does not recognize it either, but my computer recognizes it as a removable drive so it knows it's there. This problem does not only persist in my new iPo
-
Upgrade from iPhone 4 to Nokia Lumia 928; texts from iPhone contacts no longer coming through
I just upgraded from an iPhone 4 to a Nokia Lumina 928 last week. I was forced to make the upgrade because my iPhone's charging port broke (due to normal wear and tear), and could no longer be charged. I was unable to acquire a replacement prior to
-
external drive keeps falling off, how do i know which one it is?
-
How to display medium text for 0FISCPER in Filter area.
Hi, I am having a problem with display of filter values in bex query. In filter section, there is 0FISCPER used. after running query I can see only "JAN" value. But user wants to see "January 2007" in place of JAN. though 0FISCPER info object has tex