JDBC20.JAR ?
Hai,
Where I can able to download JDBC20.JAR. Currently, I am using JAVAWEBSER2.0.
Java Web Server says " ResultSet.previous()" method not found.
I got some information from Java people, that include JDBC20.JAR in your classpath then it will work. But I can't able to find JDBC20.JAR ( i.e. JDBC 2.0 Driver). in JavaWebServer.
Where I can found JDBC20.JAR ? If I put that in the ClassPath then JAVAWEBSER 2.0 considers that jar file and works fine ?
Is it possible ?
Help me
Thanks
Hi S,
http://forum.java.sun.com ==== > the link
Distributed Computing
Jini[tm] Network Technology
The Brazil Project
Java Technology & XML
JavaServer Web Development Kit
JDBC[tm] =============================>>> here it is
Enterprise JavaBeans[tm]
JavaServer Pages[tm] ===========================>>> here we're
JavaMail[tm]
Similar Messages
-
Master documentation around jar
Is there a master document out there that contains a map of what .class files are in what .jar files that are in the Netweaver Developer Studio/JDT plugins folder?
I am having a difficult time resolving NoClassDefFoundError exceptions in my code. It would be helpful to know what .jar files to include as part of my project build path BEFORE runtime.
This code segment:
Connection conn = null;
Context ctx = null;
try
ctx = new InitialContext(env);
Object obj = (Object)ctx.lookup("jdbc/SAPJ2EDB");
yields the following exception:
=====================
com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name jdbc/SAPJ2EDB, cannot resolve object reference. [Root exception is com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot lookup ManageConnectionFactory "SAPJ2EDB". Cannot deserialize object: java.lang.NoClassDefFoundError: javax/resource/spi/ResourceAdapter.
=====================
My questions are:
1) Am I looking up the datasource correctly?
2) What .jar file contains the ResourceAdapter.class file? NoClassDefFoundError exceptions make me nervous.
Thanks in Advance,
JCHi Jason, Narinder,
Actually, sapjra.rar is not the right answer to the 2nd question. javax.resource.spi.ResourceAdapter is part of the standard J2EE connector architecture and is contained in connector.jar (...\plugins\com.sap.tc.ap\comp\SAP-JEE\DCs\sap.com\j2eeca\_comp\gen\default\public\default\lib\java). As for the 1st question - yes, you're doing the lookup correctly.
> It would be helpful to know what .jar files to include
> as part of my project build path BEFORE runtime.
Well, the minimum required are sapj2eeclient.jar, exception.jar, and logging.jar. Further libs may be required depending on what you're trying to do in your project. E.g. in your case you'd also need at least jdbc20.jar and connector.jar.
Hope that helps!
Vladimir -
Dev Workplace install failing on "import java dump"
Trying to install the developer NW workplace(2004s) with maxdb(7.60) on windows XP pro (32 bits).
I am using The following SAP dvd's: 51031374_dev_ws_04s,
51031391_2004s_kernel7_lin_win and 51031410_maxdb_760.
Installation is failing while importing the java dump (step 21).
The relevant error is:
SEVERE: DB Error during import of BC_SL_ACTIVE_PARTS
Feb 21, 2006 4:08:55 PM com.sap.inst.jload.Jload printSQLException
SEVERE: Message: The object of type java.sql.Date with the value
'2005-10-06 15:00:00.0' assigned to host variable 5 is not normalized. It
must not contain time components in the time zone running the virtual
machine.
Feb 21, 2006 4:08:55 PM com.sap.inst.jload.Jload printSQLException
SEVERE: SQLState: SAP06
Feb 21, 2006 4:08:55 PM com.sap.inst.jload.Jload printSQLException
SEVERE: ErrorCode: 1001124
I aslo tried upgrading maxdb to 7.60-21 (from the default -9) but that did not help.
It seem like the dump is trying to import an improperly formatted timestamp inside a date field in maxdb (or something of that sort)
I was thinkign of tryimg to fix the dump, but it's a 800MB binary dump so i guess that's out.
Anyhow, anybody as a clue of what's going on ?? (ie: db setting or something).
Thank you.Hello folks,
Today I also tried to install SAP Netweaver 7.0 SR3 Developer Workplace on Windows Vista. But Installation process has stop at phace 20 ( Import Java dump) line. Even I already changed the timezone according to some of yours advice, but still the problem is same. I tried it 2nd time. I uninstalled MaxDb and uninstall SAP NW and restart system and resinstall it.
Here is log view for reference:
INFO 2008-03-25 01:42:43.963
Execution of the command "C:\j2sdk1.4.2_09\bin\java.exe -classpath "C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/launcher.jar" -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sql.connect.OpenSQLConnectInfo "C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/lib/iaik_jce.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/exception.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/logging.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/tc_sec_secstorefs.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/opensqlsta.jar;C:/Program Files/sapinst_instdir/NW04S/SYSTEM/DEVWP/MAXDB/install/sharedlib/jdbc20.jar" create_dr jdbc/pool/NW4 com.sap.dbtech.jdbc.DriverSapDB jdbc:sapdb://Obaid-PC/SNW?timeout=0&spaceoption=true&unicode=true SAPNW4DB XXXXXX NW4
Obaid-PC/sapmnt/NW4/SYS/global/security/data/SecStore.properties
Obaid-PC/sapmnt/NW4/SYS/global/security/data/SecStore.key" finished with return code 0. Output: Driver successfully created
INFO 2008-03-25 01:42:44.494
Execute step requestJavaDumpInStepPhase of component |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Jload|ind|ind|ind|ind|9|0
INFO 2008-03-25 01:42:44.991
Execute step exitStepIfParallelABAPImport of component |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_JExecute step exitStepIfParallelABAPImport of component |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_J
Please help me what could be other reason, how can i resolve this issue. I need to install it.
thanks
Obaid. -
Migration EP 6.0 SP2 to NW04 stops in Phase 3 of 12
The only error I can see is in the sapinst.log...
Execution of the command "/usr/java/bin/java '-classpath' '/usr/sap/NWD/JC01/j2e
e/classes12.jar:.:./lib/MigrationSP2toSP7.jar:./lib/configuration.jar:./lib/util
.jar:./lib/offlineconfiguration.jar:./lib/exception.jar:./lib/logging.jar:./lib/
iq-lib.jar:./lib/tc_sec_secstorefs.jar:./lib/opensqlsta.jar:./lib/jdbc20.jar:./l
ib/sapxmltoolkit.jar:../jdbc/base.jar:../jdbc/base.jar:../jdbc/sqlserver.jar:../
jdbc/util.jar:../cluster/server0/bin/ext/antlr/antlr.jar:../cluster/server0/bin/
ext/jdbdictionary/jddi.jar:/usr/sap/NWD/global/security/lib/engine/iaik_jce_expo
rt.jar:/usr/sap/NWD/global/security/lib/engine/iaik_jce.jar:../deploying/lib/iai
k_jce.jar:../deploying/lib/iaik_jce_export.jar' '-DSAPSECFILE=/usr/sap/NWD/globa
l/security/data/SecStore.properties' '-DSAPSYSTEMNAME=NWD' 'com.sap.portal.cross
topics.migration.ume.db.UmeContentExport'" finished with return code 1. Output:
ERROR - com.sap.sql.log.OpenSQLException: Could not load class oracle.jdbc.Oracl
eDriver.
ERROR - Usermanagement content export not successful
ERROR 2005-05-20 11:53:31
CJS-00301 Export database content failed. rc=1
Any thoughts???
Thank
KenHi,
I'd suggest to go over note number 836768 (section II), which is a very helpful one, and I'm sure will solve your problem, as it looks like you did not accomplish all the pre migration steps.
https://notescsn.wdf.sap.corp/~form/handler?_APP=01100107900000000342&_EVENT=DISPL_TXT&_NNUM=0000836768
Regards,
Eran. -
NoClassDefFoundError- HttpServlet
I have deployed my application and am now trying to access it from the
browser
but get this error message in the kjs console.
error: Exception: SERVLET-execution_failed: Error in executing
servlet mainservlet: java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
Exception Stack Trace:
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
I do have my application classpath fine. Here it is from kregedit-
c:\iplanet\ias6\pointbase\network\lib\pbnetwork35GA.jar;c:\iplanet\ias6\pointbase\client\lib\pbclient35GA.jar;
c:\iplanet\ias6\ias\usr\java\lib\tools.jar;c:\iplanet\ias6\ias\usr\java\jre\lib\rt.jar;c:\iplanet\ias6\ias\classes\java\activation.jar;
c:\iplanet\ias6\ias\classes\java\jms.jar;c:\iplanet\ias6\ias\classes\java\servlet.jar;c:\iplanet\ias6\ias\classes\java\mail.jar;
c:\iplanet\ias6\ias\classes\java\xml.jar;c:\iplanet\ias6\ias\lib\java\jdbc20.jar;c:\iplanet\ias6\ias\lib\java\javax.jar;
c:\iplanet\ias6\ias\lib\java\iascli.jar;c:\iplanet\ias6\ias\lib\java\kfcjdk11.jar;c:\iplanet\ias6\ias\lib\java;
c:\iplanet\ias6\ias\lib\classes.zip;c:\iplanet\ias6\ias\lib\java\ldapjdk.jar;c:\iplanet\ias6\ias\APPS;c:\iplanet\ias6\ias\lib\java\ktjdk11.jar;
c:\iplanet\ias6\ias\lib\java\kadmin.jar;c:\iplanet\ias6\ias\classes\java\tomcat\jasper.jar;c:\iplanet\ias6\ias\classes\java\jaxp\jaxp.jar;
c:\iplanet\ias6\ias\classes\java\jaxp\parser.jar;c:\iplanet\ias6\ias\STARTUPCLASS\startup.jar
Any suggestions? Thanks,
- DilipHi,
Please check the environment classpath. Also please check if the application is deployed correctly.
Regards
Raj
Rajesh Kuppili wrote:
I have deployed my application and am now trying to access it from the
browser
but get this error message in the kjs console.
error: Exception: SERVLET-execution_failed: Error in executing
servlet mainservlet: java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
Exception Stack Trace:
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
I do have my application classpath fine. Here it is from kregedit-
c:\iplanet\ias6\pointbase\network\lib\pbnetwork35GA.jar;c:\iplanet\ias6\pointbase\client\lib\pbclient35GA.jar;
c:\iplanet\ias6\ias\usr\java\lib\tools.jar;c:\iplanet\ias6\ias\usr\java\jre\lib\rt.jar;c:\iplanet\ias6\ias\classes\java\activation.jar;
c:\iplanet\ias6\ias\classes\java\jms.jar;c:\iplanet\ias6\ias\classes\java\servlet.jar;c:\iplanet\ias6\ias\classes\java\mail.jar;
c:\iplanet\ias6\ias\classes\java\xml.jar;c:\iplanet\ias6\ias\lib\java\jdbc20.jar;c:\iplanet\ias6\ias\lib\java\javax.jar;
c:\iplanet\ias6\ias\lib\java\iascli.jar;c:\iplanet\ias6\ias\lib\java\kfcjdk11.jar;c:\iplanet\ias6\ias\lib\java;
c:\iplanet\ias6\ias\lib\classes.zip;c:\iplanet\ias6\ias\lib\java\ldapjdk.jar;c:\iplanet\ias6\ias\APPS;c:\iplanet\ias6\ias\lib\java\ktjdk11.jar;
c:\iplanet\ias6\ias\lib\java\kadmin.jar;c:\iplanet\ias6\ias\classes\java\tomcat\jasper.jar;c:\iplanet\ias6\ias\classes\java\jaxp\jaxp.jar;
c:\iplanet\ias6\ias\classes\java\jaxp\parser.jar;c:\iplanet\ias6\ias\STARTUPCLASS\startup.jar
Any suggestions? Thanks,
- Dilip -
Hi
I am using from main() method to access jdbc.
Lookup is successful but I got the following error after that
My Code Snippet
Properties jndiCtxProp = new java.util.Properties();
jndiCtxProp.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl" );
jndiCtxProp.put(Context.PROVIDER_URL, "host:port");
jndiCtxProp.put(Context.SECURITY_PRINCIPAL, "login");
jndiCtxProp.put(Context.SECURITY_CREDENTIALS, "password");
Context initCtx = new InitialContext(jndiCtxProp);
DataSource dataSource =
(DataSource) initCtx.lookup("jdbc/FLIGHTDATA");
System.out.println("nFLIGHTDATA lookup successn"); //no problem upto this
conn = dataSource.getConnection();
I have used the following JAR's
logging.jar
sapj2eeclient.jar
exception.jar
jdbc20.jar
jta.jar
connector.jar
opensql.jar
opensqlapi.jar
opensqlcore.jar
sqljapi.jar
tc_sec_secstorefs.jar
Exception chain is
com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Could not instantiate class com.sap.sql.connect.OpenSQLDataSourceImpl.
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
at com.ibm.training.carrier.dbload.JDBCLoader.getConnect(JDBCLoader.java:63)
at com.ibm.training.carrier.dbload.JDBCLoader.doLoad(JDBCLoader.java:29)
Thanks
AnandaHi anand,
Is it not throwing u any error after u give catch statement also?
<b>try()
coding for DB
catch(Exception e)
wdComponentAPI.getMessageManager.raiseException("Exception :" +e);
}</b>
Even this din work?
http://help.sap.com/saphelp_erp2005/helpdata/en/de/7d77f8714b4ef080f2219d7d968008/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/70/a19cc472e72c4481172909938578fc/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/91/ccbf560ecc4e2fb99b09a5e7bce95e/frameset.htm
Hope this helps u,
Regards,
Nagarajan. -
hi ,
I am using the below file to convert my csv file to sql commands. I am currently trying to update the contents of the stationary csv. So i replace the existing stationary csv with the new stationary csv, then run the make-sql.sh which creates an oracle compatable sql script all.sql....now my problem is that this all.sql is not getting updated right. i.e. when i compare the csv file and the all.sql there are fields that hold different data...pls let me know what cld be causing this....
make-sql.sh
#!/bin/sh
GX_ROOTDIR=/apps/iasdev06/ias6/ias
JAVA_HOME=/apps/iasdev06/ias6/ias/usr/java
RMI_IIOP_HOME=${GX_ROOTDIR}/orbtools
PATH=${JAVA_HOME}/bin:$PATH
CLASSPATH=$GX_ROOTDIR/classes/java/ktjdk11.jar:$GX_ROOTDIR/classes/java/kadmin.jar:$JAVA_HOME/lib/tools.jar
CLASSPATH=$GX_ROOTDIR/classes/java/ldapjdk.jar:$GX_ROOTDIR/classes/java/SWING.JAR:$GX_ROOTDIR/ias/APPS:$GX_ROOTDIR/APPS:$JAVA_HOME/jre/lib/rt.jar:$CLASSPATH
CLASSPATH=$GX_ROOTDIR/classes/java/jdbc20.jar:$GX_ROOTDIR/classes/java/javax.jar:$GX_ROOTDIR/classes/java/kfcjdk11.jar:$GX_ROOTDIR/classes/java:$JAVA_HOME/lib/classes.zip:$CLASSPATH
CLASSPATH=$GX_ROOTDIR/classes/java/servlet.jar:$CLASSPATH
PKG=com.dupont.refrigerants.distributorlocator
cd ../..
SOURCE=`pwd`
GENERATE_SQL=$JAVA_HOME/bin/java\ -classpath\ ${SOURCE}/build/lib/classes:${CLASSPATH}\ -Djava.compiler=NONE\ ${PKG}.DistributorDBABeanImpl\$GenerateInsertFromCSV
cat < ${SOURCE}/buildscripts/datasource/prolog.sql > all.sql
${GENERATE_SQL} ${SOURCE}/buildscripts/datasource/stationary.csv 1 US | sort | uniq >> all.sql
${GENERATE_SQL} ${SOURCE}/buildscripts/datasource/canada.csv 1 CA | sort | uniq >> all.sql
${GENERATE_SQL} ${SOURCE}/buildscripts/datasource/mobile.csv 2 US | sort | uniq >> all.sqlHi,
What you are doing here is, generating some data with prolog.sql and then, your main logic to csv to sql is in the Java program GenerateInsertFromCSV.java .
So, you need to find out the logic of that code. The shell script is not doing anything apart from calling the Java code.
Have a deep look into the same.
Regards -
SAP EP5 SP5 Java web app problem
Hi
Recently I developed a Java web app for a Portal client. The client is on EP5 SP5 with ITS and LDAP servers (a 3 server architecture). I then used the deployment tool to create the necessary ear file and then successfully deployed it to the SAP J2EE Engine. I then navigated to the following url:
http://<portal_server>:8100/<web_app>/welcome.jsp
However I am having trouble with the following:
1) the jsp pages are not being rendered properly. in fact welcome.jsp does not have any jsp tags at all but I am still getting a compiling exception. as soon as I change the extension to .html the page is displayed fine. issue: why am i not able to view the jsp pages. error: com.inqmy.services.servlets_jsp.jsp.CompilingException ID 17013
2) the web app I have developed utilises the sapjco functionality to connect to the relevant R3 system. in my web app directory structure I have included the necessary sapjco.jar in the WEB-INF/lib directory but get the attached jco error. (I shouldnt need to set the classpath since the sapjaco.jar file must get picked up from WEB-INF/lib directory). Error: At times I get a NoClassDefFoundError stopping at the line which requires the sapjco.jar file (where it uses JCo.Pool class) and at other times I get the "could not load middleware layer".
I have tried numerous things to fix it but in vain. Any thoughts around how I could go about resolving the issues will be greatly appreciated.
Willing to provide screenshots if required.
Cheers
AnkitHi Ravi
I used the SAP J2EE Engine Deploy Tool to create the war and ear archives as well as deploy the ear archive. As I used this tool I included the required jar files inclusing the sapjco.jar inside WEB-INF\lib of the web archive (WAR). I tested this in a tomcat environment before deploying it to the portal environment.
1) The screendump is as below:
Internal Server Error 500!
com.inqmy.services.servlets_jsp.server.jsp.CompilingException: ID17013: Error in compiling : java.io.IOException: CreateProcess: javac -encoding UTF8 -nowarn C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\work\jsp_welcome1092865716140.java -classpath ".;.\system-lib\boot.jar;.\system-lib\jaas.jar;;.;.\additional-lib\jnet.jar;.\additional-lib\jdbc20.jar;.\services\iiop\iiop.jar;.\services\servlet_jsp\servlet_jsp.jar;.\services\p4\p4.jar;.\additional-lib\mail.jar;.\services\dbpool\dbpool.jar;.\additional-lib\connector.jar;.\additional-lib\activation.jar;.\services\deploy\deploy.jar;.\additional-lib\jta.jar;.\services\ts\ts.jar;.\additional-lib\jsse.jar;.\additional-lib\servlet.jar;.\additional-lib\ejb11.jar;.\additional-lib\jms.jar;.\services\ejb\ejb.jar;;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\activation.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\inqmyxml.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\jcoapi.jar;C:\SAP_J2EEngine6.20\alone\D
at com.inqmy.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:296)
at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.getClassName(JSPServlet.java:333)
at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.service(JSPServlet.java:207)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
As advised by you I included the inqmyxml.jar file in the WEB-INF\lib folder for this application. But it doesnt seem to have made a difference.
2) for the second issue where sapjco.jar isnt found the error is as seen below. At line 42 in R3.java I make a JCO call -
pool = JCO.getClientPoolManager().getPool(POOL_NAME);
Error Dump below:
java.lang.NoClassDefFoundError
at R3.(R3.java:42)
at ChangePassword.doPost(ChangePassword.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
I would have expected EP5 to be able to find the appropriate jar files. Especially since it has its own library of jar files to work with. I was reading some J2EE Engine doco and came across two files library.txt and reference.txt. Do I need to maintain these files as I deploy my application?
Your thoughts will be appreciated.
Cheers -
Hi ( again i know ... lol )
I go through the forum to understant the classpath problem but some points remain unclear to me ...
I have an application , my main class is in a directory and i use in this main other classes that are contained in sub-directory parcours.
So to compile and execute the only solution that i have found is to type :
javac -classpath .;./parcours *.java
java -classpath .;./parcours Mainclass
Is there another solution , for exemple to specify directly in the source of my main class the path of the parcours classes ( some kinf of import or somethin ... ) or maybe somethin else ...
Thx.Have you understood correctly the concept of packages? Read the Java Tutorial - http://java.sun.com/docs/books/tutorial/java/interpack/packages.html .
But if you can run your app with so few parameters given, you are lucky.
Real world apps usually have real big classpath strings - I use the Sun iPlanet 6.5 product and the classpath I must set in the iPlanet Registry is :
C:\jar\xerces.jar;C:\iPlanet\ias6\ias\APPS\soap-services;C:\oracle\ora90\jdbc\lib\classes12.zip;C:\iPlanet\ias6\ias\classes\java\javax.jar;C:\iPlanet\ias6\ias\usr\java\lib\tools.jar;C:\iPlanet\ias6\ias\classes\java\activation.jar;C:\iPlanet\ias6\ias\classes\java\servlet.jar;C:\iPlanet\ias6\ias\classes\java\mail.jar;C:\iPlanet\ias6\ias\classes\java\jdbc20.jar;C:\iPlanet\ias6\ias\classes\java\iascli.jar;C:\iPlanet\ias6\ias\classes\java\kfcjdk11.jar;C:\iPlanet\ias6\ias\classes\java;C:\iPlanet\ias6\ias\classes\java\ldapjdk.jar;C:\iPlanet\ias6\ias\classes\java\ldapfit.jar;C:\iPlanet\ias6\ias\classes\java\ldapsp.jar;C:\iPlanet\ias6\ias\APPS;C:\iPlanet\ias6\ias\classes\java\ktjdk11.jar;C:\iPlanet\ias6\ias\classes\java\kadmin.jar;C:\iPlanet\ias6\ias\classes\java\tomcat\jasper.jar;C:\iPlanet\ias6\ias\classes\java\jaxp\jaxp.jar;C:\iPlanet\ias6\ias\classes\java\jaxp\parser.jar;C:\iPlanet\ias6\ias\STARTUPCLASS\startup.jar;C:\iPlanet\ias6\ias\classes\java\jts.jar;C:\iPlanet\ias6\ias\classes\java\jms.jar;C:\iPlanet\ias6\ias\classes\java\jmq.jar;C:\iPlanet\ias6\pointbase\network\lib\pbnetwork35GA.jar;C:\iPlanet\ias6\pointbase\client\lib\pbclient35GA.jar;C:\iPlanet\ias6\ias\classes\java\log4j-1.2.7.jar;C:\iPlanet\ias6\ias\classes\java\commons-logging.jar;C:\iPlanet\ias6\ias\classes\java\framework-1.1.0.jar;C:\iPlanet\ias6\ias\classes\java\tomcat\jasper_properties.jar;C:\iPlanet\ias6\ias\classes\java\jts_properties.jar;C:\iPlanet\ias6\ias\classes\java\kadmin_properties.jar;C:\iPlanet\ias6\ias\classes\java\kfcjdk11_properties.jar -
Hi guys
We are having a problem with the migration to WLCS 3.2 SP2 / WLS 5.1 SP10.
We are moving from WLCS 3.2 and WLS SP6. Our CMP beans generate errors when
the container tries to update them. They deploy without error though.
See below for the stack trace
We use the recommended weblogic driver for our Oracle 8.1.7.0 database. WL
runs on w2k, and Oracle on Solaris 7.
Extract from set-environment:
SET DB_CLASSPATH=
SET PATH=%PATH%;%WEBLOGIC_HOME%\bin\oci815_8;%WLCS_ORACLE_HOME%\bin
SET
SQLPATH=C:\WebLogicCommerceServer3.2\db\oracle816;C:\WebLogicCommerceServer3
.2\db\oracle816\event;
Extract from weblogic.properties:
weblogic.jdbc.connectionPool.commercePool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
I made a few experiments, and I noticed that generating the CMP classes
(with EJBC) with the old WebLogic_RDBMS.jar (from WLS SP6) is working fine.
Here is what I mean : ejbc uses the library
c:\weblogic\lib\persistence\WebLogic_RDBMS.jar And this library has changed
with SP10. However since that change and after rebuilding our jars, all CMP
entity beans fail to update.
If I just replace that WebLogic_RDBMS.jar with the previous one (from SP6),
and without changing anything else, our CMP beans work fine. I did not
change any driver or xml deployment descriptor.
One of the generated files in the jar (for our bean
VisibilityPSWebLogic_CMP_RDBMS.class) differs, and that seems to be the
cause of the problem.
I jadded that class and here is a difference I notice:
OLD, ejbc ran with SP6 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId =
(BigDecimal)resultset.getObject(5);
NEW, ejbc ran with SP10 WebLogic_RDBMS.jar : visibilitybean.targetCompanyId
= resultset.getBigDecimal(5, 35);
Similar differences for the SETbigdecimal.
Dunno if that will help, but I'm attaching the 2 jar files with explicit
names.
Damn that was long, I hope someone will read it... Thanks for any help on
this, see stack trace attached below
Nicolas Lejeune
Stack trace:
mer. oct. 03 12:16:22 CEST 2001:<I> <EJB JAR deployment
C:/WebLogicCommerceServer3.2/lib/foundation.jar> Exception in
non-transactional EJB invoke:
java.rmi.UnexpectedException: Unexpected exception in
com.b2boost.visibility.VisibilityBean.getVisibilityId():
java.sql.SQLException: ORA-01722: invalid number
at weblogic.db.oci.OciCursor.getCDAException(OciCursor.java:230)
at weblogic.jdbcbase.oci.Statement.executeUpdate(Statement.java:980)
at
weblogic.jdbc20.pool.PreparedStatement.executeUpdate(PreparedStatement.java:
47)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.update(VisibilityPSWeb
Logic_CMP_RDBMS.java:446)
at
com.b2boost.visibility.VisibilityPSWebLogic_CMP_RDBMS.store(VisibilityPSWebL
ogic_CMP_RDBMS.java:376)
at
weblogic.ejb.internal.EntityEJBContext.store(EntityEJBContext.java:192)
at
weblogic.ejb.internal.EntityEJBContext.beforeCompletion(EntityEJBContext.jav
a:227)
at
weblogic.ejb.internal.StatefulEJBObject.postInvokeNoTx(StatefulEJBObject.jav
a:355)
at
weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:865)
at
com.b2boost.visibility.VisibilityBeanEOImpl.getVisibilityId(VisibilityBeanEO
Impl.java:198)
at
com.b2boost.visibility.pipeline.LoadFirstVisibilityRequestPC.process(LoadFir
stVisibilityRequestPC.java:83)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImpl.process(Pipelin
eExecutorImpl.java:193)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl.process(P
ipelineExecutorImplEOImpl.java:56)
at
com.beasys.commerce.foundation.pipeline.PipelineExecutorImplEOImpl_ServiceSt
ub.process(PipelineExecutorImplEOImpl_ServiceStub.java:154)
at
com.beasys.commerce.webflow.PipelineProcessor.callPipeline(PipelineProcessor
.java:170)
at
com.beasys.commerce.webflow.PipelineProcessor.process(PipelineProcessor.java
:102)
at
com.beasys.commerce.webflow.WebflowAdvisor.handleTarget(WebflowAdvisor.java:
409)
at
com.beasys.commerce.webflow.WebflowAdvisor.processTarget(WebflowAdvisor.java
:156)
at
com.b2boost.framework.B2boostPortalDestinationDeterminer.determineDestinatio
n(B2boostPortalDestinationDeterminer.java:208)
at
com.beasys.commerce.foundation.flow.FlowManager.service(FlowManager.java:438
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:922)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:886)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:392)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:274)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
[Visibility_generated_with_SP6_weblogic_rdbms_jar.jar]
[Visibility_generated_with_SP10_weblogic_rdbms_jar.jar]You are using WebLogic jDriver for Oracle which needs exact version of OCI API, that comes with the Oracle client installation. Ensure that you have installed the right Oracle client version. And updated the PATH properly.
I notice that you have
bin/oci815_8
oracle816
Thsi looks liek the inconsistency in your environment.
What you need to do is
1. find oci817_8 and place that in the PATH.
2. install oracle 817 and use that client and set the ORACLE_HOME environment variable and the PATH properly.
Try this and see if it helps.
BTW - WLS 5.1 is EOL -
Note - the original post was only to w.d.i.environment.
Here's a transcript of a run that failed.
help...
The messed up thing is that it WORKS on my machine, but not on the other
machines. I've gone as far as reinstalling onto another machine,
mapping the same folders to the same drive letters, and copying the
resource files -- in effect, creating an identical setup -- and still
have problems.
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> Read global properties
n:\weblogic.va\weblogic.properties
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> Read per-server
properties n:\weblogic.va\myserver\weblogic.properties
Fri Jan 12 13:36:15 PST 2001:<I> <Logging> FileLogger initialized.
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> ************ WebLogic
Server (5.1.0 Service Pack 6 09/20/2000 21:03:19 #84511) 'myserver' from
directory path n:/weblogic.va
Fri Jan 12 13:36:15 PST 2001:<I> <WebLogicServer> ************ (c) 1995,
1996, 1997, 1998 WebLogic, Inc., (c) 1999 BEA Systems, Inc.
Fri Jan 12 13:36:15 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.swapIntervalSecs', current value: '10'
Fri Jan 12 13:36:15 PST 2001:<I> <Config> Property name:
'weblogic.jms.ConnectionConsumer', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.enforceClientCert', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.login.readTimeoutMillis', current value: '5000'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.bindAddr', current value: 'localhost'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.propertiesFile', current value:
'n:/weblogic.va\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadCheckSecs', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.authRealmName', current value: 'WebLogic Server'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.SSLHandler.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupFailureIsFatal', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.http.keepAliveSecs', current value: '15'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.classpath', current value:
'N:/bobcat/weblogic/servletclasses'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientPingSecs', current value: '45'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultWebApp', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreDir', current value: 'session_db'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.perServerPropertiesFile', current value:
'n:/weblogic.va\myserver\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.maxQueueExpansionSize', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.queue', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.invalidationIntervalSecs', current value: '60'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistence', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.user.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.dgc.callSystemGC', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.maxTransactedDurableSubscribers', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.weight', current value: '100'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionPoolArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.disableGuest', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStorePool', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.URLAclFile', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.percentSocketReaders', current value: '33'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.zac.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.TXDataSource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.DNSName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.ejb.deploy', current value:
'n:/bobcat/weblogic/serverclasses/bobcat.jar,
n:/bobcat/weblogic/serverclasses/bobcat_admin.jar,
n:/bobcat/weblogic/serverclasses/bobcat_adunit.jar,
n:/bobcat/weblogic/serverclasses/bobcat_community.jar,
n:/bobcat/weblogic/serverclasses/bobcat_customer.jar,
n:/bobcat/weblogic/serverclasses/bobcat_preview.jar,
n:/bobcat/weblogic/serverclasses/bobcat_memberaccountprofile.jar,
n:/bobcat/weblogic/serverclasses/bobcat_affiliate.jar'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.workspace.showUserKeysOnly', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.allow', current value:
'[weblogic.allow.read.weblogic.workspace=everyone
weblogic.allow.write.weblogic.workspace=everyone
weblogic.allow.reserve.weblogic.jdbc.connectionPool.AdminA=guest
weblogic.allow.execute.weblogic.servlet=everyone ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.listenPort', current value: '80'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.allow', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModify', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.io.fileSystem', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.enableLogFile', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.domain', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.debug', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.clustering.enable', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.shutdownArgs', current value:
'[weblogic.system.shutdownArgs.VisualAge= ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.startupClass', current value:
'[weblogic.rmi.startupClass.RMI
Registry=weblogic.rmi.internal.RegistryImpl ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.keepAlive.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.jdbc.connTimeoutSecs', current value: '120'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.name', current value: 'myserver'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.sessionIDLength', current value: '52'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.helpPageURL', current value:
'd:\ibmvjava2\ide\project_resources\WebLogic Server/docs/adminhelp/'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastPort', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.key.server', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.rmi.startupArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.topicSessionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.home', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.documentRoot', current value:
'n:/bobcat/weblogic/public_html/'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.servlet.reloadOnModifyRecursive', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.errorPage', current value:
'[weblogic.httpd.errorPage.500=/shared/siteerror.jsp
weblogic.httpd.errorPage.404=/shared/notfound.jsp ]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority3', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.administrativePort', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority2', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.startupClass', current value:
'[weblogic.system.startupClass.cacheResetListener=com.fl.listener.CacheResetListener
weblogic.system.startupClass.cachePreload=com.fl.util.lookup.CodeTable
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonPrivGroup', current value: 'nobody'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastTTL', current value: '1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonBlockingExecuteThreadCount', current value: '2'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.home', current value: 'n:/weblogic.va'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.https.keepAliveSecs', current value: '60'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jndi.transportableObjectFactories', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificateCacheSize', current value: '3'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunneling.clientTimeoutSecs', current value: '40'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.DataSource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.maxLogFileSizeKBytes', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.nonPrivUser', current value: 'nobody'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.zac.publishRoot', current value: 'exports'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.clientRootCA', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.defaultLoadAlgorithm', current value: 'round-robin'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.administrator.phone', current value: '(None)'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.connectionPool', current value:
'[weblogic.jdbc.connectionPool.AdminA=url=jdbc20:oracle:thin:@172.16.3.10:1521:ADMINDBT,driver=oracle.jdbc.driver.OracleDriver,loginDelaySecs=0,initialCapacity=4,maxCapacity=80,capacityIncrement=2,allowShrinking=true,shrinkPeriodMins=15,refreshMinutes=10,testTable=dual,props=user=devbc1;password=devbc1;
weblogic.jdbc.connectionPool.SearchA=url=jdbc20:oracle:thin:@10.1.2.41:1521:SRCHDBP,driver=oracle.jdbc.driver.OracleDriver,loginDelaySecs=0,initialCapacity=3,maxCapacity=80,capacityIncrement=2,allowShrinking=true,shrinkPeriodMins=15,refreshMinutes=10,testTable=dual,props=user=devbc1;password=devbc1;
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.debug', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jdbc.logFileName', current value:
'n:/weblogic.va\myserver\jdbc.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.dnsName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.requireAuthentication', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.multicastAddress', current value: '224.0.10.10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.defaultSecureProtocol', current value: 't3s'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.auth.enable', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.executeThreadCount', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.comment', current value: 'Weblogic Server
Session Tracking Cookie'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.tableNamePrefix', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.shutdownClass', current value:
'[weblogic.system.shutdownClass.VisualAge=weblogic.integration.visualage.server.Server
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultServlet', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.name', current value: 'mycluster'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.defaultProtocol', current value: 't3'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.postTimeoutSecs', current value: '30'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.group', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.tunnelingenabled', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.realm.cache.caseSensitive', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.server', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.mimeType', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationBeginTime', current value: ''
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.webApp', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.minPasswordLen', current value: '4'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionFactoryArgs', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.persistentStoreType', current value: 'file'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cacheEntries', current value: '1024'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.queueCompactionPeriod', current value: '10'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.certificate.authority', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.resource.MailSession', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.maxAgeSecs', current value: '-1'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.login.readTimeoutMillisSSL', current value: '25000'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.cluster.enable', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.SSL.ciphersuites', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.indexFiles', current value:
'index.html,index.htm,index.jsp'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.password', current value: '[weblogic.password.system=********
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.enableLogFile', current value: 'true'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.enableReverseDNSLookups', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.indexDirectories', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.maxLogFileSize', current value: '0'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.logFile', current value:
'n:/weblogic.va\myserver\weblogic.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.timeoutSecs', current value: '3600'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationType', current value: 'size'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logFileFormat', current value: 'common'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.perClusterPropertiesFile', current value:
'n:/weblogic.va\myserver\weblogic.properties'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.security.key.export.lifespan', current value: '500'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.CORBA.connectionPool', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'java.system.property', current value: '[]'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logFileName', current value:
'n:/weblogic.va\myserver\access.log'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.defaultMimeType', current value: 'text/plain'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.debug.httpd.servlet', current value: 'false'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.connectionFactoryName', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.system.SSLListenPort', current value: '81'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.logRotationPeriodMins', current value: '1440'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.URLResource', current value: 'null'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.httpd.session.cookie.name', current value: 'WebLogicSession'
Fri Jan 12 13:36:16 PST 2001:<I> <Config> Property name:
'weblogic.jms.quiescent', current value: 'false'
Fri Jan 12 13:36:17 PST 2001:<I> <Config> Property name:
'weblogic.httpd.register', current value:
'[weblogic.httpd.register.ADMIN=com.fl.control.handler.AdminServlet
weblogic.httpd.register.site/surveyreward=com.fl.control.handler.site.rwds.SurveyRewardServlet
weblogic.httpd.register.Admin/secure=com.fl.control.handler.SecureAdminServlet
weblogic.httpd.register.123qpwoeiruty321=com.fl.control.handler.FileServlet
weblogic.httpd.register.affiliatelanding=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.site/Ecard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.client/secure/AcctRegLogin=com.fl.control.handler.client.regloginServlet
weblogic.httpd.register.ADMIN/SECURE/DEACTMEM=com.fl.control.handler.admin.clientaccount.MemberDeactivationServlet
weblogic.httpd.register.admin/secure/maintainpromotion=com.fl.control.handler.admin.marketing.MaintainPromotionServlet
weblogic.httpd.register.site/ecard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.site/member/forgotemail=com.fl.control.handler.member.LegacyServlet
weblogic.httpd.register.admin/Profile=com.fl.control.handler.admin.adminaccount.AdminProfileServlet
weblogic.httpd.register.Site/test=com.fl.control.handler.preview.TestServlet
weblogic.httpd.register.site/referfriend=com.fl.control.handler.site.community.ReferAFriendServlet
weblogic.httpd.register.servletimages=weblogic.servlet.internal.InternalImageServlet
weblogic.httpd.register.site/ShipDetail=com.fl.control.handler.site.rdctr.ShipDetailServlet
weblogic.httpd.register.index.jsp=com.fl.control.handler.SiteServlet
weblogic.httpd.register.AFFILIATE=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.site/referfriendconf=com.fl.control.handler.site.community.ReferAFriendConfServlet
weblogic.httpd.register.Site/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.site/search=com.fl.control.handler.site.search.SearchServlet
weblogic.httpd.register.admin/MemberProfile=com.fl.control.handler.admin.adminaccount.AdminMemberProfileServlet
weblogic.httpd.register.site/preview/mediaurl=com.fl.control.handler.preview.MediaURLServlet
weblogic.httpd.register.affiliate/Reg2=com.fl.control.handler.affiliate.reg.AffiliateContactInfoServlet
weblogic.httpd.register.affiliate/Reg1=com.fl.control.handler.affiliate.reg.AffiliateInfoServlet
weblogic.httpd.register.site/PrizeDetail=com.fl.control.handler.site.rdctr.PrizeDetailServlet
weblogic.httpd.register.site/RevAdd=com.fl.control.handler.site.revprev.RevAddServlet
weblogic.httpd.register.affiliate=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.admin/find=com.fl.control.handler.admin.adminaccount.AdminFindServlet
weblogic.httpd.register.SITE/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.admin/secure/maintainsurveySave=com.fl.control.handler.admin.marketing.MaintainSurveySaveServlet
weblogic.httpd.register.admin/secure/login=com.fl.control.handler.admin.adminaccount.AdminLoginServlet
weblogic.httpd.register.Client/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.client/secure/acctreglogin=com.fl.control.handler.client.regloginServlet
weblogic.httpd.register.SITE/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/campaign=com.fl.control.handler.site.community.CampaignServlet
weblogic.httpd.register.*.swf=weblogic.servlet.FileServlet
weblogic.httpd.register.admin/secure/MaintainSurvey=com.fl.control.handler.admin.marketing.MaintainSurveyServlet
weblogic.httpd.register.client=com.fl.control.handler.ClientServlet
weblogic.httpd.register.Firstlook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.affiliate/Login=com.fl.control.handler.affiliate.LoginServlet
weblogic.httpd.register.admin/secure/reviews=com.fl.control.handler.admin.review.ReviewsServlet
weblogic.httpd.register.Client=com.fl.control.handler.ClientServlet
weblogic.httpd.register.linkshare=com.fl.control.handler.affiliate.LinkShareServlet
weblogic.httpd.register.site/prizehome=com.fl.control.handler.site.rdctr.PrizeHomeServlet
weblogic.httpd.register.affiliate/login=com.fl.control.handler.affiliate.LoginServlet
weblogic.httpd.register.client/secure/BidMgrLogin=com.fl.control.handler.client.loginServlet
weblogic.httpd.register.site/prizedetail=com.fl.control.handler.site.rdctr.PrizeDetailServlet
weblogic.httpd.register.site/Survey=com.fl.control.handler.site.community.SurveyServlet
weblogic.httpd.register.GetNewuserID.cfm=com.fl.control.handler.affiliate.ColdFusionLinksRegServlet
weblogic.httpd.register.SITE/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.site/logincampaign=com.fl.control.handler.site.community.LoginCampaign
weblogic.httpd.register.site/getpreviews=com.fl.control.handler.preview.GetPreviewsServlet
weblogic.httpd.register.admin/secure/deactadm=com.fl.control.handler.admin.adminaccount.AdminDeactivationServlet
weblogic.httpd.register.SITE/test=com.fl.control.handler.preview.TestServlet
weblogic.httpd.register.affiliate/register=com.fl.control.handler.affiliate.reg.AffiliateAgreementServlet
weblogic.httpd.register.CLIENT/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/PrizeHome=com.fl.control.handler.site.rdctr.PrizeHomeServlet
weblogic.httpd.register.site/orderconfirm=com.fl.control.handler.site.rdctr.OrderConfirmServlet
weblogic.httpd.register.firstlook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.AFFILIATE/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.site/SearchResults=com.fl.control.handler.site.search.SearchResultsServlet
weblogic.httpd.register.site/ReferFriend=com.fl.control.handler.site.community.ReferAFriendServlet
weblogic.httpd.register.site/eCard=com.fl.control.handler.site.community.ECardServlet
weblogic.httpd.register.AffiliateLanding=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.site/OrderConfirm=com.fl.control.handler.site.rdctr.OrderConfirmServlet
weblogic.httpd.register.affiliate/secure/search=com.fl.control.handler.affiliate.maint.AffiliateSearchServlet
weblogic.httpd.register.admin/secure/maintainpromotionsave=com.fl.control.handler.admin.marketing.MaintainPromotionSaveServlet
weblogic.httpd.register.site/registercampaign=com.fl.control.handler.site.community.registercampaign
weblogic.httpd.register.admin/secure=com.fl.control.handler.SecureAdminServlet
weblogic.httpd.register.site/PARTNERS=com.fl.control.handler.site.redirector.partners
weblogic.httpd.register.admin/memberparams=com.fl.control.handler.admin.sysparam.MaintainMemberParamServlet
weblogic.httpd.register.site/partners=com.fl.control.handler.site.redirector.partners
weblogic.httpd.register.site=com.fl.control.handler.SiteServlet
weblogic.httpd.register.admin/memberprofile=com.fl.control.handler.admin.adminaccount.AdminMemberProfileServlet
weblogic.httpd.register.site/member/wishlist=com.fl.control.handler.member.WishListServlet
weblogic.httpd.register.admin/promopackage=com.fl.control.handler.admin.marketing.MaintainPromotionPackageServlet
weblogic.httpd.register.admin/secure/MaintainSponsor=com.fl.control.handler.admin.sysparam.MaintainSponsorServlet
weblogic.httpd.register.admin/secure/maintainfeaturedpreview=com.fl.control.handler.admin.preview.MaintainFeaturedPreview
weblogic.httpd.register.Site/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.FirstLook.cfm=com.fl.control.handler.affiliate.ColdFusionLinksServlet
weblogic.httpd.register.admin/Find=com.fl.control.handler.admin.adminaccount.AdminFindServlet
weblogic.httpd.register.ADMIN/SECURE/DEACTADM=com.fl.control.handler.admin.adminaccount.AdminDeactivationServlet
weblogic.httpd.register.admin/secure/MaintainPromotion=com.fl.control.handler.admin.marketing.MaintainPromotionServlet
weblogic.httpd.register.Site/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/preview=com.fl.control.handler.preview.PreviewServlet
weblogic.httpd.register.admin/secure/maintainsurvey=com.fl.control.handler.admin.marketing.MaintainSurveyServlet
weblogic.httpd.register.affiliate/secure/maintdealterms=com.fl.control.handler.affiliate.maint.DealTermsMaintainServlet
weblogic.httpd.register.Affiliate/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.client/secure=com.fl.control.handler.SecureClientServlet
weblogic.httpd.register.preview/mediaUrl=com.fl.control.handler.preview.MediaURLServlet
weblogic.httpd.register.Shared=com.fl.control.handler.SharedServlet
weblogic.httpd.register.client/secure/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/secure=com.fl.control.handler.SecureSiteServlet
weblogic.httpd.register.default.cfm=com.fl.control.handler.affiliate.LinkShareServlet
weblogic.httpd.register.Affiliate=com.fl.control.handler.AffiliateServlet
weblogic.httpd.register.site/recommendation=com.fl.control.handler.member.RecommendationServlet
weblogic.httpd.register.site/preview/chart=com.fl.control.handler.preview.ChartServlet
weblogic.httpd.register.site/RegisterCampaign=com.fl.control.handler.site.community.RegisterCampaign
weblogic.httpd.register.client/secure/acctregfm=com.fl.control.handler.client.regfmServlet
weblogic.httpd.register.affiliate/Register=com.fl.control.handler.affiliate.reg.AffiliateAgreementServlet
weblogic.httpd.register.site/addrating=com.fl.control.handler.site.rwds.AddRatingServlet
weblogic.httpd.register.client/secure/Account=com.fl.control.handler.client.acctServlet
weblogic.httpd.register.site/EnterCampaign=com.fl.control.handler.site.community.EnterCampagin
weblogic.httpd.register.admin/secure/approvepreview=com.fl.control.handler.admin.preview.ApprovePreviewServlet
weblogic.httpd.register.site/managepreview=com.fl.control.handler.preview.ManagePreviewServlet
weblogic.httpd.register.site/member/login=com.fl.control.handler.member.LoginServlet
weblogic.httpd.register.client/secure/Logout=com.fl.control.handler.client.logoutServlet
weblogic.httpd.register.AFFILIATELANDING=com.fl.control.handler.affiliate.AffiliateExtranetLanding
weblogic.httpd.register.affiliate/forgot=com.fl.control.handler.affiliate.ForgotPassServlet
weblogic.httpd.register.affiliate/secure=com.fl.control.handler.SecureAffiliateServlet
weblogic.httpd.register.affiliate/secure/MaintDealTerms=com.fl.control.handler.affiliate.maint.DealTermsMaintainServlet
weblogic.httpd.register.admin/secure/MaintainPromotionSave=com.fl.control.handler.admin.marketing.MaintainPromotionSaveServlet
weblogic.httpd.register.affiliate/Forgot=com.fl.control.handler.affiliate.ForgotPassServlet
weblogic.httpd.register.affiliate/LogOut=com.fl.control.handler.affiliate.AffLogoutServlet
weblogic.httpd.register.site/revprev=com.fl.control.handler.site.revprev.RevPrevServlet
weblogic.httpd.register.CLIENT=com.fl.control.handler.ClientServlet
weblogic.htt -
Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM
Hello Experts,
we did some changes in the previosly uploded version of IPC AP 7.0 customer user exit Jar file in eclipse.
While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
when we checked the logs in SM 53 we seen the below mentioned error:
Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
--> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
at
if required i can post the complete stack trace.
any inputs/suggestions are most welcome.
Thanks & regards,
SiddharthHi Mark,
Yesterday after Posting the thread we found the same Note ,Issue occured because of JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
Thanks for your Help also.
Regards,
Siddharth -
Application working under NetBeans but not as a *.jar file
Hello,
recently I found a little problem. I wrote application that shows all available ports in my computer. When I am running this applications under NetBeans it works with no problem - finds all available ports. Then I am building it to the *.jar file. Application is working with no problem but command:
Enumeration PortIds = CommPortIdentifier.getPortIdentifiers();
is not returning any identifiers - PortIds is empty.
Anyone knows a solution for this type of problems? ThanksHi Venkatesh,
Few questions.
1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
-Arun -
.jar file is not working properly :developed in NETBEANS
Hi Gurus,
i am using NETBEANS IDE 7.2.
i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
but when i run executable .jar file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
this is how i call the .bat file...
String filePath = "D:/pms/Libraries/portlib.bat";
try {
Process p = Runtime.getRuntime().exec(filePath);
} catch (Exception e) {
e.printStackTrace();
and below is the contents of portlib.bat file
java -jar "D:\SMS\SMS\dist\SMS.jar"
you must probably ask why i am calling a .jar file using .bat file .
reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working ,
thanks.Thanks Sir ,
You need to first test an example that works like the one in the article.
There are plenty of other examples on the web - find one you like:
http://javapapers.com/core-java/os-processes-using-java-processbuilder/
I tried this one.
try {
ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
File commands = new File("D:/SMS/SMS/Send_message.bat");
File dirOut = new File("C:/process/out.txt");
File dirErr = new File("C:/process/err.txt");
dirProcess.redirectInput(commands);
dirProcess.redirectOutput(dirOut);
dirProcess.redirectError(dirErr);
dirProcess.start();
} catch (IOException ex) {
Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
as instructed in the article i compiled both the projects at same version or sources and libraries which is 1.7
here is my version details
C:\>javac -version
javac 1.7.0_07
C:\>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
inside the NETBEANS IDE c:\process\err.txt remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
here is the error text
java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
here is /SMS/SMS
unknown source ? -
Unable to load database driver from my applet's jar file
I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
Any help is appreciated, thanks.The simplest approach is always the best. :)Abso-lutely.
Awesome, that worked perfectly. I Included the extra
jar file in the applet tag and now my applet makes
some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations.
Maybe you are looking for
-
BMC Remedy ticket generation and view its status in OIM using Web Service
Hi All, I want to Integrate and on-board Remedy system (BMC) with the Oracle Identity Manager (OIM) for my client. It has a standard way for external applications to exchange Remedy ticket data with the Remedy system. Remedy system picks up informati
-
Hi, how can i get the M item category in KKPAN, all i see is V, if i give M its not taking from the drop down, how can i fix to show up M, in KKPAN for purchased items. Thanks
-
How to send emails with photos using Photoshop Elements 12?
I did everything according to the instructions, defined e-mail address, got the code and confirmation of the adress, but still when I try to send meile in the end there is symbol that the computer is trying to perform this task, but the minutes passe
-
Flash Version 11.9.900.152 constant crashes
I have constant Adobe Flash Plugin crashes especially when I play the game Farmville on Facebook but it happens at all game sites. I have Win.7 as my O.S. and I use Mozilla Firefox 26.0 as my main web browser but this crash happens on all browsers th
-
Movement type 551 account posting in Balance sheet account
Hi Team, I got a requirement for the specifically as below. -> set the automatic account assignment for the 551/ 552 to be a balance sheet account rather than cost center or profit center.. What changes need to enter into the configuration. Note -