JDBC 2.0 Class libraries
Does that standard installation of BEA Web logic server version 6.1 contain the JDBC 2.0 classes. If not I assume that I have to download and install the class libraries in addition to the web server installation.
Stuart Amos wrote:
Does that standard installation of BEA Web logic server version 6.1 contain the JDBC 2.0 classes. If not I assume that I have to download and install the class libraries in addition to the web server installation.What JDBC 2.0 classes are you refering to? The definition of JDBC 2.0 exists as classes in the java.sql
package, which is part of any recent JVM. JDBC drivers may or may not implement all the JDBC 2.0
methods. Our driver for Oracle or for MS SQLServer do not implement many or any of the JDBC 2.0
methods. The thin Oracle driver we ship does most of them, as does the sybase driver. All our internal
drivers, used for accessing pool connections, are all JDBC 2.0-capable.
Joe
Similar Messages
-
Cannot obtain an appropriate JDBC type for class char.
The above error while deploying...The full error is below. The only datatypes used are: integer, timestamp,string, decimal and date (so no char). Can anybody help?
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application sap.com/SAPAS12013.. Reason: Cannot obtain an appropriate JDBC type for class char. To store the field with this class in the database, the class must implement java.io.Serializable.; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Cannot obtain an appropriate JDBC type for class char. To store the field with this class in the database, the class must implement java.io.Serializable.
at com.sap.engine.services.ejb.deploy.tools.sql.Mappings.getDefaultSqlTypeForJavaType(Mappings.java:131)
at com.sap.engine.services.ejb.deploy.xml.CMPParser.fillCmpFieldInfo(CMPParser.java:89)
at com.sap.engine.services.ejb.deploy.xml.CMPParser.parseCMPFields(CMPParser.java:644)
at com.sap.engine.services.ejb.deploy.xml.CMPParser.parseFields(CMPParser.java:121)
at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.parseXml(EJBJarParser.java:173)
at com.sap.engine.services.ejb.deploy.xml.EJBJarParser.parseXml(EJBJarParser.java:97)
at com.sap.engine.services.ejb.deploy.DeployAdmin.parseSingleJar(DeployAdmin.java:296)
at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:246)
at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2118)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:594)
at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)
at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3033)
at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:463)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)Hi Ashley,
And yet, apparently you have a cmp-field with type <b>char</b> in one of your CMP entity beans. This is not supported. Please refer to the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/13/dbb2b66146934a9662918755038ea1/frameset.htm">Object/Relational Mapping Rules</a> and especially to the first bullet under the table.
Hope that helps!
Vladimir -
hello
right now i wanna use JTAPI (as shiped by java.sun.com) class libraries with JBuilder/JDeveloper how can i add them in IDE, it only accepts .jar files as a class libraries but i got simple class files(as shipped with java.sun.com)
kindly help me in this regardI would recommend using the jar utility instead of zip. Actually, I would say DO NOT use zip. The jar utility comes with the JDK and the usage is this:
Usage: jar {ctxu}[vfm0M] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c create new archive
-t list table of contents for archive
-x extract named (or all) files from archive
-u update existing archive
-v generate verbose output on standard output
-f specify archive file name
-m include manifest information from specified manifest file
-0 store only; use no ZIP compression
-M do not create a manifest file for the entries
-i generate index information for the specified jar files
-C change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .I use it like this:
jar -cvf filename.jar folderName
Good luck! -
We have our class libraries on a shared server we access via Samba (and ssh for command line). Sadly, several features seem to fail in both Flex Builder and Flash Builder/Gumbo with this setup. For example, we no longer get automatic syntax and error checking. Anyone familiar with this issue and able to suggest a solution? Thanks!
Be sure you are not mixing -compat=4 and -compat=5 compilations in the same program.
The -compat=4 mode is for compiling very old source code that was written for C++ 4.2 (1996). It provides almost none of the features of standard C++. Don't use this mode unless there is a specific reason why you must.
Do not use -I or -L options that point into /usr/include, /usr/lib, or into the compiler installation area. These directories are always searched by default in the correct order. If you specify them explicitly, you force an incorrect search order.
Be sure you have the minimum patch level of SUNWlibC required by the compiler. The patch includes libCstd, libCrun, libC, libiostream, libdemangle, and some other files. The minimum patch level comes with the compiler, and the Sun Studio installer will install the patch on the system where the compiler is installed.
You also need the patch on every system that runs the compiler, and every system that runs programs created by the compiler.
It is always safe to use the latest SUNWlibC patch. You can download the current patch from
http://developers.sun.com/sunstudio/downloads/patches/index.jsp
But the link failure in your case is due to a missing function from your own code, since it involves a function parameter of a programmer-defined type. I suspect you have either
1. failed to define (provide a body for) the function,
2. declared it inconsistently as inline and not inline,
3. defined the function in a namespace different from the one where it was declared, or
4. failed to link the object file where the function is defined. -
Hi,
Was trying use third party(Caucho) jdbc type 4 driver for MySQL. I updated the
jdbcdrivers.xml to include the details for the new driver. However, when using
Config wizard, how (or where) do i provide a JDBC url helper class, so that the
config wizard can connect the database using the jdbc url?
Amit.Amit wrote:
Joe Weinstein <[email protected]> wrote:
Actually, all you need to do is get the driver you want into the weblogic
classpath, and then tell the pool the class name you want for the driver,
and give it the URL and properties it needs.
Joe
Hi. In order to implement a custom default, you would need to have
a URLHelper class, as the other entries refer. I don't know that we
offer a way to create Defaults, but you should be able to create a pool
from the console by specifically typing in the class name and the URL.
Is that not true?
Joe
>
>
Thanks Joe,
But i wanted to see the jdbc url changed in the config wizard screen (as pointed
in the pic). Caucho jdbc driver has url like "jdbc:mysql-caucho://hostname:port/database".
Others mysql drivers have url like "jdbc:mysql://hostname:port/database. So where
exactly could i tweek that property, since all that is editable is hostname, port,
and database? -
Cannot create JDBC driver of class '' for connect URL 'null'
HI,
Can any one help why i am getting the below error:
Cannot create JDBC driver of class '' for connect URL 'null'
The Error Stack Trace is:
Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
at java.sql.DriverManager.getDriver(Unknown Source)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:505)
at com.crystaldecisions.reports.queryengine.Connection.t4(SourceFile:3020)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.a(SourceFile:697)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.a(SourceFile:309)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.long(SourceFile:264)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1150)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:660)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:166)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:528)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:526)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:524)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:423)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:351)
at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(SourceFile:878)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPromptDatabaseLogOnInfos(SourceFile:815)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPromptDatabaseLogOnInfos(SourceFile:338)
at com.businessobjects.report.web.a.e.a(SourceFile:174)
at com.businessobjects.report.web.a.e.a(SourceFile:97)
at com.businessobjects.report.web.a.e.a(SourceFile:343)
at com.businessobjects.report.web.a.t.a(SourceFile:1726)
at com.businessobjects.report.web.event.bw.broadcast(SourceFile:97)
at com.businessobjects.report.web.event.am.a(SourceFile:53)
at com.businessobjects.report.web.a.t.if(SourceFile:2104)
at com.businessobjects.report.web.e.a(SourceFile:300)
at com.businessobjects.report.web.e.a(SourceFile:202)
at com.businessobjects.report.web.e.a(SourceFile:135)
at com.crystaldecisions.report.web.ServerControl.a(SourceFile:607)
at com.crystaldecisions.report.web.ServerControl.processHttpRequest(SourceFile:342)
at org.apache.jsp.CrystalReport_jsp._jspService(CrystalReport_jsp.java:205)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
at java.sql.DriverManager.getDriver(Unknown Source)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1786)
at com.crystaldecisions.reports.queryengine.Connection.
Thanks
PenchalHI Shailendra,
I think your expecting code. The Code is as follows. and also for few reports i am getting Unexpected Database Error help me in this also
if(reportName != null && !"".equals(reportName) && reportSource==null){
//Initializing report
ReportClientDocument boReportClientDocument = new ReportClientDocument();
boReportClientDocument.open(reportName, 0);
Fields<IParameterField> parameterFields = boReportClientDocument.getDataDefController().getDataDefinition().getParameterFields();
System.out.println("Param Fields Size:"+parameterFields.size());
if (parameterFields.size() > 0) {
ParameterFieldController paramController = boReportClientDocument.getDataDefController().getParameterFieldController();
for (int i = 0; i < parameterFields.size(); i++) {
String paramName = parameterFields.getField(i).getName().trim();
System.out.println(" - "+paramName);
if(request.getParameter(paramName) != null) {
paramController.setCurrentValue("", paramName, request.getParameter(paramName));
System.out.println(paramName+":"+request.getParameter(paramName));
}else {
System.out.println("Param is Null:"+paramName+":"+request.getParameter(paramName));
paramController.setCurrentValue("", paramName, "");
reportSource = boReportClientDocument.getReportSource();
//session.setAttribute("ReportSource", reportSource);
boReportClientDocument.close();
CrystalReportViewer crystalReportViewer = new CrystalReportViewer();
crystalReportViewer.setName(reportName);
crystalReportViewer.setOwnPage(true);
crystalReportViewer.setBestFitPage(true);
crystalReportViewer.setToolPanelWidth(0);
crystalReportViewer.setHasToggleParameterPanelButton(false);
crystalReportViewer.setHasToggleGroupTreeButton(false);
crystalReportViewer.setReportSource(reportSource);
crystalReportViewer.setEnableDrillDown(false);
crystalReportViewer.processHttpRequest(request, response,getServletConfig().getServletContext(),null);
Thanks
Penchal -
Tomcat 6.0.18, Cannot create JDBC driver of class '' for connect URL 'null'
hi,
I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/db" auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
username="xxx"
password="xxx"
maxActive="20"
maxIdle="10"
poolPreparedStatements="true" />
</GlobalNamingResources>TOMCAT_HOME/conf/context.xml
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>
</Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>
</Context>web.xml of my application
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/db</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
[Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
and all the solutions from
[Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
Please advice, what's going wrong?hi,
I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/db" auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
username="xxx"
password="xxx"
maxActive="20"
maxIdle="10"
poolPreparedStatements="true" />
</GlobalNamingResources>TOMCAT_HOME/conf/context.xml
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>
</Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>
</Context>web.xml of my application
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/db</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
[Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
and all the solutions from
[Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
Please advice, what's going wrong? -
All,
Has anybody used any Forte Class Libraries. What do they provide and
how do you rate them.
We are a Forte greenfield site are looking for some Class Libraries to
kickstart our development.
TIA
Joe
The views stated are personal and do not necessarily reflect those of
Saudi International Bank
Joe Gill Voice: +44 (0) 171 259 3185
Saudi International Bank Fax: +44 (0) 171 259 6060
London SW1X 7XS
Work Email: [email protected]From: "Fred Scholldorf +1 (516) 434-6230" <[email protected]>
No parser/lexer that I know of, but I know what
you should try to wrapper if you did want a
great Lexer/Parser package.
I would go for T. Parr's PCCTS. (www.oncus.com/pccts.html)Good tip, but there is a minor typo in the URL you've provided.
It should be "www.ocnus.com/pccts.html".
Michael Brennan
Programmer/Analyst
Amgen Inc. -
Javax class libraries in VJ++ 6.0
Hello,
I'm using VJ++ 6.0: it does not recognise the javax class libraries, among others. I've installed version 1.4.2_04 of the SDK, which contains all the new class libraries. There is a directory containing the old class libraries, c:\winnt\java\packages. But each time I open VJ++, it goes to these old class libraries. So a project that uses javax won't compile. However: if I compile from the command prompt, it works fine. I want to use VJ++ though, as it's easier to use for writing code. Is there any way I can update VJ++ to take from the new class libraries? There's an option in Project/prjExample Properties, in the ClassPath tab, which allows me to extend the project ClassPath. This only seems to take zip files though - and all of the 1.4.2 is contained in jar files. Could there be somewhere else where this can be done?
Please help!no, you cant simply combine different classpaths/jvs/compilers.
J++ uses an Microsoft-Compiler and a Microsoft-JVM so theres no chance at all to get this working. (However there is an external swing-package for 1.1-class jvms but it is outdated and not recommended at all).
Have you ever tried JBuilderX or other modern IDEs. Most are free for non-commercial use and are much more standard-compliant and comfortable that J++.
J++ isnt even support by microsoft since a long time, so switch so something new you are sitting on a dead end!
lg Clemens -
Does anyoen know where I can get just the Java Class Libraries in a .zip format but using .java files and not .class files?
Do you mean the source code for JDK?
This you can get from
http://wwws.sun.com/software/java2/download.html -
Class Libraries and Code used to Access Google Distance Matrix API
Hey Everyone....! I want to use Google Distance Matrix API with my C# application, which gets two co-ordinates(Latitude/Longitude) and pass them to API. Also to receive the results from API and construct and output class to interpret JSON objects.
Can anyone please tell me about class libraries and code used for above purpose.
LongbowHello,
If you want to use the Google Distance Matrix API, i suggest that you could post code sample demo to this api forum:
https://developers.google.com/maps/support/
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Unable to load oracle.jdbc.driver.OracleDriver class
i want to connect my java application with oracle database but i m getting an error -"class not found exception oracle.jdbc.driver.OracleDriver " which is written in Class.forName() to register the driver for DriverManager.
plz help me..This is an old class, not included with the JDK anymore. It was made obsolete by
DataSource which is a connection pool and not a single connection. -
JNDI-Tomcat 5.5.17, Cannot create JDBC driver of class '' for connect URL '
I wrote a jsp program using JNDI to get connected to MySql DB, but i got the error " Cannot load JDBC driver class 'com.mysql.jdbc.Driver' " while running the program.
I'm using NetBean5.5 which has bundled TomCat5.5.17.
I've refered to many tutorials and websites, but i still can't solve it, here's my configuration and codes:
Imported mysql-connector-java-5.0.5-bin into lib directory.
context.xml:
<Context path="/WebApplication1">
<Resource name="jdbc/jsp" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/jsp">
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:3306/jsp</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>malaysia</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>
</Context>
i included the following in Web.xml:
<resource-ref>
<res-ref-name>jdbc/jsp</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
My JSP Code:
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/jsp");
Connection conn = ds.getConnection();
Thanks~~~~I think mysql jdbc library should add to the class library path of your project.
Hope this helps. -
BC4J class libraries installation problem
Hi,
I've created CMD entity bean with JDeveloper 3.2 and want to deploy it to Oracle 8i(8.1.7) server. The problem is it stopp loading classes to server after a while.
Could the cause of this be the size of java pool size? i've set it to 64 MB and even increase other SGA memory part.
Thanx in advance.
/HoaYou will need to make sure that all of the following parameters in your init.ora file are pretty large to deploy EJBs and BC4J runtime libraries to 8.1.7:
java_pool_size
large_pool_size
shared_pool_size
I would make them as large as you possibly can. Here's what I have in my init.ora file:
shared_pool_size = 72428800
java_pool_size = 60971520
large_pool_size = 100000000
This is an 8.1.7 instance running on a Sun E450 with tons of disk space and memory, so my numbers may not work for your environment. I just took whatever was there by default and bumped it up by a lot.
But I got errors during deployment which indicated what the problem was. If you are not getting errors, your problem could be something else. But try setting all three of the above and see if this helps.
You might check the Oracle8i 8.1.7 online docs to see if they have any recommendations in the Enterprise Java Beans Developer's Guide. -
Dynamic url and jdbc for entity class
Hi all,...
I want to create a data aware program by using netbeans 6.0.
So that open a contextual menu in projects section, and simply add a new 'Master/Detail Sample Form'.
The IDE than ask me about the connection (jdbc driver, url etc) and table name I will use in the form.
It's work as expected.
But, the jdbc configuration can't be changed anymore, it's fixedly saved in persistence.xml.
That's the problem. I want to make an application that can connect to differences database (with same structure), so that my program can use oracle, mysql or others as user wish (The user should fill the jdbc connection property whenever the program executed).
How's the solution? should I back to primitive jdbc connection by using 'Statement'?
Thanks in advanceJNDI is a naming service used when you are deployed (typically) in a J2EE container such as Tomcat or JBoss. Your application is desktop right now, but you mention that you want to deploy it on your intranet? My guess is that you mean right now your database is on your machine, and you are connecting to that via localhost, and that the application will remain a desktop one.
Where you put the database should not be an issue. If you can see the machine on your network, you should be able to connect with JDBC. Simply substitute the IP or host name where the database resides. I did a quick look at Hibernate's documentation, and it appears you can configure the data sources used for their flavor of JPA dynamically.
There is an example of how to programatically create an Entity Manager in Sec 2.2 of this page http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html_single/#setup-configuration.
- Saish
Maybe you are looking for
-
While searching the internet last night my Macbook pro froze up and would not respond to anything. I restarted the computer and now the computer will not ecen start up. It will go to the gray screen with the apple sign. It is there working for 10 sec
-
Question about Load Average in the AWR report
Hi, I've some database in 11.2 RAC on AIX. I was analyzing the root causes of eviction. Looking AWR Report before the reboot I see: DB1 Host CPU (CPUs: 6 Cores: 3 Sockets: ) ~~~~~~~~ Load Average Begin End %User
-
Hello everyone, I've got the task to programmatically import data to a moss web by add publishing pages to the pages-library with enabled moderation and major/minor-versioning. This is not really difficult but the main issue is to set the values for
-
ITunes crashes everytime I start it
Hi, I just got an iPod nano and downloaded and installed iTunes. That went quite fine. However, whenever I try to start iTunes it crashes on me (with the standard WinXP crash dialogue box asking me whether to send the error report or not). I haven't
-
SAP PM or MM Which will be better
Hello Everyone. I m Yash From Guj. I had done B.E.(I.T.) And workign in IT industry as a Software engg. I want to do SAP ,My programming level is not so good so in Technical I choose either BI/ Basis.. But i heard in BI does not have a lot opening an