Run application with ANT
Hi,
i have a clean,compile,..etc. tasks but i dont know how to create a run task in ant.
how to create a run task in ant.?
Thanks
Edited by: fetishcode on Sep 30, 2008 4:50 PM
<target name="run">
<java classname="test.Main">
<arg value="-h"/>
<classpath>
<pathelement location="dist/test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
See http://ant.apache.org/manual/index.html for more information.
--olaf
Similar Messages
-
Compile AIR application with Ant (WindowedApplication could not be found)
I'm trying to compile my AIR application with Ant, using the mxmlc Ant Task. It seems to compile fine, and I get a .swf, but when I try to run it with ADL, I get the message "Class mx.core::WindowedApplication could not be found." It looks like the AIR libraries aren't being included properly.
Here's my mxmlc task:
Class mx.core::WindowedApplication could not be found.
<mxmlc
file="${MAIN_MXML}"
output="${DEPLOY_DIR}/MyApp.swf"
compatibility-version="3"
locale="en_US"
static-rsls="true"
debug="${DEBUG_FLAG}"
optimize="true"
link-report="${DEPLOY_DIR}/report.xml"
configname="air">
<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc" />
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc" />
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}" />
</library-path>
<source-path path-element="${SRC_DIR}" />
</mxmlc>
Any idea why this is happening? I've tried not including the load-config section and not including the library paths, but it's always the same result - it can't find WindowedApplication.
Thanks!Hi, Guys!
I ran into the same problem when i tried to write an ant-script to compile the asDocs for my project.
After reading shades post i added the air-config (This resolved the WindowApplication couldn't be found error, because it adds all the air libs i guess)
but lead to the problem that the flex vector-class wasn't found. As Vector is flashplayer 10.0.0 i also
used the target-player parameter (This fixed that nicely).
But now i got the problem that i get lots of this error msgs: DepartmentItemRendererClass.as(11):
Error: The private attribute may be used only on class property definitions.
I guess the problem now is that ant doesn't understand that the AS-Classes producing that errors are not used as
standalone-classes. To divide my mxml and AS-Code i import external AS-Classes to my MXML
like that <mx:Script source="ascodeClass.as" />
Is there a solution allowing me to use this pattern and still compile my asDoc with ant?
It confuses me a little, because Ant-Scripts worked to compile the project.
Thanks in advance!
Florian
My Ant-Script producing that error:
<project name="Red bull BPT 2.0: Generate ASDoc" basedir=".">
<description>
Creates the ASDoc for Red Bull BPT 2.0
</description>
<property file="FlexbuilderASDocAntTask.properties" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="cleanAndCreateASDoc"
depends="cleanASDoc, compileASDoc"
description="Cleans and creates Actionscript-Documentation"
/>
<!-- Delete the existing output folder and files and then regenerate the output folder -->
<target name="cleanASDoc">
<echo>Deleting ASDoc Directory...</echo>
<!--Delete the folder specified for the Asdoc.dir variable-->
<delete dir="${Asdoc.dir}" failOnError="false" includeEmptyDirs="true" />
<echo>Deleted ASDoc Directory</echo>
<echo>Creating ASDoc Directory...</echo>
<!--Creates the folder specified for the Asdoc.dir variable-->
<mkdir dir="${Asdoc.dir}" />
<echo>Created ASDoc Directory</echo>
</target>
<!-- Run the ASDoc executable and generate the ASDocs to the new output folder -->
<target name="compileASDoc">
<echo>ASDoc Compiling...</echo>
<exec executable="${AsDocs.executable}" failonerror="true">
<!--THIS SEEMS TO SOLVE THE WINDOWEDAPPLICATION AND FOLLOWING VECTOR ERROR -->
<arg line="-load-config ${FLEX_HOME}/frameworks/air-config.xml" />
<arg line="-target-player 10.0.0" />
<!--THIS SEEMS TO SOLVE THE WINDOWEDAPPLICATION AND FOLLOWING VECTOR ERROR -->
<!--Main title for the top of all ASDoc pages-->
<arg line="-main-title '${Main.title}'" />
<!--Prefix Title of the window-->
<arg line="-window-title '${Window.title}'" />
<!--Defines the output directory for the ASDoc-Files-->
<arg line="-output '${Asdoc.dir}'" />
<!--Footer added to each ASDoc page-->
<arg line="-footer '${Footer.text}'" />
<!--Adding the source folders the ASDoc should be created from (Start)-->
<arg line="-doc-sources '${ModuleBaseDir}/source'" />
<!--Adding the source folders the ASDoc should be created from (End)-->
<!--Adding the folders for external Libraries needed to compile the application(Start)-->
<arg line="-external-library-path '${ModuleBaseDir}/libs'" />
<!--Adding the folders for external Libraries needed to compile the application(End)-->
</exec>
<echo>ASDoc Compile Complete!</echo>
</target>
</project> -
How to run applications with options in IDEs like Netbeans
Hi, I'm new to the Netbeans IDE and I'm wondering how to run applications with options.
Normally I'd enter the following in the command line:
java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="..." TLSServer
java -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="..." TLSClient localhostProblem is, I've no idea how to do the same thing in IDE's like Netbeans and I can't any settings to add options like "-Djavax.net.ssl.keyStore=mykeystore" before running the application. Any help will be appreciated.
Message was edited by:
WolfgardRight-click the project, click properties, clicl run, and add parameters to VM Options.
-
Run application with mobile power on
how to run an application with the mobile powering on
is this avilable by j2me?Hi
how to run an application with the mobile powering on
is this avilable by j2me?Do you mean when the power is off? If this is the case, then you can't as far as I know.
Mihai -
I have a problem with define correct UID for processes which I will run on my cluster. In pmfadm have not any information about try process with user id.
Please, send me information how configure application with specific UID.
[email protected]You can start pmfadm with su:
su $USER -c "$SCRIPT $ARGS"
This will run the script under the owner. It will also allow $USER to send signals and see the tags. -
Not enough memory on startup disk to run applications with more than 200Gb free!!
I have a MacBook Pro final 2011 with 8 GB RAM and 500 GB disk with Mountain Lion OS X 10.8.5 and I'm using only 56% of my disk (over 276.5 GB). Nevertheless after some time my MAC starts to became slower until it opens a window with the message 'not enough memory on startup disk to run applications' and asking me to choose an application to stop! How can it be that 'not enough memory on startup disk' (espaço insuficiente no disco de inicialização) if I have more than 200 Gb free? Is there anything that can be done to solve that?
1. Empty Trash.
http://support.apple.com/kb/PH10677
2. Delete "Recovered Messages", if any.
Hold the option key down and click "Go" menu in the Finder menu bar.
Select "Library" from the dropdown.
Library > Mail > V2 > Mailboxes
Delete "Recovered Messages", if any.
Empty Trash. Restart.
3. Repair Disk
Steps 1 through 7
http://support.apple.com/kb/PH5836
4. Disk space / Time Machine ?/ Local Snapshots
http://support.apple.com/kb/ht4878
5. Re-index Macintosh HD
System Preferences > Spotlight > Privacy
http://support.apple.com/kb/ht2409
6. For more on this and very helpful tips:
http://pondini.org/OSX/DiskSpace.html
http://pondini.org/OSX/LionStorage.html -
Packaging AIR application with ant fails, Packaging AIR application inside IntelliJ works
Hi,
I can package AIR application (package type ad-hoc distribution) inside IntelliJ (from Build menu)
but when I try with my ant build, it encounters an error running the adt command
Is there a way to have more details on the error? At the moment, it's just a Java returned:2 error.
I've copied my ant config files below.
Any ideas anyone on where the problem could lie or how to debug it?
THANKS!
Note: I have no issue with the package debug target, be it via IntelliJ or my ant build.
Build.xml
<project name="headr" default="package-application-debug-interpreter" basedir="../">
<property file="build/build.properties" />
<property name="FLEX_HOME" value="${flexsdk.dir}" />
<taskdef resource="flexTasks.tasks" classpath="${flexsdk.dir}/ant/lib/flexTasks.jar" />
<target name="clean" description="deletes everything in build folder">
<echo message="Removing build directory contents..." />
<delete includeemptydirs="true" quiet="false">
<fileset dir="${build.dir}" />
</delete>
</target>
<target name="perform-file-copy">
<mkdir dir="${build.dir}" />
<echo message="Copy files to output dir: ${build.dir}" />
<copy file="src/HeadrApplication-app.xml" todir="${build.dir}" />
<replace file="${build.dir}/HeadrApplication-app.xml" token="[This value will be overwritten by Flash Builder in the output app.xml]" value="out/HeadrApplication.swf" />
</target>
<target name="compile" depends="clean,perform-file-copy">
<mxmlc file="src/HeadrApplication.as" output="${build.dir}/HeadrApplication.swf" locale="en_US" accessible="false" actionscript-file-encoding="UTF-8" static-rsls="true" configname="airmobile" debug="${debug}" failonerror="true" maxmemory="1024m" fork="true" swf-version="17">
<load-config filename="${flex_config}" append="true" />
</mxmlc>
</target>
<target name="pack-application" depends="compile">
<java jar="${adt.jar}" fork="true" failonerror="true">
<arg value="-package" />
<arg value="-target" />
<arg value="${target}" />
<arg value="-provisioning-profile" />
<arg value="${provisioning-profile}" />
<arg value="-storetype" />
<arg value="pkcs12" />
<arg value="-keystore" />
<arg value="${keystore}" />
<arg value="-storepass" />
<arg value="${storepass}" />
<arg value="-extdir" />
<arg value="ane/" />
<arg value="${build.dir}/HeadrApplication.ipa" />
<arg value="${build.dir}/HeadrApplication-app.xml" />
<arg value="${build.dir}/HeadrApplication.swf" />
<arg value="-C" />
<arg value="src/" />
<arg value="Default.png" />
<arg value="-C" />
<arg value="src/" />
<arg value="[email protected]" />
<arg value="-C" />
<arg value="src/" />
<arg value="icons/." />
<arg value="data/." />
</java>
</target>
<target name="pack-application-debug" depends="compile">
<java jar="${adt.jar}" fork="true" failonerror="true">
<arg value="-package" />
<arg value="-target" />
<arg value="${target}" />
<arg value="-connect" />
<arg value="-provisioning-profile" />
<arg value="${provisioning-profile}" />
<arg value="-storetype" />
<arg value="pkcs12" />
<arg value="-keystore" />
<arg value="${keystore}" />
<arg value="-storepass" />
<arg value="${storepass}" />
<arg value="-extdir" />
<arg value="ane/" />
<arg value="${build.dir}/HeadrApplication.ipa" />
<arg value="${build.dir}/HeadrApplication-app.xml" />
<arg value="${build.dir}/HeadrApplication.swf" />
<arg value="-C" />
<arg value="src/" />
<arg value="Default.png" />
<arg value="-C" />
<arg value="src/" />
<arg value="[email protected]" />
<arg value="-C" />
<arg value="src/" />
<arg value="icons/." />
<arg value="data/." />
</java>
</target>
<target name="package-application-debug-interpreter">
<antcall target="pack-application-debug">
<param name="debug" value="true" />
<param name="flex_config" value="build/app-config-device-debug.xml" />
<param name="target" value="ipa-debug-interpreter" />
<param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
<param name="keystore" value="ios_profiles/dev_certificate.p12" />
<param name="storepass" value="xxxx" />
</antcall>
</target>
<target name="package-application-debug">
<antcall target="pack-application-debug">
<param name="debug" value="true" />
<param name="flex_config" value="build/app-config-device-debug.xml" />
<param name="target" value="ipa-debug" />
<param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
<param name="keystore" value="ios_profiles/dev_certificate.p12" />
<param name="storepass" value="xxxx" />
</antcall>
</target>
<target name="package-application-adhoc">
<antcall target="pack-application">
<param name="debug" value="false" />
<param name="flex_config" value="build/app-config-device.xml" />
<param name="target" value="ipa-ad-hoc" />
<param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
<param name="keystore" value="ios_profiles/dev_certificate.p12" />
<param name="storepass" value="xxxxx" />
</antcall>
</target>
<target name="package-application-appstore">
<antcall target="pack-application">
<param name="debug" value="false" />
<param name="flex_config" value="build/app-config-device.xml" />
<param name="target" value="ipa-app-store" />
<param name="provisioning-profile" value="ios_profiles/TODO" />
<param name="keystore" value="ios_profiles/TODO" />
<param name="storepass" value="TODO" />
</antcall>
</target>
<target name="launch-application">
<exec executable="${adl.exe}">
<arg value="bin-debug/HeadrApplication-app.xml" />
<arg value="-profile mobileDevice" />
</exec>
</target>
</project>
app-config-device.xml
<?xml version="1.0"?>
<flex-config xmlns="http://www.adobe.com/2006/flex-config">
<compiler>
<include-libraries append="true">
<library>../libs/swc/robotlegs-framework-v1.5.2.swc</library>
<library>../libs/swc/greensock-as3-v11.693.swc</library>
<library>../libs/swc/GraphAPI_Mobile_1_8_1.swc</library>
<library>../libs/swc/MonsterDebuggerMobile-v3.0.2.swc</library>
<library>../libs/swc/TheMiner_en_v1_3_10.swc</library>
<library>../libs/swc/analytics-v1.1.319.swc</library>
<library>../libs/swc/assets.swc</library>
</include-libraries>
<source-path append="true">
<path-element>../../corelib/src/</path-element>
<path-element>../../corelib/test/</path-element>
<path-element>../../corelib/libs/src/</path-element>
<path-element>../libs/src/</path-element>
</source-path>
<external-library-path append="true">
<!-- path-element>../ane/com.headr.HeadrNativeExtensions.ane</path-element -->
<path-element>../ane/com.milkmangames.extensions.GoViral.ane</path-element>
</external-library-path>
<debug>false</debug>
<define>
<name>CONFIG::debugging</name>
<value>false</value>
</define>
<define>
<name>CONFIG::simulator</name>
<value>false</value>
</define>
</compiler>
</flex-config>You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-buil der-flex.html
Update your ANT script with these, and try again. -
Running Jar with Ant Can't Find Class-Path
Hi there,,
I was wondering if someone could give a tip about this problem I am having.
I have a folder (in windows xp) where are all my .jars (dependencies of my application).
In NetBeans I can add in Libraries (Project's Properties) all .jars necessary, however when compiling and trying to run using Ant in a console window, the classpath cant be reached, I mean the JVM does not find the jar files indicated in the xml file:
The folder with all necessary jars is:
C:/Projetos/Web/libs
And my XML file is:
project.libs.dir = C:/Projetos/Web/libs
<java jar="${dist.dir}/${project.name}.jar" fork="true">
<classpath>
<fileset dir="${project.libs.dir}" includes="*.jar"/>
</classpath>
</java>
Exception:
[java] java.lang.NoClassDefFoundError: org/firebirdsql/jdbc/FBSQLException
[java] at com.sikgraf.main.Main.main(Main.java:53)
[java] Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/swingx/JXTitledPanel
[java] at com.sikgraf.main.Main$1.run(Main.java:63)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[java] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
[java] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Try using the pathelement tag instead of the fileset tag.
Example I got from https://taglibrarydoc.dev.java.net/:
<classpath>
<pathelement location="${tools.lib}/tlddoc.jar"/>
<pathelement location="${tools.lib}/xml-apis.jar"/>
<pathelement location="${tools.lib}/xercesImpl.jar"/>
<pathelement location="${tools.lib}/xalan.jar"/>
</classpath> -
Uploading a file using a php script while running application with LCDS
Hi! I developping an application under Flex 2 / Java -
running on LCDS / JRun server.
I'm trying to add uploading capabilities. I'm using a php
script for the upload part.
First, I just try to put script on the app directory. Doesn't
work.
After that I set up an apache server from where I put a small
web site with my script. It's telling me that my file is
succesfully uploaded, but I can't find the file. The apache log
give me no error.
Someone can help me?Originally, I had problems w/ the file being placed in
C:/whatever.ext b/c I wasn't using relative paths.
This is the code I use:
$MAXIMUM_FILESIZE = 1024 * 1024 * 2; // 2MB
$newFileLoc = "./wherever/file.jpg"
if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE) {
move_uploaded_file($_FILES['Filedata']['tmp_name'],
"./temporary/".$_FILES['Filedata']['name']);
rename( "./temporary/".$_FILES['Filedata']['name'],
$newFileLoc );
chmod( $newFileLoc, 0777 );
Modified from this article by Adobe:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=17_Networking_and_communications_173_6.html -
Problems running Application with Web Service Client
Im having some problems maybe related to some classpath details?
I am running a Web Service another computer which works fine. I have also made an application using Sun ONE Studio 1 consisting of a Web Service Client etc. and GUI which uses the Client to get data from the Web Service. This works fine as long as I use Sun ONE Studio to execute the application, but now I have packaged the application to a .jar file and have encountered problems:
When running the application from the .jar file I get the exception:
java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/BasicService
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at util.servicelocator.ServiceLocator.getServant(ServiceLocator.java:68)
at lagerApp.eHandelLager.jRegisterBrukerListeActionPerformed(eHandelLager.java:784)
at lagerApp.eHandelLager.access$400(eHandelLager.java:20)
at lagerApp.eHandelLager$5.actionPerformed(eHandelLager.java:277)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I have searched the forum and found simular topics which are resolved by adding some lines to the classpath.
How do I set the classpath? Do i have to use the classpath parameter from command window? How can I know which classpaths to include (libraries)..
Any help would be nice.. : )Thank you for the reply..
But im still geting the same error. I have tried to include all the libraries in JWSDP pack but still.. I have managed to narrow down the place where the error occures.. It actually happens when I try to get the WebService Client Servant which is located in the package LSC:
---> LSC.LWServiceGenClient.LWS_Impl service = new LSC.LWServiceGenClient.LWS_Impl();
LSC.LWServiceGenClient.LWSServantInterface lagerServiceServant = LSC.LWServiceGenClient.LWSServantInterface_Stub)service.getLWSServantInterfacePort();
return lagerServiceServant;
Could something be wrong with the way I package the Jar? I'm using Sun One Studio and have tried including the 5 packages the application consists of; I have tried including just the files; moving the main class to <root>.. Still same problem..
Or could there be some different fundemental thingy I have forgotten ??
thanks
Aqoi -
TP4: can not run application with ODBC-JDBC bridge
Hi,
I tried to connect to a oracle 10gR1 Database via ODBC-JDBC bridge.
Test connection in dialog "Edit Database Connection" is sucessfull.
When trying to run the application following error occures:
===========================================
08/05/09 11:48:57 SCHWERWIEGEND: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
08/05/09 11:48:57 SCHWERWIEGEND: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger logWithThrowable
SCHWERWIEGEND: J2EE JCA-07001
oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
at com.evermind.server.Application.setConfig(Application.java:538)
at com.evermind.server.Application.setConfig(Application.java:433)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
... 15 more
08/05/09 11:48:58 WARNUNG: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
java.lang.InstantiationException: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1465)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
at com.evermind.server.Application.setConfig(Application.java:538)
at com.evermind.server.Application.setConfig(Application.java:433)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
... 10 more
Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
... 15 more
09.05.2008 11:48:58 com.evermind.server.ServerMessages severe
SCHWERWIEGEND: Exception beim Initialisieren der bereitgestellten Anwendung: current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
java.lang.InstantiationException: Application: current-workspace-app is in failed state as initialization failed
at com.evermind.server.Application.setConfig(Application.java:636)
at com.evermind.server.Application.setConfig(Application.java:433)
at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2125)
at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1865)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1235)
at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:249)
at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:259)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InstantiationException: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1465)
at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:422)
at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:247)
at com.evermind.server.Application.setConfig(Application.java:538)
... 7 more
Caused by: oracle.oc4j.sql.DataSourceException: Unable to create: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:403)
at oracle.oc4j.sql.DataSourceUtils.createDataSource(DataSourceUtils.java:288)
at com.evermind.server.DataSources.createNativeDataSource(DataSources.java:153)
at com.evermind.server.DataSources.initDataSources(DataSources.java:1117)
at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1782)
at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1436)
... 10 more
Caused by: java.lang.ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver
at oracle.oc4j.sql.config.DataSourceConfigUtils.createDataSource(DataSourceConfigUtils.java:401)
... 15 more
09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger logWithThrowable
WARNUNG: J2EE JNDI-00002
09.05.2008 11:48:58 oracle.j2ee.util.AnnotatedLogger log
WARNUNG: Kein javax.jms.ConnectionFactory in null gefunden
09.05.2008 11:49:01 com.evermind.server.http.HttpMessages internalErrorWhileTryingToInstantiate
SCHWERWIEGEND: Interner Fehler ausgelöst beim Versuch, die Web-Anwendung zu instanziieren: GoodsReceipt-ViewController-webapp definiert in Website Default Web Site. Application: current-workspace-app does not exist. Error creating Web application: GoodsReceipt-ViewController-webapp
Ready message received from Oc4jNotifier.
Embedded OC4J Server startup time: 12375 ms.
=========================================
OC4J is up and running, but browser gives error message (404 Not found)
With JDBC connection this application works fine.
Here my jdev specific environment variables:
SET JOH=c:\software\Oracle_JDEV11gP4
SET JDEV_USER_DIR=c:\jdeveloper\home
SET JAVA_HOME=c:\software\Oracle_JDEV11gP4\jdk\bin
Can anybody help me?
br
PeterPeter --
Can you please describe your use case? The JDBC-ODBC bridge driver is not all that reliable. Sun considers it "transitional" and it is not supported by them.
http://java.sun.com/j2se/1.5.0/docs/guide/jdbc/bridge.html
We still include the driver in JDev primarily to allow connections to MS datasources like Excel and Access that don't have free/open-source pure JDBC drivers. Why would you use the JDBC-ODBC bridge to connect to an Oracle database?
-- Brian -
Error while running application with Tomcat 5.0
Hi,
I am trying to run my application on Tomcat 5.0. I have java environment version 1.4
I am getting the following error during the server start up :
Mar 30, 2007 3:51:03 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 30, 2007 3:51:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1047 ms
Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 30, 2007 3:51:03 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Sof
tware Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
Mar 30, 2007 3:51:04 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Mar 30, 2007 3:51:04 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Mar 30, 2007 3:51:05 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Mar 30, 2007 3:51:06 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Sof
tware Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:C:\Program
Files\Apache Sof
tware Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:C:\
Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path from URL
file:C:\Program Files
\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL fil
e:C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\servlets-exampl
es
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:C:\P
rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
Mar 30, 2007 3:51:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:C:\Progra
m Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
Mar 30, 2007 3:51:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 30, 2007 3:51:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 30, 2007 3:51:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=C:\Program Files\Apache Software
Foundat
ion\Tomcat 5.0\conf\jk2.properties
Mar 30, 2007 3:51:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4266 ms
Mar 30, 2007 3:53:07 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /Hyperceller from URL
file:C:\P
rogram Files\Apache Software Foundation\Tomcat 5.0\webapps\Hyperceller
Mar 30, 2007 3:53:08 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Mar 30, 2007 3:53:08 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Mar 30, 2007 3:53:09 PM org.apache.commons.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1656)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1551)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1580)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:251)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1361)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Sourc
e)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1029)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
2)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:327)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.
java:800)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1619)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
un(ContainerBase.java:1608)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.UnsupportedClassVersionError:
com/hyperceller/form/LoginFor
m (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:1634)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:860)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1307)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
at
org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.
java:320)
at
org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1
91)
... 46 more
Mar 30, 2007 3:53:09 PM org.apache.struts.action.ActionServlet
handleConfigExcep
tion
SEVERE: Parsing error processing resource path
java.lang.reflect.InvocationTargetException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2919)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2945)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Sourc
e)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1029)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86
2)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:277)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:701)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:327)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.
java:800)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1619)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.p
rocessChildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.r
un(ContainerBase.java:1608)
at java.lang.Thread.run(Thread.java:534)
Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnN
ull=true
Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Mar 30, 2007 3:53:44 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnN
ull=true
could anyone tell me what the problem may be???
Note: When I configure my application on the Tomcat 5.5 and java 1.5 then it runs fine. But the problem arises when I compile my code on the java 1.4 and run on the Tomcat 5.0
Thanks in advance!!I am sorry that I forgot to tell you that I am running a struts application. Struts 1.1
-
Java WSDP - run Client with Ant tool
i've created the server, deployed it
then i've created the client using ant build
then i've got generated classes using .wsdl file
but when i run client i get an error
exception in thread "main" java.lang.NoClassDefFoundError: HelloClient (wrong name: _helloclient/HelloClient)...
what should i do?we have tried to build tutorials' examples but when we type the ant build command and run. it gives errors like ....fileset doesnt support the nested <include> element..."
the i installed ant 1.5 and got the "org.apache.catalina.ant.installtask couldnt be foun..." error.
how can i solve any of these pro�blems?? -
Run application with jdbc driver for postgres 7.4
I execute my application in the following way:
java -jar myapplication.jar
but when being executed it doesn't find the connection driver creating a big error in mi application.
that I can make so that my application finds the driver when being executed?
Help meeeee please!!!!Presumably the JDBC driver is already in its own jar file. You should include a Class-Path entry referring to that jar file in the manifest of your myapplication.jar file.
-
Error when run Application with jdbc Help me please
this my code:
public void resultado() {
String ClassName = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@educacion04:1521:ora92";
Connection con;
Statement stmt;
try {
Class.forName(ClassName);
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,"ora1", "oracle");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet uprs = stmt.executeQuery("SELECT * FROM ANEXO ");
uprs.moveToInsertRow();
uprs.updateString("cod_ane", "uno");
uprs.updateString("cod_informe", "dos");
uprs.updateString("", "tres");
uprs.insertRow();
uprs.updateString("cod_ane", "cuatro");
uprs.updateString("cod_informe", "cinco");
uprs.updateString("desc_anexo", "seis");
uprs.insertRow();
uprs.beforeFirst();
System.out.println("Table ANEXO after insertion:");
while (uprs.next()) {
String name = uprs.getString("cod_ane");
String id = uprs.getString("cod_informe");
String price = uprs.getString("desc_anexo");
System.out.print(name + " " + id + " " + price);
uprs.close();
stmt.close();
con.close();
con.commit();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
WHEN CALL FUNCTION?????
send this:
ClassNotFoundException: oracle.jdbc.driver.OracleDriver
SQLException: No suitable driverAre you sure Oracle driver (classes12.jar or classes12.zip) is in your classpath ???
Maybe you are looking for
-
My 4th gen iPod Touch does not work with Ford sync since updating OS
When I updated my iPod to the new os, it does not work with my ford sync system anymore. how do I fix this?
-
Payment Method "Bank Transfer" in House Bank?
Hi Experts 1. I have created a Payment method as Bank Transfer - "B". 2. Assigned it to the Company code 3. Created a Bank Account in a House Bank with Payment Method Bank Transfer - "B". 4. i have created a Vendor given the Bank details and choosen
-
Mail for Exchange (MfE): multiple copies of distr...
Nokia E71 MfE v3.00.050 MS Hosted Exchange 2010 Please refer to configuration data mentioned above. I'm seeking help for the following, quite bizarre problem... When my secretary sends a distribution list email on which I'm included, I receive numero
-
How to work with file system in linux within a JSF app?
I use this line in my backing bean to log some events: FileHandler fhxml = new FileHandler("../webapps/MyWebApp/Log/MyWebAppLog.xml", append); fhxml.setFormatter(new XMLFormatter());That works fine in windows but when I deploy it in my Tomcat 6 in li
-
ITunes Match - Can it help me?
Evening all, I've had a very bad day. My old mac have given up on me today - loosing files, photographs and music. No iCloud present - long story. So, I still have my iTunes library on my iPad, and I have now installed iTunes on a spare PC. If I was