Problem running a sample application in sun app server PE 8

Hi,
I am trying to run the petstore application with oracle 9i. It's a demo application that comes with app server. I set the classpath in the app server to the oracle driver files. I am able to deploy it successfully. But, when I run it it gives me this error:
java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.xa.client.OracleXADataSource
I am using oracle thin driver.
Rgds,
shipf1

Yes, I am deploying the application as an ear.You would need to configure the JAR as a module within the EAR. If it is required only by a web app, you could add it to the WEB-INF/lib for the web app.

Similar Messages

  • Problem running JAXB sample applications

    hi,
    I have been trying to run the JAXB sample applications provided with JWSDP1.1
    Class Paths etc are set as follows as specified :
    set JAVA_HOME=C:\Program Files\jdk1.3.1_03
    set JWSDP_HOME=C:\Program Files\jwsdp-1.1
    set JAXB_HOME=%JWSDP_HOME%\jaxb-1.0
    set JAXB_LIBS=%JAXB_HOME%\lib
    set JAXP_LIBS=%JWSDP_HOME%\jaxp-1.2.2\lib
    set JWSDP_LIBS=%JWSDP_HOME%\jwsdp-shared\lib
    set PATH=%JAXB_HOME%\bin;%JWSDP_HOME%\jwsdp-shared\bin;%PATH%
    set CLASSPATH=%JAXB_LIBS%\jaxb-api.jar;%JAXB_LIBS%\jaxb-ri.jar;%JAXB_LIBS%\jaxb-xjc.jar;%JAXB_LIBS%\jaxb-libs.jar;%JAXP_LIBS%\jaxb-api.jar;%JAXP_LIBS%\endorsed\xercesImpl.jar;%JAXP_LIBS%\endorsed\xalan.jar;%JAXP_LIBS%\endorsed\sax.jar;%JAXP_LIBS%\endorsed\dom.jar;%JWSDP_LIBS%\jax-qname.jar;%JWSDP_LIBS%namespace.jar;.
    cd %JAXB_HOME%\examples\users-guide\SampleApp1
    xjc.bat po.xsd -p primer.po
    javac Main.java primer\po\*.java primer\po\impl\*.java
    I keep running into the following error message at this stage :
    cannot access javax.xml.transform.Source
    file javax\xml\transform\Source.class not found
    (PurchaseOrder)u.unmarshal(new FileInputStream("po.xml"));
    Help greatly appreciated!! Thanks

    well, i think i don't see the jaxp-api.jar in you classpath.
    (javax.xml.transform.Source is in this jar)
    you did put the jaxb-api.jar in the classpath but this is not the same one (obviously!)

  • Problem : App works with Sun App server 8.0 but fails with 8.1

    Hi All
         I am experiencing some strange problem with executing my JSF application with Sun App Server.
         I have an EAR deployed on Sun Application Server 8.0 and 8.1.
         Strangely it works quite fine with 8.0 but fails with 8.1.
         In my JSP page ..I have a dummy component whose getter method is used as a "FormLoad" event of the page.
         <h:form id="imageForm" enctype="multipart/form-data">
         <h:messages showDetail="true" />
         <table width="980" border="1" cellpadding="0" cellspacing="0" bordercolor="#A9B8C2">
              <tr>
    <td>     
                   <h:inputHidden value="#{Screen1.initializeService}"/>
              <h:selectOneListbox styleClass="style2" id="cmbMiddleArea" immediate="true" value="#{Screen1.selectedMiddleArea}">
              <f:selectItems value="#{Screen1.middleAreaList}" />
         </h:selectOneListbox>
         In my backing bean i have ..
         public String getInitializeService() {
              ..... Retrieve all the data from DB to initialize all the components on the JSP page
              .......setMiddleAreaList......
              .......setSelectedMiddleArea.....
              ........set the values of the individal component...
         I am retrieving all the data from DB in this getter method and intializing the components on the JSP page.
         I have also checked the code generated for JSP by both the servers.I am posting the code here for reference although
         i did not find any significant difference between the two...
         For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{searchBean.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         Now the actual problem is "getInitializeService" method never gets called when i deploy and run the application on Sun App Server8.1
         However with Sun App Server 8.0 it woeks perfectly fine.
         Can anybody help me in resolving these issues ?
         

    Actually generated JSP code can be referred as ...
    For Server 8.0
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value.reuse(_jspx_th_h_inputHidden_0);
         return false;
         For Server 8.1
         private boolean jspxmeth_h_inputHidden_0(javax.servlet.jsp.tagext.JspTag jspxth_h_form_0, PageContext jspxpage_context)
         throws Throwable {
         PageContext pageContext = jspxpage_context;
         JspWriter out = jspxpage_context.getOut();
         // h:inputHidden
         com.sun.faces.taglib.html_basic.InputHiddenTag jspxth_h_inputHidden_0 = (com.sun.faces.taglib.html_basic.InputHiddenTag) jspxtagPool_h_inputHidden_value_nobody.get(com.sun.faces.taglib.html_basic.InputHiddenTag.class);
         jspxth_h_inputHidden_0.setPageContext(_jspx_page_context);
         jspxth_h_inputHidden_0.setParent((javax.servlet.jsp.tagext.Tag) jspxth_h_form_0);
         jspxth_h_inputHidden_0.setValue("#{Screen1.initializeService}");
         int jspxeval_h_inputHidden_0 = jspxth_h_inputHidden_0.doStartTag();
         if (_jspx_th_h_inputHidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
         return true;
         jspxtagPool_h_inputHidden_value_nobody.reuse(_jspx_th_h_inputHidden_0);
         return false;
         }

  • Can I run Servlets in the Sun App Server?

    I am trying to run a servlet. I am not sure if I can run the same using the Sun app server. any help to clarify the following queries would be appreciated.
    1. Should I have to specify a path in the environmental variables?
    2. Is there a web site that tells me the same with respect to running the servlet on a Sun app server.
    Thanks in advance.
    --Srikanta                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    I'm not sure what you want in regards to question, but I can assure you that you can run servlets in S1AS7. My recommendation is to just package your servlet into a web archive (war) and deploy it. You can deploy it via the commandline (asadmin) or the web based administrative client (likely http://localhost:4848). For more information on this I suggest reading:
    http://docs.sun.com/source/816-7150-10/index.html
    You must likely want to read the section on assembling and deploying web applications.
    Matt Bauer

  • Can JSC support Sun App Server 9?

    Does anyone know if JSC can support sun app server 9?
    Last I heard was that 8.2 is the max version.
    Along the same line, is there any word of another update to JSC
    that will work with app server 9 and jdk 6???

    Hi!
    Actually You can deploy your application to Sun App Server 9.0, but probably not all features will work. But now You can download NetBeans 5.5 and Visual Web Pack for it (it's a next step of Creator's evolution) and this IDE supports GlassFish (opensourced Sun App Server 9.0).
    Thanks,
    Roman.

  • Exceptions trying to run JSF on Sun App Server

    Hi!
    I have downloaded the Sun App Server and am trying to run the JSF Sample on it. The first page comes up fine, and when I enter data, it processes but does not come back with the response. I get the following errors:
    java.lang.ClassNotFoundException: com.sun.faces.application.StateManagerImpl$TreeNode
    java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
    java.lang.IllegalStateException: No FacesContext is available to process this request.
    Not sure if this is the right forum..
    Thanks

    Make sure you started the default server. Try
    http://localhost:8080. This will allow you to see if the appserver is running. The first page is a jsp an will run regardless of if the server is running. To start the defaul server look at you windows menu under Sun Microsystems.

  • Sun app server problem using asadmin tool

    I have installed sun app server and trying to do the simplemessage tutorial. When I run the
    ant create-cfcommand I get the following
    [exec] Invalid user or password
    [exec] CLI137 Command create-jms-resource failed.I have put an echo line in app-server-ant.xml to see what the command is and it is.
    [echo] c:/Sun2/SDK/bin/asadmin.bat create-jms-resource --user admin  --passwordfile C:/Sun2/SDK/javaee-5-doc-tutorial-1.0_03/javaeetutorial5/examples/common/admin-password.txt --host localhost --port 4850 --restype javax.jms.ConnectionFactory --enabled=true jms/ConnectionFactoryI have checked the password file and it is
    AS_ADMIN_PASSWORD=adminadminAny ideas?
    I have checked around about using parameter password but when running this I get an error saying this is not valid and that I should use passwordfile
    Kelvin

    You haven;t specified the exceptions you r getting ........while starting your default server.
    if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........

  • Sun App Server 9.0_01 (build b14) Deployment (undeploy) problems

    Hi all,
    I apologize for this long post but I want to provide as much info as possible. Also, I am not sure this is the right place for this posting. I will appreciate it if anyone could direct me to a better place.
    I have this ongoing problem deploying my application. The app server is unable to completely delete the previously deployed files. It goes into a series of timeout loops saying it is running the gc to try and free up resources. The files that can't be deleted are all in the web application's lib folder. I tried deleting them manually while waiting for the app server timeout loop and indeed each one is busy and can't be deleted. None of the files here are my code. The files are all in the folder:
    domain1\applications\j2ee-apps\TS5529\U04A1_war\WEB-INF\lib
    and the files are: appbase.jar, commons-fileupload.jar, dataprovider.jar, errorhandler.jar, jsfcl.jar, json2.jar, rowset.jar, sqlx.jar, webui-jsf.jar, webui-jsf-suntheme.jar
    I have made sure destroy() method in my SessionBean nulls out any resources used, even variables containing injected EJBs but the problem remains.
    The application is a NetBeans Enterprise application with a couple of Session Beans, Entity classes and Entity Facades. The presentation is JSF with Visual Web Pack and consists of two simple pages. The SessionBean holds a reference to a Stateful Bean and 4 variables each containing a custom ListDataProvider for JSF tables data binding. The SessionBean destroy method sets all of these variables to null.
    The first page backing bean does most of the work. It accesses the SFSB and DataProviders through the SessionBean. This page includes four EJB injections like this:
    @EJB AuthorFacadeLocal af;
    @EJB PublisherFacadeLocal pf;
    @EJB SearchDBLocal sDB;
    @EJB TitleFacadeLocal tf;
    and a variable holding an empty, unmanaged Entity object. I tried setting all of these to null in the page's destroy() method, which I don;t think I need to do.
    Is there a problem with these injections in the page's backing bean?? I've been at this for about a week, trying various ways to make sure resources are freed but the problem still there. The only solution is to stop the app server and then deploy. Needless to say, it is a pain having to stop the app server every time I need to deploy.
    Hope someone has seen this and can help, thanks in advance.

    Hi all,
    I apologize for this long post but I want to provide as much info as possible. Also, I am not sure this is the right place for this posting. I will appreciate it if anyone could direct me to a better place.
    I have this ongoing problem deploying my application. The app server is unable to completely delete the previously deployed files. It goes into a series of timeout loops saying it is running the gc to try and free up resources. The files that can't be deleted are all in the web application's lib folder. I tried deleting them manually while waiting for the app server timeout loop and indeed each one is busy and can't be deleted. None of the files here are my code. The files are all in the folder:
    domain1\applications\j2ee-apps\TS5529\U04A1_war\WEB-INF\lib
    and the files are: appbase.jar, commons-fileupload.jar, dataprovider.jar, errorhandler.jar, jsfcl.jar, json2.jar, rowset.jar, sqlx.jar, webui-jsf.jar, webui-jsf-suntheme.jar
    I have made sure destroy() method in my SessionBean nulls out any resources used, even variables containing injected EJBs but the problem remains.
    The application is a NetBeans Enterprise application with a couple of Session Beans, Entity classes and Entity Facades. The presentation is JSF with Visual Web Pack and consists of two simple pages. The SessionBean holds a reference to a Stateful Bean and 4 variables each containing a custom ListDataProvider for JSF tables data binding. The SessionBean destroy method sets all of these variables to null.
    The first page backing bean does most of the work. It accesses the SFSB and DataProviders through the SessionBean. This page includes four EJB injections like this:
    @EJB AuthorFacadeLocal af;
    @EJB PublisherFacadeLocal pf;
    @EJB SearchDBLocal sDB;
    @EJB TitleFacadeLocal tf;
    and a variable holding an empty, unmanaged Entity object. I tried setting all of these to null in the page's destroy() method, which I don;t think I need to do.
    Is there a problem with these injections in the page's backing bean?? I've been at this for about a week, trying various ways to make sure resources are freed but the problem still there. The only solution is to stop the app server and then deploy. Needless to say, it is a pain having to stop the app server every time I need to deploy.
    Hope someone has seen this and can help, thanks in advance.

  • Running Sun App Server 7 and 8 on the same box

    Hello,
    Are there any known issues with running Sun App Server 7 and 8 in the same host box ? Currently I am encountering some class not found exceptions with Sun App Server 8 . Sun App Server 7 runs just fine.
    Thanks,
    Aswin.

    It's not advisable to run separate installations of
    ColdFusion 7 and ColdFusion 8 single server on the same machine the
    re are several services that will try to use the same ports.
    However, you can install ColdFusion Enterprise using the
    multi-server configuration and then deploy the J2EE versions of
    ColdFusion to JRun. You can change the JVM that each instance uses
    (we recommend the latest 1.4 for CF7 and the latest 1.6 for CF8),
    and everything should run fine.
    ColdFusion itself is essentially just a J2EE application, the
    J2EE server itself is JRun 4. So the specific answer to your
    question is "don't install 2 copies of JRun 4 to the same machine".
    But yes, it's 100% possible, I'm running this configuration in my
    own development environment.

  • Problem with sun app server startup

    hi,
    i am getting problem with sun app server default start.the error is::
    [#|2006-03-01T13:54:35.121+0530|WARNING|sun-appserver-pe8.2|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    now i am useing Win Xp operating system,
    show me a solution.
    Regs..
    Narasimha

    You haven;t specified the exceptions you r getting ........while starting your default server.
    if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........

  • "Message Driven Bean" doesn't work with Sun App Server

    Hello all,
    i have a little bit problems, running a simple "Message Driven Bean" under the Sun App Server. The deployment of it works fine, but after starting the SUN App Server i get the following error message:
    An error occurred during the message-driven beancontainer initialization at runtime. The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
    Has anybody a workaround for this problem?
    The queue seems to be correctly installed. A simple client programm from the Sun Tutorial (Consumer & Producer) works fine without any Errors or Exceptions.
    I am a little bit confused, because the queue seems to work with the client programms but not with a MDB running on the SUN App Server.
    Thanks for you help!
    Greetings
    Manuel

    Hello Mr Manuel!
    could you plz help me with the steps for creating a message driven bean using netbeans ver 5.0(with Sun Java� System Application Server Platform Edition 8.2 )
    I just know how to work with Session beans & Entity Bean, and am try to learn to work on Message Driven Beans too. there are no proper tutorials where i can find steps for creating these..
    I need the steps from the scratch.,like creating QueueConnection Factory & Destination etc..
    It will be gr8 if you can help me with this at the earliest .
    Thank you
    Bye

  • Bouncycastle, sun app server 8.1, jar is not signed by a trusted signer

    hi,
    i am facing following problem,
    im trying to use 3rd party security provider signed with SUN, however, after everything is properly configured and i run webapplication code (sun app server 8.1) that should load registered 3rd party provider application crashes with following exception:
    Caused by: java.util.jar.JarException: file:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/bcprov-jdk15-138.jar is not signed by a trusted signer.
         at javax.crypto.SunJCE_d.b(DashoA12275)
         at javax.crypto.SunJCE_d.a(DashoA12275)
         at javax.crypto.SunJCE_d.a(DashoA12275)
         at javax.crypto.SunJCE_b.b(DashoA12275)
         at javax.crypto.SunJCE_b.a(DashoA12275)
         at javax.crypto.SunJCE_b.b(DashoA12275)
         at javax.crypto.Cipher.getInstance(DashoA12275)
         at sk.tempest.anypay.helpers.Sha1Signer.sign(Sha1Signer.java:38)
    this happens with both, bouncycastle and cryptix and both are having valid certrificates
    this is machine specific problem
    does anybody know or solution or at least some information what could cause this?
    Has to be Java Code Signing CA in NSS cert8.db of application server?

    importing public key?
    have you ever seen JCE source code?
    well if you write provider you have to send it to SUN they will sign it,
    with Java Code Signing CA certificate.
    These certficate's other part of asymetric cipher code is hardcoded in jce.jar
    JCESecurity.java.
    I finally solved that configuration problem with making own modified jce.jar.,
    with provider signature checking turned off.
    Btw i think problem was caused with multiple libraries in system using same classes.
    There was some archaic jce.jar in SUNwam or somewhere.

  • HELP - Can't connect to Sun App Server

    Hi,
    I'm confused. The Sun App Server documentation states that the protocol to use in the JNDI context lookup is jms or tcpjms, and that the service runs on port 7676:
    javax.naming.ConfigurationException: Invalid URL: jms://localhost:7676 [Root exception is java.net.MalformedURLException: unknown protocol: jms]
    When I use the other (commented-out) line: iiop://localhost:3700, I get a different error (and I don't think this is the protocol I want to use anyway).
    JNDI API lookup failed: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    So which is it?? Here is my code...thanks in advance for your help!
    package com.tpc.jms.simpleProducer;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.Hashtable;
    import java.util.Properties;
    public class SimpleJMSTest {
    // public static final String PROVIDER_URL = "iiop://localhost:3700";
    public static final String PROVIDER_URL = "jms://localhost:7676";
    public static final String CONTEXT_FAC = "com.sun.jndi.cosnaming.CNCtxFactory";
    public static void main (String argv[]) {
    try {
    Properties properties = new Properties();
    properties.put(Context.PROVIDER_URL, PROVIDER_URL);
    properties.put(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FAC);
    properties.put(Context.SECURITY_PRINCIPAL, "guest");
    properties.put(Context.SECURITY_CREDENTIALS, "guest");
    InitialContext initialCtx = new InitialContext(properties);
    System.out.println("Good!");
    //TopicConnectionFactory topicConnFactory = (TopicConnectionFactory) initialCtx.lookup (fac);
    //Topic nasdaqTopic = (Topic)initialCtx.lookup(topic);
    /* System.out.println("Creating topic connection");
    TopicConnection topicConnection = topicConnFactory.createTopicConnection();
    topicConnection.start ();
    System.out.println("Creating topic session: not transacted, auto ack");
    TopicSession topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    System.out.println("Creating topic, subscriber");
    TopicSubscriber nasdaqTopicSubscriber = topicSession.createSubscriber (nasdaqTopic);
    System.out.println ("Ready to subscribe for messages :");
    nasdaqTopicSubscriber.setMessageListener(new SubscriberListener());*/
    catch (Exception e) {
    e.printStackTrace ();
    }

    Hi,
    First of all, you don't use iiop in JMS.
    And also for your problem, did you by any chance forget to create your connectionfactory in the application server?

  • Problem while deploying ADF application to standalone WLS server

    Hi,
    I am facing a problem while deploying ADF application to standalone WLS Server.
    Following is the error message that I am getting.
    [07:24:03 PM] ----  Deployment started.  ----
    [07:24:03 PM] Target platform is  (Weblogic 10.3).
    [07:24:07 PM] Retrieving existing application information
    [07:24:08 PM] Running dependency analysis...
    [07:24:08 PM] Building...
    [07:24:13 PM] Deploying 2 profiles...
    [07:24:14 PM] Wrote Web Application Module to D:\WorkSpace3\DashboardUi\deploy\Dashboard.war
    [07:24:14 PM] Wrote Enterprise Application Module to D:\WorkSpace3\deploy\Dashboard.ear
    [07:24:14 PM] Deploying Application...
    [07:24:22 PM] [Deployer:149191]Operation 'deploy' on application 'Dashboard' is initializing on 'msDevServer1'
    [07:24:27 PM] [Deployer:149193]Operation 'deploy' on application 'Dashboard' has failed on 'msDevServer1'
    [07:24:27 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application Dashboard on msDevServer1.: .
    [07:24:27 PM] Weblogic Server Exception: weblogic.application.ModuleException:
    [07:24:27 PM] Caused by: weblogic.common.ResourceException: DataSource DashboardDb already exists
    [07:24:27 PM]   See server logs or server console for more details.
    [07:24:27 PM] weblogic.application.ModuleException:
    [07:24:27 PM] ####  Deployment incomplete.  ####
    [07:24:27 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)Any suggestion how to fix this.
    Thanks
    Ajay

    I logged into console and browsed to 'Home >Summary of JDBC Data Sources' but not able to locate DashboardDb. Please let me know where to find DashboardDB on wls console.
    Also, please let me know how to configure the app to not to auto-deploy JDBC data sources

  • Deploying a WAR file to Sun App Server 8.1 PE

    So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
    Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
    And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
    I create a WAR file in JSC, scp it up.
    Then try to deploy it - so I get bit by the no DB connection thing.
    Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
    I copy the username, password, URL and DriverClass attributes to the connection pool.
    I still get a
    "Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
    when I try to Ping the ConnectionPool
    I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
    what JAR file is DriverAdapter in? anyone know?
    cheers,
    Kris

    Okay. mysql folks - this works......
    here's what happened, on the production server, different from the dev machine....
    mysql 4.1.9
    sun application server platform edition PE 8.1
    connector/j - latest
    and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
    first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
    driveradaptor.jar
    and it it comtains
    com.sun.sql.datasource.DriverAdapter
    which 8.1 ain't got
    and should be copied up to
    /installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
    (domain1 is your app svr domain that runs your app.)
    your Connector/J JAR needs to go here too. I used:
    mysql-connector-java-3.2.0-alpha-bin.jar
    downloaded from mysql.com.
    and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
    and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
    <property name="Username" value="root"/>
    <property name="Password" value="secret"/>
    <property name="ValidationQuery" value="SELECT 1"/>
    <property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="LoginTimeout" value="0"/>
    <property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
    <property name="User" value="root"/>
    <property name="password" value="secret"/>
    <property name="PasswordCredential" value="secret"/>
    </jdbc-connection-pool>
    (and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
    Just keep Adding Properties in the connection pool until you get them all....
    Oh and, the two key class references for the pool are:
    datasource class: com.sun.sql.datasource.DriverAdapter
    resource type: javax.sql.ConnectionPoolDataSource
    Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
    your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
    <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    <context-root>/yourcontext</context-root>
    <resource-ref>
    <res-ref-name>jdbc/Yourname</res-ref-name>
    <jndi-name>jdbc/Yourname</jndi-name>
    <default-resource-principal>
    <name>root</name>
    <password>secret</password>
    </default-resource-principal>
    </resource-ref>
    </sun-web-app>
    and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
    cheers,
    and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
    -Kristofer

Maybe you are looking for

  • IOS 6.1 on iPhone 5: multiple Apple ID password requests on restart

    After installing iOS 6.1 on my iPhone 5 and restarting the iPhone, I was besieged with requests to enter my Apple ID password...6 in a row, one after another. After things calmed down, I turned off the iPhone completely and turned it on again to see

  • SQL Developer 3.0.04 - SDO_GEOM Issues

    1. Performing a "SELECT *" on an Oracle table with a SDO_GEOMETRY column locks up the tool and I have to use Task Manager to can it. 2. Clicking the Data tab on a table with an SDO_GEOM col either locks up the tool, or it takes forever to return. 3.

  • Query result closing prematurely, Object closed error

    Hi guys I've discovered an unusual behaviour when iterating through a collection returned from a query. Scenario The code executes a query, iterates partially through the resultset and for each row calls a method which creates another object. Given t

  • Remote user Authentication in customize login page

    Hi all, I would like to make sincere request to all you that I am not able authenticate my users based on tables. I start to learn HTML DB before 20 days and created simple application. Requirement: 1: Created new login page P16 other than inbuilt lo

  • Unable to install to chosen location???

    im installing adobe photoshop (or rather, trying to =/) im at the part where you select a location to install. my hard drive is too full to install there so i need to install it to removable storage. im able to install it to my external hard drive bu