Derby help

hi
i use derby with java but i have some Q:
1-how can i create new user in my database using sql query
2-what sql sql dialect derby uses, and where can i find some references (like ms sql book online)
thx

but this is totaly differnt q
here i want to know how can i create new database
user using query in derbyUse an INSERT statement for the relevant table.

Similar Messages

  • Need Help Deploying Creator Project with Derby as Embedded

    HI,
    I have developed a web app using creator and the derby database instance that runs within creator. Now I want to war up the app and include the derby db as an embedded database. I have included the derby jar file in my lib directory and have created a new datasource with the derby embedded driver for testing. I cannot seem to get the db to run as embedded. My data source is setup as follows:
    dataSource name="DerbyTest3"
    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    url="jdbc:derby:../sample"
    validationQuery="select * from "
    username="dbadmin"
    password="7237EACC50DB74EF"
    />
    The sample database was copied from the creator source tree and inserted under WEB-INF
    When I try to connect I get the following error:
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: org.apache.jasper.JasperException
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Database '../sample' not found.
    Possible Source of Error:
    Class Name: org.apache.jasper.servlet.JspServletWrapper
    File Name: JspServletWrapper.java
    Method Name: service
    Line Number: 384
    any help greatly appreciated.
    gary
    Message was edited by:
    garff
    Message was edited by:
    garff

    One of our developers mentioned this, but it's also in the derby ref manual for the SQLException you're getting:
    http://db.apache.org/derby/docs/10.2/ref/rrefattrib26867.html
    sounds like you needed to append
    ;create=true
    to the JDBC Url...
    HTH,
    skj

  • Netbeans 6 Binding to Derby db \ please help!

    After following the tutorial I receive the following exceptions (and subsequently no jFrame is showed):
    Any help will be greatly appreciated.
    Thanks.
    init:
    deps-jar:
    compile-single:
    run-single:
    [TopLink Info]: 2007.11.14 03:05:55.912--ServerSession(9717476)--TopLink, version: Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))
    Exception in thread "AWT-EventQueue-0" Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLTransientConnectionException: User id length (0) is outside the range of 1 to 255.
    Error Code: 40000
    at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
    at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
    at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
    at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
    at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
    at javaapplication5.NewJFrame.initComponents(NewJFrame.java:29)
    at javaapplication5.NewJFrame.<init>(NewJFrame.java:17)
    at javaapplication5.NewJFrame$1.run(NewJFrame.java:95)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: java.sql.SQLTransientConnectionException: User id length (0) is outside the range of 1 to 255.
    at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
    at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
    at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
    ... 19 more
    Caused by: org.apache.derby.client.am.SqlException: User id length (0) is outside the range of 1 to 255.
    at org.apache.derby.client.net.NetConnection.checkUserLength(Unknown Source)
    at org.apache.derby.client.net.NetConnection.checkUser(Unknown Source)
    at org.apache.derby.client.net.NetConnection.checkUserPassword(Unknown Source)
    at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
    at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
    at org.apache.derby.client.net.NetConnection40.<init>(Unknown Source)
    at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown Source)
    ... 23 more
    BUILD SUCCESSFUL (total time: 2 seconds)
    Edited by: js0n on Nov 14, 2007 12:25 PM
    Edited by: js0n on Nov 14, 2007 1:13 PM

    I face same problem,,
    the reason behind it is the user and password for the connection should not be blank...
    and I resolve it in this way
    1. Go to Source Packages > META-INF
    2. Open persistence.xml as plain xml
    3. Change the value of the following properties to any thing except blank one of them should be blank thus you got the exception
    <property name="toplink.jdbc.user" value="app"/>
    <property name="toplink.jdbc.password" value="app"/>
    4. Run and have a fun!

  • CR4E 1.0 - need help to setup derby driver

    Hello!
    Im trying to follow Getting Started Guide and on the page 11 I see "Go to Database Explorer". CR4E doesn't have this view.
    I go to the "Window -> Preferences ->Connectivity - Driver Definitions" and add a record for Derby Driver 10.1 (Derby Embedded JDBC Driver), as mentioned in Guide, add two jars as driver files (derby.jar and Xtreme.jar from <CR4E folder>\plugins\com.businessobjects.crystalreports.samples_1.0.4.v1094\SampleDatabases), set connecton URL as "jdbc:derby:classpath:/Xtreme;create=true",  DB name as "classpath:/Xtreme" and user id set as "bobj".
    After that in "Data Source Explorer" I've created a new record for Database with type "Derby Embedded Database". Ping test was successful. But after connection I don't see any schemas. And in Eclipse dir file "dreby.log" has been created with following record:
    2009-03-05 09:20:28.250 GMT:
    Booting Derby version The Apache Software Foundation - Apache Derby - 10.1.1.0 - (208786): instance c013800d-011f-d5ef-102b-000002537450
    on database directory classpath:/Xtreme
    Database Class Loader started - derby.database.classpath=''
    How to setup derby driver properly? Can anybody help me? Is there anybody who successful followed this Guide?
    Help will be appriciated.
    Regards, Lev

    Hey Lev,
    I have not done much with Derby so cant help on that side, but for the Data Source Explorer issue, if you go  Window >> Show View >> you should be able to get to the DS Explorer that way (From the CR perspective)
    Hope that helps abit.
    Does the "Sample Reports" not already come with Derby connections setup, maybe look at their
    settings. But as I said I have not played around with this type of connection, sorry.
    Darren

  • Help with Derby Database Performance.

    I have started Derby as our BackEnd in microERP application.
    with Swing as front end. But i am struggling with Performace of the derby database.
    I have tried every thing with Preparedstatement and all related thing,
    Please give me a suggetion..

    aamirym wrote:
    I have started Derby as our BackEnd in microERP application.
    with Swing as front end. But i am struggling with Performace of the derby database.As noted your question is too general.
    However I would be really surprised if Derby came anywhere to even close to the performance of Oracle/MS SQL Server for all situations.
    So if you picked Derby inappropriately for the needs of the business then you have a problem.

  • Help required in derby database

    * Main.java
    * Created on August 31, 2007, 9:30 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package javaapplication5;
    * @author d
    import java.sql.*;
    import java.util.Properties;
    public class Main {
    /** Creates a new instance of Main */
    public Main() {
    * @param args the command line arguments
    public static void main(String[] args) {
    try {
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    System.out.println("connection success");
    } catch (ClassNotFoundException ex) {
    ex.printStackTrace();
    try {
    String driver = "org.apache.derby.jdbc.EmbeddedDriver";
    // the database name
    String dbName="america";
    // define the Derby connection URL to use
    String connectionURL = "jdbc:derby:" + dbName + ";create=true";
    Connection conn = null;
    Statement s;
    PreparedStatement psInsert;
    ResultSet myWishes;
    String printLine = " __________________________________________________";
    String createString = "CREATE TABLE WISH_LIST "
    + "(WISH_ID INT NOT NULL GENERATED ALWAYS AS IDENTITY "
    + " CONSTRAINT WISH_PK PRIMARY KEY, "
    + " ENTRY_DATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP, "
    + " WISH_ITEM VARCHAR(32) NOT NULL) " ;
    conn = DriverManager.getConnection(connectionURL,"user = dinesh","password = dinesh");          
    System.out.println("Connected to database " + dbName);
    s = conn.createStatement();
    s.executeQuery(createString);
    } catch (SQLException ex) {
    System.out.println("cannot insert data");
    ex.printStackTrace();
    the database get connected it is not inserting data into database

    what is the stack trace?

  • Help me find out the error in my first hello application

    Hello every body !!!!
    I am new to JEE.I am competent on JDK and also have worked on Tomcat JSP,servlet.
    But i am having problem running my first JEE programme.
    I have Sun Java System Application Server 9.1 with NetBeans 6 on WinXP.
    I have used NetBeans 6 hence those comments are there.
    Below are the code i have used:
    In the hello-ejb module i have following Bean and remote interfaces==>>>
    package hello;
    import javax.ejb.Stateless;
    @Stateless
    public class HelloBean implements HelloRemote {
    private String name="Yoodleyee";
    public String sayHello() {
    //return null;
    return "My Name is "+name;
    // Add business logic below. (Right-click in editor and choose
    // "EJB Methods > Add Business Method" or "Web Service > Add Operation")
    package hello;
    import javax.ejb.Remote;
    @Remote
    public interface HelloRemote {
    public String sayHello();
    In the Hello-app-client module i have main()==>>
    package hello;
    import javax.ejb.EJB;
    public class Main {
    @EJB
    private static HelloRemote helloBean;
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    System.out.println("Hi "+helloBean.sayHello());
    since this program does not require deployment descriptor and also NetBean creates its own deployment discriptor hence i have not written any.
    While the BUILD is successfull.But when Run this application I get deployment error.I am pasting the error stack below:
    pre-init:
    init-private:
    init-userdir:
    init-user:
    init-project:
    do-init:
    post-init:
    init-check:
    init:
    deps-jar:
    deps-j2ee-archive:
    init:
    init:
    deps-jar:
    compile:
    library-inclusion-in-manifest:
    dist-ear:
    deps-jar:
    compile:
    library-inclusion-in-manifest:
    dist-ear:
    init:
    deps-jar:
    compile:
    library-inclusion-in-manifest:
    dist-ear:
    pre-pre-compile:
    pre-compile:
    do-compile:
    post-compile:
    compile:
    pre-dist:
    do-dist-without-manifest:
    do-dist-with-manifest:
    post-dist:
    dist:
    pre-run-deploy:
    Initial deploying Hello to C:\nikhil workstation\EJB work\NetBeansProjects\Hello\dist\gfdeploy
    Completed initial distribution of Hello
    Start registering the project's server resources
    Finished registering server resources
    moduleID=Hello
    deployment started : 0%
    Deploying application in domain failed; Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
    Deployment error:
    The module has not been deployed.
    See the server log for details.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    Caused by: The module has not been deployed.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
    ... 16 more
    BUILD FAILED (total time: 1 second)
    Where as the server log has the following stack
    ----Log File Rotated---
    Apr 18, 2008 5:06:42 PM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
    INFO:
    C:/Sun/SDK/jdk\bin\java
    -Dcom.sun.aas.instanceRoot=C:/Program Files/glassfish-v2/domains/domain1
    -Dcom.sun.aas.ClassPathPrefix=
    -Dcom.sun.aas.ClassPathSuffix=
    -Dcom.sun.aas.ServerClassPath=
    -Dcom.sun.aas.classloader.appserverChainJars.ee=
    -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
    -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
    -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
    -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
    -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.classloader.serverClassPath=C:/Program Files/glassfish-v2/lib/install/applications/jmsra/imqjmsra.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
    -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Program Files/glassfish-v2/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/SDK/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,C:/Program Files/glassfish-v2/imq/lib/jaxm-api.jar,C:/Program Files/glassfish-v2/imq/lib/fscontext.jar,C:/Program Files/glassfish-v2/imq/lib/imqbroker.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,C:/Program Files/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Program Files/glassfish-v2/updatecenter/lib/updatecenter.jar,C:/Program Files/glassfish-v2/jbi/lib/jbi.jar,C:/Program Files/glassfish-v2/imq/lib/imqjmx.jar,C:/Program Files/glassfish-v2/lib/ant/lib/ant.jar,dbschema.jar
    -Dcom.sun.aas.configName=server-config
    -Dcom.sun.aas.configRoot=C:/Program Files/glassfish-v2/config
    -Dcom.sun.aas.defaultLogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/server.log
    -Dcom.sun.aas.domainName=domain1
    -Dcom.sun.aas.installRoot=C:/Program Files/glassfish-v2
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -Dcom.sun.aas.promptForIdentity=true
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Dcom.sun.updatecenter.home=C:/Program Files/glassfish-v2/updatecenter
    -Ddomain.name=domain1
    -Dhttp.nonProxyHosts=1*|prdits.tatasteel.co.in*|prd.tatasteel.co.in*|myportal.tatasteel.co.in*|<local>*|localhost|127.0.0.1|WAGONTRACKER
    -Dhttp.proxyHost=151.0.1.128
    -Dhttp.proxyPort=3128
    -Dhttps.proxyHost=151.0.1.128
    -Dhttps.proxyPort=3128
    -Djava.endorsed.dirs=C:/Program Files/glassfish-v2/lib/endorsed
    -Djava.ext.dirs=C:/Sun/SDK/jdk/lib/ext;C:/Sun/SDK/jdk/jre/lib/ext;C:/Program Files/glassfish-v2/domains/domain1/lib/ext;C:/Program Files/glassfish-v2/javadb/lib
    -Djava.library.path=C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\lib;C:\Program Files\glassfish-v2\bin;C:\Program Files\glassfish-v2\lib
    -Djava.security.auth.login.config=C:/Program Files/glassfish-v2/domains/domain1/config/login.conf
    -Djava.security.policy=C:/Program Files/glassfish-v2/domains/domain1/config/server.policy
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Djavax.net.ssl.keyStore=C:/Program Files/glassfish-v2/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=C:/Program Files/glassfish-v2/domains/domain1/config/cacerts.jks
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djmx.invoke.getters=true
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -client
    -XX:+UnlockDiagnosticVMOptions
    -XX:MaxPermSize=192m
    -Xmx512m
    -XX:NewRatio=2
    -XX:+LogVMOutput
    -XX:LogFile=C:/Program Files/glassfish-v2/domains/domain1/logs/jvm.log
    -cp
    C:/Program Files/glassfish-v2/lib/jhall.jar;C:\Program Files\glassfish-v2\lib\appserv-launch.jar
    com.sun.enterprise.server.PELaunch
    start
    Starting Sun Java System Application Server 9.1 (build b58g-fcs) ...
    MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor
    CORE5098: AS Socket Service Initialization has been completed.
    CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_03] from [Sun Microsystems Inc.]
    SEC1002: Security Manager is OFF.
    C:/Program Files/glassfish-v2/domains/domain1/config/.__com_sun_appserv_pid
    ADM0001:SunoneInterceptor is now enabled
    SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    WEB0114: SSO is disabled in virtual server [server]
    WEB0114: SSO is disabled in virtual server [__asadmin]
    ADM1079: Initialization of AMX MBeans started
    ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://WAGONTRACKER:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
    ADM1506: Status of Standard JMX Connector: Active = [true]
    autoDeployment status dir missing, creating a new one
    [AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear for autodeployment.
    deployed with moduleid = MEjbApp
    [AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\MEjbApp.ear.
    [AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear for autodeployment.
    deployed with moduleid = __ejb_container_timer_app
    [AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__ejb_container_timer_app.ear.
    [AutoDeploy] Selecting file C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear for autodeployment.
    deployed with moduleid = __JWSappclients
    [AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-v2\lib\install\applications\__JWSappclients.ear.
    WEB0302: Starting Sun-Java-System/Application-Server.
    JBIFW0010: JBI framework ready to accept requests.
    No Principals mapped to Role [noaccess].
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181
    WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848
    SMGT0007: Self Management Rules service is enabled
    Application server startup complete.
    javax.ejb.EJB.description()Ljava/lang/String;
    Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [MyHello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
    at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
    at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
    at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
    Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:338)
    ... 10 more
    Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@14a4fd2
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
    at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
    ... 14 more
    Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
    at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
    ... 21 more
    javax.ejb.EJB.description()Ljava/lang/String;
    Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
    at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
    at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
    at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
    Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
    ... 10 more
    Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@6985a3
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
    at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
    ... 17 more
    Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
    at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
    ... 24 more
    javax.ejb.EJB.description()Ljava/lang/String;
    Exception occured in J2EEC Phasejava.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
    com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [Hello] -- javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
    at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
    at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
    at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
    Caused by: java.lang.IllegalStateException: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:363)
    at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:318)
    at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.readModulesDescriptors(ApplicationArchivist.java:321)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.open(ApplicationArchivist.java:238)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
    at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
    ... 10 more
    Caused by: javax.ejb.EJB.description()Ljava/lang/String;at com.sun.enterprise.deployment.annotation.AnnotationInfo@1fb580
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:360)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:368)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:282)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.processAnnotations(AnnotationProcessorImpl.java:264)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:192)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:129)
    at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:445)
    at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:346)
    ... 17 more
    Caused by: java.lang.NoSuchMethodError: javax.ejb.EJB.description()Ljava/lang/String;
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processNewEJBAnnotation(EJBHandler.java:276)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processEJB(EJBHandler.java:143)
    at com.sun.enterprise.deployment.annotation.handlers.EJBHandler.processAnnotation(EJBHandler.java:98)
    at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:119)
    at com.sun.enterprise.deployment.annotation.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:337)
    ... 24 more
    Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context ''
    JBIFW0012: JBI framework startup complete.
    Please help me find the error and eliminate it.
    I am disgusted with it as i am stuck at this position for last 15 days.I have failed to find solution in google etc.
    Even the demo sample projects given in NetBeans are generating error messages.
    Please help...
    Yoodleyee

    >
    Please help me find the error and eliminate it.
    I am disgusted with it as i am stuck at this position for last 15 days.15 days on "Hello Anything" should never happen.
    Even the demo sample projects given in NetBeans are generating error messages.Somebody explain to me how JSF is making life "easy".
    There's a lot here.
    %

  • Problem with Java EE 5 and derby

    have a problem with the database connectivity in the examples of Java EE 5, I have the NETBEANS 5.5 with Sun Java System Application Server Platform Edition 9, and with the derby database.
    I just try to run my application, but there is not connectivity with the database. I review all the configurations and step to follow to run the examples, and does not even work.
    The server.log, show this:
    [#|2006-11-12T17:12:20.781+0000|WARNING|sun-appserver-pe9.0|oracle.toplink.essentials.file:/C:/as9rrtutorial/jsstutorials/examples/web/bookstore2/build/web/WEB-INF/lib/bookstore.jar-book|_ThreadID=14;_ThreadName=httpWorkerThread-8080-0;_RequestID=4c2405ce-8492-4786-bff4-ef1332cfccd4;|
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2006.8 (Build 060830)): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: org.apache.derby.client.am.SqlException: Table 'WEB_BOOKSTORE_BOOKS' does not exist.Error Code: -1
    Call:SELECT BOOKID, ONSALE, CALENDAR_YEAR, PRICE, TITLE, INVENTORY, DESCRIPTION, FIRSTNAME, SURNAME FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
    bind => [203]
    Query:ReadObjectQuery(com.sun.bookstore.database.Book)
    at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:303)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
    at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
    at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:620)
    at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:2152)
    at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:2127)
    at oracle.toplink.essentials.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:350)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:709)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:731)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2218)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:894)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.findInternal(EntityManagerImpl.java:298)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.findInternal(EntityManagerImpl.java:274)
    at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.find(EntityManagerImpl.java:130)
    at com.sun.bookstore2.database.BookDBAO.getBook(BookDBAO.java:73)
    at com.sun.bookstore2.database.BookDB.getBook(BookDB.java:55)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:273)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:982)
    at org.apache.jsp.books.bookstore_jsp._jspService(bookstore_jsp.java:191)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:850)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:697)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:532)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:465)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)
    at com.sun.bookstore2.dispatcher.Dispatcher.doGet(Dispatcher.java:106)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: org.apache.derby.client.am.SqlException: Table 'WEB_BOOKSTORE_BOOKS' does not exist.
    at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source)
    at org.apache.derby.client.net.NetStatementReply.readPrepareDescribeOutput(Unknown Source)
    at org.apache.derby.client.net.StatementReply.readPrepareDescribeOutput(Unknown Source)
    at org.apache.derby.client.net.NetStatement.readPrepareDescribeOutput_(Unknown Source)
    at org.apache.derby.client.am.Statement.readPrepareDescribeOutput(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.readPrepareDescribeInputOutput(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.flowPrepareDescribeInputOutput(Unknown Source)
    at org.apache.derby.client.am.PreparedStatement.prepare(Unknown Source)
    at org.apache.derby.client.am.Connection.prepareStatementX(Unknown Source)
    at org.apache.derby.client.am.Connection.prepareStatement(Unknown Source)
    at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.prepareStatement(DatabaseAccessor.java:1147)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseCall.prepareStatement(DatabaseCall.java:597)
    at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:470)
    ... 69 more
    |#]
    And the table exist in the database.
    Some body can help me?
    Thanks.

    You probably made the same mistake as I did and added the tables manually to the "sample" database instead of the "sun-appserv-samples" database.
    marc

  • Issue using the Eclipse report designer with Derby Client JDBC Driver

    All I am trying to do is add a table to a blank report using the Crystal reports Eclipse plugin. The database is connected successfully in Eclipse using the Derby Client JDBC Driver, but when I try to drag a table from the database over to my blank report, I get the following error:
    <br />
    <br />
    <br />
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not Add Object.
    java.lang.ExceptionInInitializerError---- Error code:-2147215362 Error code name:unknownError
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:65)
         at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.throwExecFailure(ReportCommand.java:253)
         at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.internalDoCommand(ReportCommand.java:126)
         at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(ReportCommand.java:237)
         at com.businessobjects.crystalreports.designer.uibase.gef.commands.CoreCommand.execute(CoreCommand.java:70)
         at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:114)
         at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
         at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
         at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
         at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
         at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
         at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
         at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
         at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
         at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
         at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
         at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.ExceptionInInitializerError---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:741)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
         at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
         at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
         at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
         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)
    Caused by: java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.do(Unknown Source)
         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:1771)
         at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
         at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2403)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
         ... 16 more
    Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.access.sort is sealed
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(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 java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         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$000(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 java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at org.apache.derby.impl.services.monitor.BaseMonitor.getImplementations(Unknown Source)
         at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultImplementations(Unknown Source)
         at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
         at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
         at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
         at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
         at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
         at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
         ... 36 more
    <br/>
    <br />
    <br />
    If anyone can help me figure out what I am doing wrong, it would be much appreciated.
    Edited by: cehowell on Jan 28, 2011 3:34 PM

    Ted,
    When I connect to the Derby database in Eclipse using the embedded driver, I can successfully drag and drop tables to create a report. This driver uses the derby.jar file and has no package sealing violations popping up.
    <br/>
    <br/>
    When specifying a driver for a new derby database in Eclipse, the default Derby client driver expects to use the derbyclient.jar driver file. If I only specify this as the driver file this is the error I get:
    <br/>
    <br/>
    <br/>
    <code>
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    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 java.net.FactoryURLClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.setupJRCConfiguration(DataAccessHelper.java:124)
    at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.createTable(DataAccessHelper.java:188)
    at com.businessobjects.crystalreports.designer.dseintegration.DataAccessHelper.createTable(DataAccessHelper.java:78)
    at com.businessobjects.crystalreports.designer.dseintegration.TableCreationFactory.getNewObject(TableCreationFactory.java:116)
    at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:103)
    at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
    at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
    at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
    at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
    at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
    at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
    at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    </code>
    <br/>
    <br/>
    <br/>
    and:
    <br/>
    <br/>
    <br/>
    <code>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not Add Object.
    Unexpected database connector error---- Error code:-2147215362 Error code name:unknownError
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:65)
    at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.throwExecFailure(ReportCommand.java:253)
    at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.internalDoCommand(ReportCommand.java:126)
    at com.businessobjects.crystalreports.designer.core.commands.ReportCommand.execute(ReportCommand.java:237)
    at com.businessobjects.crystalreports.designer.uibase.gef.commands.CoreCommand.execute(CoreCommand.java:70)
    at com.businessobjects.crystalreports.designer.dseintegration.DSEDropHandler.drop(DSEDropHandler.java:114)
    at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
    at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
    at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
    at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
    at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
    at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
    at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
    at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
    at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
    at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
    at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
    at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
    at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
    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)
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error
    at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:1861)
    at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1800)
    at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
    at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2978)
    at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2403)
    at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
    at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
    at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
    at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
    at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
    ... 16 more
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
    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:1771)
    ... 26 more
    </code>
    <br/>
    <br/>
    <br/>
    The error I initially posted resulted after I added the derby.jar as a driver file in addition to the derbyclient.jar, which I don't think is supposed to be done now that I am thinking about it, but I did it because of the class not found exception above. Is this perhaps simply a bug that it is trying to utilize the derby.jar embedded driver when the client driver should be used instead? Or am I doing something wrong myself?
    <br/>
    <br/>
    Thank you for your help.

  • HOw to create a foreign key in Derby netbeans 5.0

    I am trying to create a primary key in my database/web java application. I am using netbeans 5.0 and java vr5. I have put the following line in the DERBY SQL editor:
    ALTER TABLE staff ADD CONSTRAINT staff_fk FOREIGN KEY (staffID) REFERENCES staff (staffID);
    this returns Error: staffID is not a colum in Table of VTI skill
    However I have got a staffID Column in the table. Is this a BUG in netbeasn 5.0 or am I doing this incorrectly please can anyone show me a way round this problem. Iam suppose to use CMP or something please help.
    thanks in advance

    ALTER TABLE "staff" ADD CONSTRAINT "staff_fk" FOREIGN KEY ("staffID") REFERENCES "staff" ("staffID");

  • How to insert a java object int derby database

    hi,
    i have a problem , ie..i want to insert my java object int database derby.and also i need to retrieve that object from database whenever i need. Any body help me to do that in derby...
    Thanks

    Or you would design a table where the columns of the table correspond to attributes of the object. Then you would make a row by writing out the attributes to the columns they correspond to.

  • Migration from MySql to Derby

    I am currently migrating from MySql to Derby.
    I have been developing a MRPII package for a while now and whilst my classes worked with MySql I am finding difficulty with implementing them using Derby.
    I have developed a GUI interface for MRPII functions and use a Database Interface class to connect to the database.
    The Database Interface class gives me the capability of reading and writing from a database.
    I extend this capability to sub classes ie part, customers, suppliers, work orders.
    The problem I have is with the ' "+standardCost+" ' type statements. In MySql, the database engine recognises that the standard cost variable is a double though using Derby I get the following Errors.
    SQL Exception: Columns of type 'DOUBLE' cannot hold values of type 'CHAR'. In Save Data error code30000
    SQL Exception: Columns of type 'DOUBLE' cannot hold values of type 'CHAR'. In Save Data error code30000
    Executed statement INSERT INTO stock VALUES('BUDGET500','A1', '100.0','50.0','1.0','100.0')
    Executed statement INSERT INTO part VALUES('BUDGET500', 'PENTIUM','76.0', '86.0','EACH','MP','7','33')
    The only solution I see is giving each subclass of Database Interface the individual capability within that class to connect to the database and use prepared statements.
    Does anyone know if Derby has the capability of processing the updates using a similar format as shown in my code.
    package delta.databaseInterface;
    import delta.databaseInterface.DatabaseInterface;
    public class Part extends DatabaseInterface{
         private String partNumber;
         private String partType;
         private String description;
         private double standardCost;
         private double sellingPrice;
         private String stockLocation;
         private double quantityOnHand;
         private String unitOfMeasure;
         private double minimumStock;
         private double minimumOrderQuantity;
         private int leadTime;
         private double avaliableStock;
                         private int commodityCode;
         public void setPartNumber(String pn){
              this.partNumber = pn.toUpperCase();
         public void setDescription(String ds){
              this.description = ds.toUpperCase();
         public void setStandardCost(double sc){
              this.standardCost = sc;
         public void setSellingPrice(double sp){
              this.sellingPrice = sp;
         public void setQuantityOnHand(double qt){
              this.quantityOnHand = qt;
              this.avaliableStock = qt;
         public void setStockLocation(String sl){
              this.stockLocation = sl.toUpperCase();
         public void setUnitOfMeasure(String uom){
              this.unitOfMeasure = uom.toUpperCase();
         public void setTypeOfPart(String top){
              this.partType = top.toUpperCase();
         public void setMinimumStock(double ms){
              this.minimumStock= ms;
         public void setMinimumOrderQuantity(double moq){
              this.minimumOrderQuantity = moq;
         public void setLeadTime(int lt){
              this.leadTime = lt;
                         public void setCommodityCode(int cc){
              this.commodityCode = cc;
         public void insertIntoPartDatabase(){
           super.setDatabase("mrpii");
                           super.setUpdate( "INSERT INTO part VALUES('"+partNumber+"', '"+description+"','"+standardCost+"'," +
           " '"+sellingPrice+"','"+unitOfMeasure+"','"+partType+"','"+leadTime+"','"+commodityCode+"')");
                             super.saveData();       
         public void insertIntoStockDatabase(){
            super.setDatabase("mrpii");
            super.setUpdate("INSERT INTO stock VALUES('"+partNumber+"','"+stockLocation+"',"+
    " '"+quantityOnHand+"','"+minimumStock+"','"+minimumOrderQuantity+"','"+avaliableStock+"')");
                    super.saveData();
         public void changePartDetails(){
            super.setDatabase("mrpii");
            super.setUpdate( "UPDATE part SET description = '"+description+"',unitOfMeasure = '"+unitOfMeasure+"',"+
              "partType = '"+partType+"' WHERE partNumber = '"+partNumber+"' ");
            super.saveData();
         public void adjustStock(){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET stockLocation = '"+stockLocation+"',"+
              "avaliableStock = (('"+quantityOnHand+"' - qtyOnHand ) + avaliableStock), "+
              " qtyOnHand = '"+quantityOnHand+"' WHERE partNumber = '"+partNumber+"' ");
              super.saveData();
         public void insertAllocation(String allocationID, double quantity){
              super.setDatabase("mrpii");
              super.setQuery("INSERT INTO allocations VALUES('"+partNumber+"','"+quantity+"',"+
                 " '"+allocationID+"')");
              super.saveData();
         public void reduceAvaliable(double allocated){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET avaliableStock = (avaliableStock - '"+allocated+"') WHERE " +
              "partNumber = '"+partNumber+"' ");
              super.saveData();
         public void increaseAvaliable(double allocated){
              super.setDatabase("mrpii");
              super.setUpdate( "UPDATE stock SET avaliableStock = (avaliableStock - '"+allocated+"') WHERE " +
              "partNumber = '"+partNumber+"' ");
              super.saveData();
    }Any help would be deeply appreciated
    Thanks
    Jim

    I am currently migrating from MySql to Derby. Dear God, why?I am using the embedded functionality.
    >
    I have been developing a MRPII package for a whilenow
    MRP as in "manufacturing resource planning"?Yes
    >
    and whilst my classes worked with MySql I am
    finding difficulty with implementing them using
    Derby.That suggests that your Java code relies too heavily
    on MySQL features. You didn't make your code
    portable enough.
    I have developed a GUI interface for MRPIIfunctions
    and use a Database Interface class to connect tothe
    database.
    The Database Interface class gives me thecapability
    of reading and writing from a database.
    I extend this capability to sub classes ie part,
    customers, suppliers, work orders.
    The problem I have is with the ' "+standardCost+"'
    type statements. In MySql, the database engine
    recognises that the standard cost variable is a
    double though using Derby I get the following
    Errors.Right - you're counting on something that might not
    be true for all databases. MySQL appears to be doing
    an implicit conversion from string to double. Bad
    idea.
    SQL Exception: Columns of type 'DOUBLE' cannothold
    values of type 'CHAR'. In Save Data errorcode30000
    SQL Exception: Columns of type 'DOUBLE' cannothold
    values of type 'CHAR'. In Save Data errorcode30000
    Executed statement INSERT INTO stock
    VALUES('BUDGET500','A1',
    '100.0','50.0','1.0','100.0')
    Executed statement INSERT INTO part
    VALUES('BUDGET500', 'PENTIUM','76.0',
    '86.0','EACH','MP','7','33')Do you use PreparedStatements to escape strings and
    dates for you? If not, you're in for a bumpy ride.
    The only solution I see is giving each subclass of
    Database Interface the individual capabilitywithin
    that class to connect to the database and use
    prepared statements.I would not have a single database interface. Each
    class has its own requirements. How can a single
    class know about all of them? Better to break your
    persistence layer into several interaces, one per
    persistent class.That is what I thought
    >
    Does anyone know if Derby has the capability of
    processing the updates using a similar format as
    shown in my code.I think your code is in trouble, Jim.Probably so, thought a redesign is not so much of a problem now as I am a bit more experienced than when I started out.
    >
    You don't use prepared statements, which would help
    with your portability issues.
    You have SQL embedded in the objects. I'd move it
    out into a separate persistence layer.
    You might want to read about Hibernate, an
    object/relational mapping layer. You've got objects
    and tables. Hibernate tools or Middlegen can
    generate the XML mapping files for you. Once you
    have those, you'll find that Hibernate will make
    porting to another database a lot easier. It can be
    as easy as changing configuration files.
    I'd also look into Spring. It has some great
    plumbing to help you deal with databases and lots of
    other stuff.
    %My main class is as follows;
    package delta.databaseInterface;
    * @author James Charles
    import java.sql.SQLException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.ResultSetMetaData;
    import java.util.Vector;
    import javax.swing.JTable;
    public class DatabaseInterface{
         private String database;
         private String query;
                         private String update;
                private String[][] results = new String[0][0];
         private int columnCount = 0;
         private int rowCount = 0;
         private boolean resultsExist = false;
         Object data[][];
         private JTable table;
         public void setDatabase(String database){
              this.database = database;
         public void setQuery(String query){
              this.query = query;
                public void setUpdate(String update){
              this.update= update;
            public void saveData(){
              try{
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
              String sourceURL = new String("jdbc:derby:" + this.database);
              Connection databaseConnection = DriverManager.getConnection(sourceURL);
              Statement statement = databaseConnection.createStatement();
              statement. executeUpdate(this.update);
                    databaseConnection.close();
              } // end of try
              catch(ClassNotFoundException cnfe){
                   System.err.println(cnfe);
              catch(SQLException sqle){
                   System.err.println(sqle + " In Save Data error code" + sqle.getErrorCode());
                             System.out.println("Executed statement " + this.query);
                    catch(InstantiationException ie){
                        System.err.println(ie);
             catch(IllegalAccessException iae){
                        System.err.println(iae);
         public String getDatabase(){
              return this.database;
         public String getQuery(){
              return this.query;
         public void setResults(){           
         try{
              Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
              String sourceURL = new String("jdbc:derby:" + this.database);
              Connection databaseConnection = DriverManager.getConnection(sourceURL);
              Statement statement = databaseConnection.createStatement();
              ResultSet thisResult = statement.executeQuery(this.query);
                    databaseConnection.commit();
              System.out.println("Executed statement");
              convertToArray(thisResult);
              databaseConnection.close();
         } // end of try
         catch(ClassNotFoundException cnfe){
              System.err.println(cnfe);
         catch(SQLException sqle){
              System.err.println(sqle);
         catch(InstantiationException ie){
                        System.err.println(ie);
             catch(IllegalAccessException iae){
                        System.err.println(iae);
         public void convertToArray(ResultSet resultsIn) throws SQLException{
              this.resultsExist = false;
              String[] columnNames = new String[0];
              Vector dataRows = new Vector();
              ResultSetMetaData metadata = resultsIn.getMetaData();
              this.columnCount = metadata.getColumnCount();
              columnNames = new String[this.columnCount];
              for(int i = 0; i < this.columnCount; i++)
                   columnNames[i] = metadata.getColumnLabel(i+1);
              String[] rowData = new String[this.columnCount]; // Stores one row
              while(resultsIn.next()){ // For each row...
                   rowData = new String[this.columnCount]; // create array to hold thedata
                        for(int i = 0; i < this.columnCount; i++)// For each column
                        rowData[i] = resultsIn.getString(i+1); // retrieve the data item
                        dataRows.addElement(rowData); // Store the row in the vector
              this.results= new String[dataRows.size()][this.columnCount];
              this.data= new Object[dataRows.size()][this.columnCount];
              for(int column = 0; column < this.columnCount; column++)
                   for(int row = 0; row < dataRows.size(); row++){
              this.results[row][column] = ((String[])(dataRows.elementAt(row)))[column];
              this.data[row][column] = ((String[])(dataRows.elementAt(row)))[column];
              this.rowCount = dataRows.size();
              try{
                   if  (results[0][0].equals(null)){ this.resultsExist = false;} //ckecks results
                        else {this.resultsExist = true;}
                   catch (ArrayIndexOutOfBoundsException e){
                   System.out.println(e + "in catch");
                   this.resultsExist = false;
                   System.out.println("Value of exists in catch = " + this.resultsExist);
         }// end of set results
         public JTable getTable(Object[] columnNames) {
              table = new JTable(data, columnNames);
              return table;
         public int getColumnCount(){
              return this.columnCount;
         public int getRowCount(){
              return this.rowCount;
         public String getData(int row, int column){
              return this.results[row][column];
         public boolean doResultsExist(){
              return this.resultsExist;
    } // end of database InterfaceI developed this code about a year ago and maybe it is time to simplify it.
    With MySql I could create an instance of Database Interface or use one of its subclasses and perform any function on the database by calling its methods.
    maybe it is time for a redesign!
    thanks
    jim

  • Re: error creating domain - need help!

    Hi all,
    Getting the below error in install logs while configuring Forms/Reports (11.1.2.1) Create Domain fails for missing prerequisites
    Setting ORACLE_HOME to C:\Ora_MWhome\Ora_FRHome
    Setting Doracle.config.mode to true
    Adding c:\tmp\OraInstall2013-05-14_01-24-20PM for deletion.
    Adding to classpath:file:/c:/tmp/OraInstall2013-05-14_01-24-20PM/ext/jlib/classic.jar
    Adding to classpath:file:/c:/tmp/OraInstall2013-05-14_01-24-20PM/ext/jlib/template.jar
    [email protected]lassicPage.ScreenRes
    configFileName:c:\tmp\OraInstall2013-05-14_01-24-20PM\ext\jlib\footprint.xml
    Setting current page standalone validations to true
    Setting current page standalone validations to true
    Setting current page standalone validations to true
    resultset.getStatus() : true
    Setting collector hub url in screen:null
    Temp Buffer: C:\Ora_MWhome;
    ExtendDomain: false          ExpandCluster: false
    wasExtendDomain: false          wasExpandCluster: false
    prevAdminServerURL:           adminServerURL: LTHP95015GQ.ds.fs.fed.usweblogic
    isFirstVisit:true
    Oracle Home = C:\Ora_MWhome\Ora_FRHome
    Setting current page standalone validations to true
    In processErrorMsgStringOracle Instance
    Found product.properties
    All key are given: [APPSERVER_LOCATION, APPSERVER_TYPE]
    Not WAS
    needWritableDirectory: false
    needWritableDirectory: true
    middlewareHomeLocation:C:\Ora_MWhome
    weblogicHomeLocation:C:\Ora_MWhome\wlserver_10.3
    weblogicHome:C:\Ora_MWhome\wlserver_10.3
    weblogicHomeLocation:C:\Ora_MWhome\wlserver_10.3
    In processErrorMsgStringInstance Name
    In processErrorMsgStringThe instance name may only contain alphanumeric and underscore (_) characters, and it must begin with an alphabetic character. The instance name must be at least 4 characters long and up to 30 characters long.
    In processErrorMsgStringOracle Home
    In processErrorMsgStringOracle Home Directory Name
    In [email protected]_OracleDirectoryInvalidErrorString
    Obtained the single page data..SpecifyClassicHomeInformationPage
    resultset.getStatus() : true
    Setting current page standalone validations to true
    In processErrorMsgStringDomain Name
    In processErrorMsgStringThe value may only contain alphanumeric characters, or the underscore (_) or hyphen (-) characters.Punctuations cannot be the first character.
    In processErrorMsgStringAdministrator Password
    In processErrorMsgStringValid passwords are 8 to 30 characters long, must begin with an alphabetic character, use only alphanumeric, underscore (_), dollar ($) or pound (#) characters. It should contain at least one numeric, underscore (_), dollar ($), or pound (#) character.
    In processErrorMsgStringAdministrator User Name
    In processErrorMsgStringThe value may only contain alphanumeric characters, or the underscore (_) or hyphen (-) characters.Punctuations cannot be the first character.
    resultset.getStatus() : true
    formsPreConfigured:false
    reportsPreConfigured:false
    portalPreConfigured:false
    discoPreConfigured:false
    the node m_RunTimeComps is Selected
    the node m_Forms is Selected
    the node m_Reports is Selected
    the node m_DevTools is Not Selected
    the node m_FormsBuilder is Not Selected
    the node m_ReportsBuilder is Not Selected
    the node m_ManagementComps is Selected
    the node m_EnterpriseManagement is Selected
    the node m_SystemComps is Selected
    the node m_OHS is Selected
    the node m_RunTimeComps is Selected
    the node m_Forms is Selected
    the node m_Reports is Selected
    the node m_DevTools is Not Selected
    the node m_FormsBuilder is Not Selected
    the node m_ReportsBuilder is Selected
    the node m_ManagementComps is Selected
    the node m_EnterpriseManagement is Selected
    the node m_SystemComps is Selected
    the node m_OHS is Selected
    root.isSelectedfalse
    the node m_RunTimeComps is Selected
    the node m_Forms is Selected
    the node m_Reports is Selected
    the node m_DevTools is Selected
    the node m_FormsBuilder is Selected
    the node m_ReportsBuilder is Selected
    the node m_ManagementComps is Selected
    the node m_EnterpriseManagement is Selected
    the node m_SystemComps is Selected
    the node m_OHS is Selected
    root.isSelectedtrue
    Setting current page standalone validations to true
    the node m_RunTimeComps is Selected
    the node m_Forms is Selected
    the node m_Reports is Selected
    the node m_DevTools is Selected
    the node m_FormsBuilder is Selected
    the node m_ReportsBuilder is Selected
    the node m_ManagementComps is Selected
    the node m_EnterpriseManagement is Selected
    the node m_SystemComps is Selected
    the node m_OHS is Selected
    Entering the exec handler method in get free space for home...
    quotaNeededProperty:null
    isQuotaNeeded : false
    resultset.getStatus() : true
    the node m_RunTimeComps is Selected
    the node m_Forms is Selected
    the node m_Reports is Selected
    the node m_DevTools is Selected
    the node m_FormsBuilder is Selected
    the node m_ReportsBuilder is Selected
    the node m_ManagementComps is Selected
    the node m_EnterpriseManagement is Selected
    the node m_SystemComps is Selected
    the node m_OHS is Selected
    Setting current page standalone validations to true
    resultset.getStatus() : true
    Setting current page standalone validations to true
    resultset.getStatus() : true
    wasOIDSelected: true
    Setting current page standalone validations to true
    resultset.getStatus() : true
    In doFinish method checking for inventory lock...ConfigurationPage
    Setting current page standalone validations to true
    calling the executeBeforeConfig method before configuration..
    JAVA.LIBRARY.PATH:c:\tmp\OraInstall2013-05-14_01-24-20PM\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Ora_MWhome\Ora_FRHome\bin;C:\ORA_MW~1\ORA_FR~1\BIN;c:\ORA_DE~1\jdk\jre\bin;c:\ORA_DE~1\jdk\jre\bin\client;c:\ORA_DE~1\jlib;c:\ORA_DE~1\bin;c:\ORA_DE~1\jre\112ECD~1.8\bin;c:\oracle\product\111~1.0\client\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\PROGRA~1\COMMON~1\ROXIOS~1\DLLSHA~1\;C:\PROGRA~1\COMMON~1\ROXIOS~1\10.0\DLLSHA~1\;c:\oracle\client9i\bin;c:\oracle\client9i\jdk\bin;c:\oracle\client9i\jdk\jre\bin;C:\WINDOWS\system32\WINDOW~1\v1.0;C:\Perl\bin;C:\PROGRA~1\SSH_SCP;C:\PROGRA~1\ACTIVI~1\ACTIVC~1\;C:\PROGRA~1\QUICKT~1\QTSystem\;C:\ORA_MW~1\JROCKI~1.0-1;C:\ORA_MW~1\ORA_FR~1\opmn\bin;C:\ORA_MW~1\ORA_FR~1\opmn\lib;C:\ORA_MW~1\ORA_FR~1\perl\bin;.;C:\Ora_MWhome\Ora_FRHome\lib\;C:\Ora_MWhome\Ora_FRHome\jdk\jre\lib\i386\
    CONFIG LOG CONFIG LOCATION: c:\tmp\OraInstall2013-05-14_01-24-20PM\ext\jlib\log-config.xml
    XXX Entered Init()!!!
    Check Point Location : C:\Program Files\Oracle\Inventory\checkpoint\AS\11.1.2.1.0
    java.homeC:/Ora_MWhome/Ora_FRHome/jdk/jre
    weblogic.homeC:/Ora_MWhome/wlserver_10.3/server
    java.class.pathC:/Ora_MWhome/wlserver_10.3/server/lib/weblogic.jar;C:/Ora_MWhome/wlserver_10.3/server/lib/webservices.jar;C:/Ora_MWhome/utils/config/10.3/config-launch.jar;C:/Ora_MWhome/Ora_FRHome/lib/java/shared/args4j/2.0.9/args4j-2.0.9.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/argus.jar;C:/Ora_MWhome/Ora_FRHome/install/config/ASConfig.jar;C:/Ora_MWhome/Ora_FRHome/install/config/classic_config.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/iasprovision.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar;C:/Ora_MWhome/Ora_FRHome/inventory/Scripts/ext/jlib/message.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.odl_11.1.1/ojdl.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.odl_11.1.1/ojdl2.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/ons.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/opmneditor.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/optic.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/repositorycheck.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/wlclient.jar;C:/Ora_MWhome/Ora_FRHome/opmn/lib/wljmxclient.jar;C:/Ora_MWhome/Ora_FRHome/lib/xmlparserv2.jar;C:/Ora_MWhome/Ora_FRHome/forms/provision/frmconfig.jar;C:/Ora_MWhome/Ora_FRHome/frcommon/provision/frconfig.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.ldap_11.1.1/ldapjclnt11.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-common.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-wls.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-ee.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-unsupported-api.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jacc-spi.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-mbeans.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-api.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jps_11.1.1/jps-internal.jar;C:/Ora_MWhome/Ora_FRHome/jlib/ossoreg.jar;C:/Ora_MWhome/Ora_FRHome/../oracle_common/modules/oracle.jrf_11.1.1/jrf.jar;C:/Ora_MWhome/Ora_FRHome/jlib/ojmisc.jar;C:/Ora_MWhome/Ora_FRHome/jlib/jazn.jar;C:/Ora_MWhome/Ora_FRHome/jlib/ldapjclnt9.jar;ORACLE_HOMEnullORACLE_HOMEnullORACLE_HOMEnullORACLE_HOMEnullORACLE_HOMEnullORACLE_HOME%/../oracle_common/jlib/rcucommon.jar
    Assigning Port: 7001 to: DOMAIN_PORT
    ClassicDomain
    DOMAIN_HOME: C:/Ora_MWhome/user_projects/domains/ClassicDomain
    Trying to assign 2 consecutive ports where the starting port range is: 9001 - 9100
    Assigning Port: 9001 to: WLS_FORMS_PORT
    Assigning Port: -1 to: NODE_MANAGER_PORT
    Trying to assign 2 consecutive ports where the starting port range is: 9001 - 9100
    Trying to assign 2 consecutive ports where the starting port range is: 9002 - 9100
    Assigning Port: 9002 to: WLS_REPORTS_PORT
    Assigning Port: -1 to: NODE_MANAGER_PORT
    DOMAIN_HOME: C:/Ora_MWhome/user_projects/domains/ClassicDomain
    DOMAIN_HOME: C:/Ora_MWhome/user_projects/domains/ClassicDomain
    Trying to assign 3 consecutive ports where the starting port range is: 6700 - 6800
    Assigning Port: 6700 to: OPMN_LOCAL_PORT
    Assigning Port: 6701 to: OPMN_REMOTE_PORT
    Assigning Port: 6702 to: OPMN_REQUEST_PORT
    Trying to assign 3 consecutive ports where the starting port range is: 8888 - 8988
    Assigning Port: 8888 to: OHS_LISTEN_PORT
    Assigning Port: 8889 to: OHS_PROXY_PORT
    Assigning Port: 8890 to: OHS_SSL_PORT
    GJS OHS Hostname: LTHP95015GQ.ds.fs.fed.us
    GJS managedServer Hostname: LTHP95015GQ.ds.fs.fed.us
    GJS OHS Hostname: LTHP95015GQ.ds.fs.fed.us
    GJS managedServer Hostname: LTHP95015GQ.ds.fs.fed.us
    Assigning Port: 5155 to: EMAGENT_PORT
    EMD Port = 5155
    XXX Entered DoExecute()!!!
    displayProperties()!!!
    CREATE_DOMAIN : true
    JOIN_DOMAIN :
    DOMAIN_NAME : ClassicDomain
    DOMAIN_HOSTNAME : LTHP95015GQ.ds.fs.fed.us
    DOMAIN_PORT : 7001
    DOMAIN_HOME_PATH : C:/Ora_MWhome/user_projects/domains/ClassicDomain
    ADMIN_USER_NAME : weblogic
    MW_HOME : C:\Ora_MWhome
    ORACLE_HOME : C:\Ora_MWhome\Ora_FRHome
    INSTANCE_HOME : C:\Ora_MWhome\orainst
    INSTANCE_NAME : orainst
    CONFIGURE_FORMS : true
    CONFIGURE_FORMS_BUILDER : true
    CONFIGURE_REPORTS : true
    CONFIGURE_REPORTS_BUILDER : true
    CONFIGURE_OHS : true
    CONFIGURE_MANAGEMENT_COMPONENT : true
    PORT_LOCATION : 0
    AUTOMATIC_PORT_DETECT : true
    STATICPORT_INI_FILE_LOCATION :
    ENABLE_PROXY : false
    PROXY_HOST :
    PROXY_PORT :
    PROXY_BYPASS :
    USE_OID : false
    OID_USE_SSL : false
    OID_HOST :
    OID_PORT :
    OID_USERNAME : cn=orcladmin
    Executing Task: Creating Domain
    XXX: adding task: oracle.as.install.classic.ca.standard.DomainProvisioningTask
    AdminServer port is 7001
    trying to connect to LTHP95015GQ.ds.fs.fed.us 7001
    Creating Weblogic Domain.
    Adding Template : C:/Ora_MWhome/oracle_common/common/templates/applications/jrf_template_11.1.1.jar
    Adding Template : C:/Ora_MWhome/Ora_FRHome/common/templates/applications/classic_template_11.1.2.jar
    CLASSPATH=C:\ORA_MW~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\ORA_MW~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\ORA_MW~1\JROCKI~1.0-1\lib\tools.jar;C:\ORA_MW~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\ORA_MW~1\WLSERV~1.3\server\lib\weblogic.jar;C:\ORA_MW~1\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\ORA_MW~1\WLSERV~1.3\server\lib\webservices.jar;C:\ORA_MW~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\ORA_MW~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\ORA_MW~1\JROCKI~1.0-1;C:\PROGRA~1\Java\jre6\lib\ext\QTJava.zip;C:\ORA_MW~1\utils\config\10.3\config-launch.jar;C:\ORA_MW~1\WLSERV~1.3\common\derby\lib\derbynet.jar;C:\ORA_MW~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\ORA_MW~1\WLSERV~1.3\common\derby\lib\derbytools.jar;;
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Error: addTemplate() failed. Do dumpStack() to see details.
    oracle.as.provisioning.exception.ASProvWorkflowException: Problem invoking WLST - Traceback (innermost last):
    File "c:\tmp\tmp1368559932377.py", line 42, in ?
    File "C:\tmp\WLSTOfflineIni6566541924549047913.py", line 89, in addTemplate
    Oracle BI Composer Runtime - 11.1.1.0Oracle BI-ADF Runtime - 11.1.1.0
         at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
         at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
         at com.oracle.cie.domain.script.jython.WLScriptContext.addTemplate(WLScriptContext.java:420)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.domain.template.dependency.SelectionConflictException: The following prerequisites were found to be missing:
    Oracle BI Composer Runtime - 11.1.1.0Oracle BI-ADF Runtime - 11.1.1.0
         at oracle.as.provisioning.weblogic.ASDomain._createDomain(ASDomain.java:2958)
         at oracle.as.provisioning.weblogic.ASDomain.createDomain(ASDomain.java:2476)
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:633)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
         at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
         at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
         at java.lang.Thread.run(Thread.java:662)
    oracle.as.provisioning.exception.ASProvisioningException
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:872)
         at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
         at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
         at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
         at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
         at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
         at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
         at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
         at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
         at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:686)
         at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:391)
         at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
         ... 13 more
    In doCancel method ...
    Yes option....
    outputFile:C:\Program Files\Oracle\Inventory\logs\installProfile2013-05-14_01-24-20PM.log
    in writeProfile method..
    [ENGINE] Adding c:\tmp\OraInstall2013-05-14_01-24-20PM for deletion.
    java.lang.NullPointerException
         at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.shutdown(StandardConfigActionManager.java:185)
         at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.forceStop(ConfigurationExtension.java:98)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule.shutdown(ConfigurationModule.java:231)
         at oracle.as.install.engine.modules.configuration.ConfigurationModule$1.run(ConfigurationModule.java:137)
    I easily met all required System Requirements and Specifications, but no idea how to resolve.
    Any suggestions are greatly appriciated.

    What do you have here: File "c:\tmp\tmp1368559932377.py", line 42, in ?
    Kinds,
    Gabriel Abelha

  • Anybody who can help me? I really need your help

    I've tried to execute J2ee tutorial examples.
    I don't know why this sample didn't execute...I've already finished to set up J2EE and enviornment variables.
    I was trying this part from j2ee tutorial titled as "Packing Web modules".
    Whenever I type "asant create-war" to make web modules in command window. I always got error.
    Packaging Web Modules(From J2ee tutorial for your information)
    A web module must be packaged into a WAR in certain deployment scenarios and whenever you want to distribute the web module. You package a web module into a WAR using the Application Server deploytool utility, by executing the jar command in a directory laid out in the format of a web module, or by using the asant utility. This tutorial allows you to use use either the first or the third approach. To build the hello1 application, follow these steps:
    In a terminal window, go to <INSTALL>/j2eetutorial14/examples/web/hello1/.
    Run asant build. This target will spawn any necessary compilations and will copy files to the <INSTALL>/j2eetutorial14/examples/web/hello1/build/ directory.
    To package the application into a WAR named hello1.war using asant, use the following command:
    asant create-war
    This command uses web.xml and sun-web.xml files in the <INSTALL>/j2eetutorial14/examples/web/hello1 directory.
    To learn how to configure this web application, package the application using deploytool by following these steps:
    Start deploytool.
    Create a web application called hello1 by running the New Web Component wizard. Select FileNewWeb Component.
    In the New Web Component wizard:
    Select the Create New Stand-Alone WAR Module radio button.
    In the WAR File field, enter <INSTALL>/j2eetutorial14/examples/web/hello1/hello1.war. The WAR Display Name field will show hello1.
    In the Context Root field, enter /hello1.
    Click Edit Contents to add the content files.
    In the Edit Contents dialog box, navigate to <INSTALL>/j2eetutorial14/examples/web/hello1/build/. Select duke.waving.gif, index.jsp, and response.jsp and click Add. Click OK.
    Click Next.
    Select the No Component radio button and click Next.
    Click Finish.
    Select FileSave.
    A sample hello1.war is provided in <INSTALL>/j2eetutorial14/examples/web/provided-wars/. To open this WAR with deploytool, follow these steps:
    Select FileOpen.
    Navigate to the provided-wars directory.
    Select the WAR.
    Click Open Module.
    I guess this step is for checking my system about setup information. I not sure how to change it.
    the result from execution of ansnt command in dos
    D:\J2ee\j2ee-1_4-doc-tutorial_7\j2eetutorial14\examples\web\hello1>asant create- war Buildfile: build.xml
    j2ee-home-test:
    BUILD FAILED D:\J2ee\j2ee-1_4-doc-tutorial_7\j2eetutorial14\examples\common\targets.xml:10: T he j2ee.home property is not properly set in <INSTALL>/j2eetutorial14/examples/c ommon/build.properties.
    Set the j2ee.home property to the location of your Application Server installati on.
    On Windows, you must escape any backslashes in the j2ee.home property with anoth er backslash or use forward slashes as a path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:
    j2ee.home = C:\\Sun\\AppServer
    or
    j2ee.home=C:/Sun/AppServer
    j2ee.home is currently set to:
    Total time: 0 seconds
    D:\J2ee\j2ee-1_4-doc-tutorial_7\j2eetutorial14\examples\web\hello1>
    I've installed J2ee sdk in C:\Sun\AppServer
    PATH: %J2EE_HOME%\bin;%JAVA_HOME%\bin;
    CLASSPATH: %J2EE_HOME%\lib\j2ee.jar;C:\Java\jre1.6.0_05\lib\ext\QTJava.zip;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar
    J2EE_HOME: C:\Sun\AppServer
    JAVA_HOME: C:\Sun\AppServer\jdk
    I've installed J2ee with administration 4848, HTTP: 8089 HTTP: 8090
    I guess this could refer the target.xml and build.properties. So, I've tried after changing some value, which is fit for my setup.
    but, still doesn't work.
    targets.xml
    <path id="classpath">
    <fileset dir="${j2ee.home}/lib">
    <include name="j2ee.jar"/>
    </fileset>
    </path>
    <target name="j2ee-home-test" >
    <!-- Test if j2ee.home is set properly by looking for j2ee.jar -->
    <available file="${j2ee.home}/lib/j2ee.jar" type="file" property="j2ee.jar.present" />
    <fail unless="j2ee.jar.present">
    The j2ee.home property is not properly set in <INSTALL>/j2eetutorial14/examples/common/build.properties.
    Set the j2ee.home property to the location of your Application Server installation.
    On Windows, you must escape any backslashes in the j2ee.home property with another backslash or use forward slashes as a path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:
    j2ee.home = C:\\Sun\\AppServer
    or
    j2ee.home=C:/Sun/AppServer
    j2ee.home is currently set to: ${j2ee.home}
    </fail>
    </target>
    <target name="clean" >
    <delete dir="${build}" />
    <delete dir="${dist}" />
    <delete dir="${assemble}" />
    <delete file="${ear.name}" />
    <delete file="${war.name}" />
    <delete file="${war.file}" />
    <delete file="${client.jar.name}" />
    </target>
    <path id="db.classpath">
    <fileset dir="${db.root}/lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="create-db_common"
    depends="init,start-db,delete-db"
    description="Create database tables and populate database." >
    <sql driver="${db.driver}"
    url="${db.url}"
    userid="${db.user}"
    password="${db.password}"
    classpathref="db.classpath"
    delimiter="${db.delimiter}"
    autocommit="false"
    onerror="abort" >
    <transaction src="${sql.script}"/>
    </sql>
    </target>
    <target name="delete-db"
    description="Deletes the database tables." >
    <sql driver="${db.driver}"
    url="${db.url}"
    userid="${db.user}"
    password="${db.password}"
    classpathref="db.classpath"
    delimiter="${db.delimiter}"
    autocommit="false"
    onerror="continue" >
    <transaction src="${delete.sql.script}"/>
    </sql>
    </target>
    <target name="ping-db"
    description="Checks to see if Derby is running." >
    <java classname="org.apache.derby.drda.NetworkServerControl"
    fork="yes"
    resultproperty="db.ping.result">
    <jvmarg line="${db.jvmargs}" />
    <arg line="ping" />
    <classpath refid="db.classpath" />
    </java>
    <condition property="db.running">
    <equals arg1="${db.ping.result}" arg2="0" />
    </condition>
    </target>
    <target name="start-db"
    unless="db.running"
    description="Starts the Derby databse server."
    depends="ping-db">
    <sun-appserv-admin
    explicitcommand="start-database" />
    </target>
    <target name="stop-db"
    description="Stops the Derby database server."
    depends="ping-db"
    if="db.running">
    <sun-appserv-admin
    explicitcommand="stop-database" />
    </target>
    <target name="admin_command_common">
    <echo message="Doing admin task ${admin.command}"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    passwordfile="${admin.password.file}"
    host="${admin.host}"
    port="${admin.port}"
    asinstalldir="${j2ee.home}" />
    </target>
    <target name="create-jdbc-resource_common">
    <antcall target="admin_command_common">
    <param name="admin.command"
    value="create-jdbc-resource
    --connectionpoolid ${conpool.name} ${jdbc.resource.name}" />
    </antcall>
    </target>
    <target name="delete-jdbc-resource_common">
    <antcall target="admin_command_common">
    <param name="admin.command"
    value="delete-jdbc-resource ${jdbc.resource.name}" />
    </antcall>
    </target>
    <target name="deploy-war">
    <antcall target="admin_command_common">
    <param name="admin.command"
    value="deploy ${war.file}" />
    </antcall>
    </target>
    <target name="undeploy-war">
    <antcall target="admin_command_common">
    <param name="admin.command"
    value="undeploy ${example}" />
    </antcall>
    </target>
    <property environment="env" />
    <target name="listprops"
    description="Displays values of some of the properties of this build file">
    <property file="../../common/admin-password.txt" />
    <echo message="Path information" />
    <echo message="j2ee.home = ${j2ee.home}" />
    <echo message="j2ee.tutorial.home = ${j2ee.tutorial.home}" />
    <echo message="env.Path = ${env.Path}" />
    <echo message="env.PATH = ${env.PATH}" />
    <echo message="" />
    <echo message="Classpath information" />
    <echo message="classpath = ${env.CLASSPATH}" />
    <echo message="" />
    <echo message="Admin information" />
    <echo message="admin.password = ${AS_ADMIN_PASSWORD}" />
    <echo message="admin.password.file = ${admin.password.file}" />
    <echo message="admin.host = ${admin.host}" />
    <echo message="admin.user = ${admin.user}" />
    <echo message="admin.port = ${admin.port}" />
    <echo message="https.port = ${https.port}" />
    <echo message="" />
    <echo message="Domain information" />
    <echo message="domain.resources = ${domain.resources}" />
    <echo message="domain.resources.port = ${domain.resources.port}" />
    <echo message="" />
    <echo message="Database information" />
    <echo message="db.root = ${db.root}" />
    <echo message="db.driver = ${db.driver}" />
    <echo message="db.host = ${db.host}" />
    <echo message="db.port = ${db.port}" />
    <echo message="db.sid = ${db.sid}" />
    <echo message="db.url = ${db.url}" />
    <echo message="db.user = ${db.user}" />
    <echo message="db.pwd = ${db.pwd}" />
    <echo message="url.prop = ${url.prop}" />
    <echo message="ds.class = ${ds.class}" />
    <echo message="db.jvmargs = ${db.jvmargs}" />
    </target>
    build.properties ����
    j2ee.home=
    j2ee.tutorial.home=
    asinstall.dir=${j2ee.home}
    admin.password.file=${j2ee.tutorial.home}/examples/common/admin-password.txt
    admin.host=localhost
    admin.user=admin
    admin.port=4848
    https.port=8181
    domain.resources="domain.resources"
    domain.resources.port=8080
    # Derby configuration settings
    db.delimiter=;
    db.root=${j2ee.home}/derby
    db.driver=org.apache.derby.jdbc.ClientDriver
    db.datasource=org.apache.derby.jdbc.ClientDataSource
    db.host=localhost
    db.port=1527
    db.sid=sun-appserv-samples
    db.url=jdbc:derby://${db.host}:${db.port}/${db.sid};create=true;
    db.user=APP
    db.pwd=APP
    db.jvmargs=-ms16m -mx32m
    Is there anyone who can tell me how to change it? I really need your help....
    Thank you in advance.

    ok,
    First of all make sure your tutorial folder is installed from the root:
    C:\javaeetutorial5
    or
    D:\javaeetutorial5
    it makes things so simple.
    Secondly:
    set your jee tutorial home
    JAVAEE.TUTORIAL.HOME =
    C:/javaeetutorial5
    Thirdly: check in:
    C:\javaeetutorial5\examples\bp-project
    make a copy of the build.properties.sample save it as build.propropties, as a property file,
    edit the properties file as in:
    build.properties
    As follows:
    # uncomment the property javaee.home, and add the path
    # to your GlassFish Java EE 5 SDK installation
    javaee.home=c:/Sun/SDK
    javaee.tutorial.home=c:/javaeetutorial5
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    AS_ADMIN_PASSWORD=admin1234and so fourth. Some of the settings as the application server name is all done for you
    and then test it again.
    Take care of editing the property file. It can give you headache.
    Note also that this is for application server 9.1 - JEE5.
    eve

  • How do i connect to a derby database created in Netbeans externally?

    I've created a a Java DB in Netbeans, I can connect to the Java DB server and then to my database from Netbeans. I need to use this database outside of Netbeans... a table from this database is used in a program which i created with netbeans... i open the program using the .jar file outside of netbeans... but i can't access the table.
    can anyone help me with this?

    what exactly are you wanting to do? to connect to the database i use this
    String driverName = "org.apache.derby.jdbc.ClientDriver";
                Class.forName(driverName);
                String url = "jdbc:derby://localhost:1527/table name";
                String username = "username";
                String password = "password";
                connection = DriverManager.getConnection(url, username, password);you need to make sure that you have the derbyclient.jar file in the librarie for your project.
    Message was edited by:
    developprograms

Maybe you are looking for

  • Help needed with Network UI (JNET) in WEB DYNPRO for JAVA

    Hi all,   We are using Network UI element in our Web Dynpro Java. All is ok, but we have a problem with 'PRINT_PREVIEW' button. If you do click on this button, another window is open with a page preview, but always is shown the first XML loaded, in o

  • File not found - opening files from appXplorer

    Quite strange this one. Bear in mind, I've just started my first JSP project. So if I get some terminology wrong, please be gentle. :) OK; start up NitroX and open the three files I have (two in web/ one in pages/). index.jsp includes two of the othe

  • Time Machine does not backup home/user directory (on separate drive)

    I recently installed a SSD into my Mini. Due to size restrictions, my home/user directory has to be kept on another drive. I retained the stock 1TB drive that came with the Mini for this. Ok, installed the SSD, restored a Time Machine backups (sans u

  • Help in Cell Definition

    Hello, Can you please anybody tell us , what do you mean by help cell in Cell defintion. Thanks PT

  • Admin Node Hanging when Monitoring Cluster in Console

              I'm running into a very unusual situation with my cluster. The administrative node           is failing. I'm running all of my nodes as background services. The admin node           usually fails after about an hour. That's usually after al