Sun One Mobile Application Builder BIG PROBLEM!

Hi!
I can't make S1MAB starts to run on WindowsXP!
I downloaded and installed:
1) JSDK1.4.2
2) Wireless Toolkit 2.1
3) Sun One Mobile Appication Builder
Everything seems OK(except, one thing during installation i got next message "JVM could not be found", althought i have installed JSDK already!!!)
Well...whem i'm tryting to start S1MAB, i got next message:
[03/Aug/2004:14:04:38 1000] [ERROR]-main-java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:436)
at java.lang.Integer.parseInt(Integer.java:518)
at com.aligo.tools.applicationbuilder.ApplicationBuilderState.initialize(ApplicationBuilderState.java:169)
at com.aligo.tools.applicationbuilder.ApplicationBuilderState.<init>(ApplicationBuilderState.java:109)
at com.aligo.tools.applicationbuilder.ApplicationBuilderState.getInstance(ApplicationBuilderState.java:73)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:319)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:82)
at com.aligo.tools.applicationbuilder.ApplicationBuilder$83.construct(ApplicationBuilder.java:3278)
at com.aligo.tools.thread.SwingWorker$2.run(SwingWorker.java:149)
at java.lang.Thread.run(Thread.java:534)
at com.aligo.tools.thread.SwingWorker.start(SwingWorker.java:192)
at com.aligo.tools.applicationbuilder.ApplicationBuilder.main(ApplicationBuilder.java:3325)
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:324)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
After that process is termination.
P.S.: i wounder, that so big famous company, make such software - software that is not working. Or at least poor documented! Because i have any info where is problem can be! What i must add/change/replace? What this message is really mean? What i must do? Help is extremelly needed!

Already added! No success! I installed JBuilderX from Borland and it RUNS OK! But S1MAB is not working still! :(

Similar Messages

  • Sun ONE Mobile Application Builder

    Anyone here used the Mobile Application Builder with Portal Server 2005Q1 before? I followed the instructions in the get started guide to deploy the Hello World application, but I encountered the following errors:
    [root@Portal2] $ /opt/SUNWps/bin/par import runasdn "uid=amAdmin,ou=People,dc=frontline,dc=com,dc=sg" password password debug verbose overwrite /tmp/HelloWorld/HelloWorld.par "dc=frontline,dc=com,dc=sg" channel
    AUTHENTICATING
    uid=amAdmin,ou=People,dc=frontline,dc=com,dc=sg
    password
    AUTHENTICATED - Setting DN - dc=frontline,dc=com,dc=sg.
    Initializing for operation - dpnode=dc%3Dfrontline%2Cdc%3Dcom%2Cdc%3Dsg,channel.
    Adding channel HelloWorld, JSPRenderingProvider.
    Operation failed.
    ERROR: Error opening zip entry (java.lang.NullPointerException).
    com.sun.portal.desktop.deployment.ParFileException: Error opening zip entry (java.lang.NullPointerException).java.lang.NullPointerException
    at com.sun.portal.desktop.deployment.ParFile.getCheckedIS(ParFile.java:162)
    at com.sun.portal.desktop.deployment.ParFile.extractionOperation(ParFile.java:126)
    at com.sun.portal.desktop.deployment.ParFile.performExtraction(ParFile.java:94)
    at com.sun.portal.desktop.deployment.CmdImport.doImport(CmdImport.java:60)
    at com.sun.portal.desktop.deployment.CmdImport.main(CmdImport.java:73)
    java.lang.NullPointerException
    at java.util.zip.ZipFile.getInputStream(ZipFile.java:287)
    at java.util.jar.JarFile.getInputStream(JarFile.java:379)
    at com.sun.portal.desktop.deployment.ParFile.getCheckedIS(ParFile.java:155)
    at com.sun.portal.desktop.deployment.ParFile.extractionOperation(ParFile.java:126)
    at com.sun.portal.desktop.deployment.ParFile.performExtraction(ParFile.java:94)
    at com.sun.portal.desktop.deployment.CmdImport.doImport(CmdImport.java:60)
    at com.sun.portal.desktop.deployment.CmdImport.main(CmdImport.java:73)
    No errors were encountered with compilation and packaging. I am able to unzip the PAR file using �jar �xvf�.

    Already added! No success! I installed JBuilderX from Borland and it RUNS OK! But S1MAB is not working still! :(

  • Mobile Application Builder 1.0

    Hi All,
    Where can I download Sun one mobile Application Builder software?
    Thanks in advance
    Regards,
    RajeshJV

    Mobile Application Builder 1.0 is no longer a supported product from Sun.
    I'm curious as to where you read about it. If we have a reference to it in current documentation, that needs to be corrected.
    Thanks.
    Tom

  • Sun Certified Mobile Application Developer

    Respected Sir ,
    i m souvik kundu from India i nead ur help
    I already got SCJP certification now i want to give SCMAD(Sun Certified mobile application Developer) exam
    Can u give me any guide line how i have to proceed to give this exam
    I need some books plz tell me which book i have to follow or plz tell
    me any site where i can download some e-Books . i am waiting 4ur
    positive response.
    thx
    Souvik

    when I took my SCMAD test, I recall there being a practice test as part of signing up for it, that was what I studied most. All the weird little rules to remember and such about what spec does this or that.

  • Modify a  Page created in Application Builder (cursor problem)

    I created a application in the 'Application Builder' that comes with Oracle Express. I can not get the cursor to start in the first field if that field is a 'text field automatically submit when enter pushed'. it only works when I change that field to 'text field'.
    Is there a way to fix this?
    or
    Can I pull up the code for that page and modify it manually?
    or
    Can I open that form in JDeveloper?
    Thanks.

    Hello Garrett,
    Around here, apex, ApEx, APEX, is short for Oracle Application Express.
    Oracle XE comes with Oracle Application Express, however it is Application Express version 2.1. The latest production version of Application Express is version 3.2.1.00.12. See here: http://www.oracle.com/technology/products/database/application_express/download.html for information on upgrading your version of ApEx to the latest version. It provides tons of improvements over what was already a sweet tool.
    Application Builder is just one of the tools (albiet the primary tool) in ApEx. It sounds like you're definitely going to want to spend some time with the Help, and also in the number of tutorials available at http://apex.oracle.com/i/index.html to get up to speed with it. There's too many places to list here where you can incorporate Javascript into your applications - but check out the help and tutorials and I'm sure you'll soon no longer be a "total noob"! I'm assuming you do mean Javascript - not Java - two very different languages used for two completely different things.
    Hope this helps,
    John

  • Oracle application builder open problem

    I have downlooded Oracle Application Express .zip file and extracted.
    Now I want to login to the application window but there is no setup .exe or installation file I wantto install this software on my pc,
    to create application through application builder.
    Thanking You,
    Shahaji Thorat
    +91 9850063645

    Have you taken a look at the install guide?
    http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/otn_install.htm#BEHGEFDI
    Thanks
    Shail

  • Problem while running application on sun one 8 application server.

    Dear All,
    We have a strange problem in JAS8 application. When ever we access the site from any browser for which the proxy is configured, and when we click on any of the tab ( Link or Web Page) after login, the application is redirecting back to Login page. We seem to be losing the session information at the application and so it continually redirects back to the login page, thinking that a user is not logged in with the current session.
    But when we access the same site with the same login id from browser for which proxy is not configured it is working fine.
    Does anyone has a solution to this problem.
    Message was edited by:
    tiwari1982

    This means your application client component is trying to access an entry within its component environment "java:comp/env/ejb/SimpleDemo" but there is no entry by that name. You'll need to make sure you define an ejb-ref within the application-client.xml and map the remote ejb dependency to the global JNDI name of the target Remote EJB within sun-application-client.xml.

  • Sun One Java mobile Application start error

    Hi,
    I established sun one java mobile application builder but I coudn not start it . when it come to %27 it show me this messagebox "This application has unexpectedly has caused an ExceptionInInitializerError. This Application will now exit (LAX)"
    in detail
    "java.lang.NullPointerException
         at com.aligo.tools.action.NewApplicationAction.<clinit>(NewApplicationAction.java:34)
         at com.aligo.tools.applicationbuilder.ApplicationBuilder.defineActions(ApplicationBuilder.java:460)
         at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:325)
         at com.aligo.tools.applicationbuilder.ApplicationBuilder.<init>(ApplicationBuilder.java:82)
         at com.aligo.tools.applicationbuilder.ApplicationBuilder$83.construct(ApplicationBuilder.java:3278)
         at com.aligo.tools.thread.SwingWorker$2.run(SwingWorker.java:149)
         at java.lang.Thread.run(Thread.java:484)
         at com.aligo.tools.thread.SwingWorker.start(SwingWorker.java:192)
         at com.aligo.tools.applicationbuilder.ApplicationBuilder.main(ApplicationBuilder.java:3325)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.zerog.lax.LAX.launch(DashoA8113)
         at com.zerog.lax.LAX.main(DashoA8113)"
    Please help me..
    Thanks ...

    This question does not appear to relate to Java Studio Enterprise. Try locating the forum for the product you are using, and ask your question there.

  • Solaris 9 and Sun ONE 6.1 SP5 open socket issue

    Hi
    We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
    My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
    netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
    Anyone has a clue what could be going wrong..
    SA

    it is certifying / authenticating that the secured
    web site is owned by the genune party and the
    transactions with the party is doing through a
    encrypted format.
    Am i correct up to this???Correct, that is what SSL/certificates are for.
    >
    Then my dowt is that
    Is it possible to make my server SSL enabled with
    h out using any certificate ????( the documents you
    are given is telling about certificates)No it is not possible - the whole idea behind SSL communication is that it is based on TRUSTED secure communication. If a client can not check validity of server's certificate it is not trusted any more.
    It might not seem to be the case when you create a self-signed certificate, but it really is so. In case of a self signed certificate you(i.e your browser) trust yourself with whatever you do with your application on your webserver.
    After all can I install some certificates lateron ??
    If you really need SSL with your webserver you have to either create a self signed certificate, see this: http://sial.org/howto/openssl/self-signed/
    or request a test certificate from www.verisign.com or www.thawtee.com

  • Mobile Application in FlashBuilder 4.5

    Hi friends...
    I developed one mobile application in flash builder 4.5,But am getting the output as Blank Screen.
    Anybody give the solution.

    I am getting the same issue
    Please see the following screenshot that shows the view in flash builder and it's output as a blank window.
    Any help is much appriciated.
    Thanks,
    Alok

  • Dreamweaver Mobile Applications: Can't get past "Cloning seed app for Android" window

    I'm trying to do a basic Android app using Dreamweaver. I went to Site-->Mobile Applications-->Build and Emulate-->Android. When I do this a window pops up that says Cloning seed app for Android. Unfortunately, I can't get past this. The window continues to act like it is loading, but then it never loads anything. You're supposed to configure the application framework which I did. It's funny because there is an "Easy Install" button. Of course, it doesn't work which means you have to manually try to download and set everything up which is a nightmare that lasts for days. Easy Install button? It's more like a screw you button. All of the tutorials are predicated on the easy install button actually working. Anyways, I downloaded the Java Development Kit (JDK) and the Android software development kit (SDK). Then I got my AVD (Android virtual device) up and running. Then I  set up a site and made sure the file was saved as index.html. I also made sure I put in information in application settings. I tried calling Adobe tech support and doing extensive Google research. Adobe told me it wasn't their problem that the "Easy Install" button isn't working. Plus, troubleshooting information on Google for Dreamweaver mobile app development is scarce. It would be great to start developing instead of hassling with the setup. I'm a week into it and I still  can't get it to work. I'm using CS5.5 Design Premium.
    Lastly, I've done all the updates for dreamweaver that I can do. The only thing I can think of is maybe to try putting the SDK and JDK in the same folder, if that is even possible? Also, I'm using JDK6. Maybe the Android SDK will only run with JDK7? Either way I'm stumped. Any suggestions or help will be appreciated. Thanks.

    I've got the same issue.... in visual studio, you set the properties of the object to something like, content and it builds it with the binary.. but flash builder, i'm stumped on how to get the release build wizard to recoginize the additions i've selected in the project properties -> build packaging -> package contents section... :/

  • Java Script error with Mobile applications DW 5.5

    I am working with DW 5.5 testing out Mobile application 'build and emulate' function.  During the set up its asking me to configure the application settings. I already installed the Android SDK. And when I click on 'application settings' to get started I got this error message
    The quick backstory, I went  I ran into the issue installing the Android SDK and applied the fix listed on this link
    http://kb2.adobe.com/cps/904/cpsid_90408.html
    I installed the SDK without after appliing that fix, however I ran into the above problem. I attempted to delete the cache file per the FAQ, but was unable to locate it on my Win 7 machine. That dispite being in admin mode and having all folders visable in explorer
    I would be grateful for any help

    Thanks Robbie,
    I took your advice and upgraded, maybe, to IE 5.1.7, or at the least I reinstalled Internet Explorer.
    I just want to say what a great blessing is the USB memory stick to people like me. I don't have, and I can't get, DSL broadband. If I could I would like a shot. Not having that I trundle to the local branch library, plug-in my memory stick, download whatever I want, and trundle back home with it. What would have taken a half day to down load on dial up, takes about 5 minutes at the library.
    While I was there I also downloaded mozilla 1.3.1, the latest version of stuffit expander, talked to some nice people, and brought home a good book to read in the bargain.
    It was a good day. Kurt Vonngut was right, "People are made to f..t around."
    Lawrence
    Cube G4   Mac OS 9.2.x  

  • Solaris 9 and Sun ONE 6.1 SP 5 socket issues...

    Hi
    We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
    My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
    netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
    Anyone has a clue what could be going wrong..
    SA

    Hi
    We have recently migrated to Solaris 9 environment with Sun ONE 6.1 SP5 webserver (previously using Solaris 8 with Sun ONE 6.0).
    My problem is this that I have our product installed on Sun ONE webserver and every day I need to restart the virtual server running the application. Once the webserver has started and I do the
    netstat -a |grep "port" I see that the status for that particular socket is "LISTEN". Now after a while like the next day or something if I try to access the application through my browser I notice that I'm not able to go to application and when I do netstat -a: grep "port" there are two entries now one with "LISTEN" and the other with "ESTABLISHED" status. The request eventually times out.
    Anyone has a clue what could be going wrong..
    SA

  • Crystal Reports XI and Sun One 6.1 web server SP 5 Error finding JNDI name

    I am trying to create a Crystal Reports XI report in a JSP using Sun One 6.1 Web server sp 5.
    At this point I am getting the error �Error finding JNDI name� on Sun One
    The application will run on Netbeans/Tomcat
    I have done the following:
    I edited CRConfig.xml
    <?xml version="1.0" encoding="utf-8"?>
    <CrystalReportEngine-configuration>

    <DataDriverCommon>
         <JavaDir>C:\Program Files\Java\j2re1.4.2_10\bin</JavaDir>
    <Classpath>C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar;�</Classpath>

    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@10.10.10.10:1521:dev</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>lab_ro</JDBCUserName>
         <JNDIURL></JNDIURL>

    </JDBC>
    I created a report using JDBC (JNDI) connection and have the JNDI Connection set to the name of DATA.
    The report works just fine in Crystal Reports.
    Then in Netbeans I created an application and it runs in the Tomcat part of Netbeans
    In context.xml I have:
    <Context path="/BOEnterpriseTest3">
    <Resource name="jdbc/dev" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev"
    username="theuserid" password="thepassword" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>
    In web.xml I have
    <web-app>
    <context-param>
    <param-name>crystal_image_uri</param-name>
    <param-value>crystalreportviewers11</param-value>
    </context-param>

    <taglib>
    <taglib-uri>/crystal-tags-reportviewer.tld</taglib-uri>
    <taglib-location>/WEB-INF/crystal-tags-reportviewer.tld</taglib-location>
    </taglib>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <description>jdbc:oracle:thin:@10.10.10.10:1521:dev</description>
    <res-ref-name>Data</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </web-app>
    in web-inf\sun-web.xml I have
    <sun-web-app>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>Data</jndi-name>
    </resource-ref>
    </sun-web-app>
    I have copied all of Common Files\Business Objects\3.0\java\lib and Common Files\Business Objects\3.0\java\lib\external to the lib folder
    I have copied crystalreportviewers11 to the root of my web application
    I have tried to load the JNDI information and display the report
    <%@page pageEncoding="UTF-8"
    import="com.crystaldecisions.reports.reportengineinterface.*,
    com.crystaldecisions.report.web.viewer.*,
    javax.naming.*,
    javax.sql.*,
    java.sql.*"%>
    <%
    InitialContext initContext = new InitialContext();
    DataSource source = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    try{
         // Look up our data source
    DataSource ds = (DataSource)initCtx.lookup("Data");
    out.println("found ds under jdbc/Data");
    catch ( NamingException e ){
    // Look up our data source
    DataSource ds = (DataSource) initContext.lookup("java:comp/env/jdbc/dev10g");
    initCtx.bind("Data", ds);     
    out.println("found ds under java:com/env:jdbc/Data - bound into root initial context for Crystal to find");
    %>
    <%
    //Use the relative path to the report; the physical or full qualified URL cannot be used.
    String reportName = "useridincluded.rpt";
    //Database username and password
    String userName = "theuserid";
    String password = "thepassword";
    //check to see if the Report Source Session Variable already exist
    Object reportSource = session.getAttribute("Report1");
    // Create a new ConnectionInfos and ConnectionInfo object
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfos connectionInfos = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfos();
    com.crystaldecisions.sdk.occa.report.data.ConnectionInfo connectionInfo = new com.crystaldecisions.sdk.occa.report.data.ConnectionInfo();
    //Set username and password for the report's database
    connectionInfo.setUserName(userName);
    connectionInfo.setPassword(password);
    //Add object to collection
    connectionInfos.add(connectionInfo);
    //---------- Create a ReportClientDocument -------------
    com.crystaldecisions.reports.sdk.ReportClientDocument reportClientDocument = new com.crystaldecisions.reports.sdk.ReportClientDocument();
    //---------- Set the path to the location of the report soruce -------------
    //Open report.
    reportClientDocument.open(reportName, 0);
    //Get the report source
    reportSource = reportClientDocument.getReportSource();
    //---------- Create the viewer and render the report -------------
    //create the CrystalReportViewer object
    com.crystaldecisions.report.web.viewer.CrystalReportViewer crystalReportViewer = new com.crystaldecisions.report.web.viewer.CrystalReportViewer();
    //set the reportsource property of the viewer
    crystalReportViewer.setReportSource(reportSource);
    //set the DB logon into the viewer
    crystalReportViewer.setDatabaseLogonInfos(connectionInfos);
    //set viewer attributes
    crystalReportViewer.setOwnPage(true);
    crystalReportViewer.setOwnForm(true);
    crystalReportViewer.refresh();
    //set the CrystalReportViewer print mode
    //crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.ACTIVEX);
    crystalReportViewer.setPrintMode(com.crystaldecisions.report.web.viewer.CrPrintMode.PDF);
    //process the report
    crystalReportViewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    %>
    On the Sun One Web server
    On the Java Tab
    JDBC Connection Pools
    Pool Name = dev10g
    Class name = oracle.jdbc.pool.OracleDataSource
    User id = theuserid
    url = 10.10.10.10
    password=thepassword
    JDBC Resources
    JNDI Name=dev10g
    Pool = dev10g
    I get the error finding JNDI name � how do I tell Sun One where the JNDI is to make Crystal Reports work?

    I tried the following to test the JNDI
    I am trying to do JNDI in Sun One Web server 6.1 sp 5 but I seem to be missing an important part. I get two different errors based on the JSP code, �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance� or �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�.
    Context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/BOTest">
      <Resource name="jdbc/dev10g" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
      <Resource name="Data" auth="Container" type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@10.10.10.10:1521:dev10g"
    username="userid" password="password" maxActive="20" maxIdle="10" maxWait="-1"/>
    </Context>Sun-one.xml:
    <sun-web-app>
    <context-root>BOTest</context-root>
    <resource-ref>
    <res-ref-name>jdbc/dev10g</res-ref-name>
    <jndi-name>jdbc/dev10g</jndi-name>
    </resource-ref>
    </sun-web-app>web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>jdbc/dev10g</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <resource-ref>
            <description>jdbc:oracle:thin:@10.10.10.10:1521:dev10g</description>
            <res-ref-name>Data</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Application</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
    </web-app>server.xml has:
    <RESOURCES>
    - <JDBCCONNECTIONPOOL name="dev10g" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/dev10g" poolname="dev10g" enabled="on" />
      <JDBCRESOURCE jndiname="Data" poolname="dev10g" enabled="on" />
    - <JDBCCONNECTIONPOOL name="Data" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
      <PROPERTY name="User" value="lab_ro" />
      <PROPERTY name="URL" value="jdbc:oracle:thin:@10.45.3.197:1521:dev10g" />
      <PROPERTY name="Password" value="0asphalt1" />
      </JDBCCONNECTIONPOOL>
      <JDBCRESOURCE jndiname="jdbc/Data" poolname="Data" enabled="on" />
      <JDBCRESOURCE jndiname="dev10g" poolname="dev10g" enabled="on" />
      </RESOURCES>I am getting the following error: �Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance�
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
    init = new InitialContext();
    Context envCtx = (Context) init.lookup("java:comp/env");
    datasource = (DataSource)  envCtx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>I get the following error: Cannot retrieve data source: javax.naming.NamingException: Cannot create resource instance
    With the following code:
    <%@page
       import="java.io.*,
               javax.sql.*,
               javax.naming.*,
               java.sql.*,
               java.util.*"%>
    <%
    Context init;
    Context ctx;
    DataSource datasource;
    Connection con;
    try
        init = new InitialContext();
        ctx = (Context) init.lookup("java:comp/env");
        datasource = (DataSource) ctx.lookup("jdbc/dev10g");
    catch(NamingException ex)
        out.print("Cannot retrieve data source: " + ex.toString(true));
        return;
    try
        con = datasource.getConnection();
    catch (Exception e)
      out.print("Cannot retrieve connection: " + e.toString());
      return;
    try
        PreparedStatement pstmt = con.prepareStatement("SELECT PROJNO FROM MATERIALSLAB.VW_ASPHALTHEADERINFO");
        ResultSet results = pstmt.executeQuery();
        while (results.next())
        out.println(results.getString(1));
    catch(Exception ex)
    out.print("Got connection, can't execute query: " + ex.toString());
    return;
    %>

  • Starter question: ear created on sun one studio can't be redployed

    Just start learning sun one studio. Followed the tutorial of helloworld, test succeed on sun one studio's RI server. I tried to redeploy the ear file on sun one's application 7, got error message:
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: hello cause: Error reading from file: C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\hello_2\sun-EJBModule_Greeter.xml
    under hello_2 folder, the applicaiton server unzipped descriptor is named: EJBModule_Greeter.xml.
    shouldn't the ear file be able to redeploy without modification on any J2EE complied application server? what did I do wrong?
    Thanks for your help.
    regards.

    I'll answer my own question - for anyone else who may want to know. The tool is SUN ONE Migration tool for application servers, and it can be found at URL http://www.sun.com/migration/sunonetools.html.
    The migration is from J2EERI to S1AS. I haven't tried it out yet , but will soon.
    Earlier I asked ...
    Do I understand correctly - I must use a migration
    tool to migrate from SUN ONE to SUN ONE?

Maybe you are looking for

  • How to access the datasource window in SSRS for sql server 2008 R2 for writing my query without having to go through the wizard?

    I have used SSRS a lot years ago with Sql Server 2000 and Sql Server 2005. I have written external assemblies, ... But now I have to do this with Sql Server 2008 (R2 -- which I realize I am way behind the times already but ...)  in sql server 2000 an

  • Can't see video in canvas window on my video Monitor!

    I am having trouble seeing the video that is in my canvas and viewer Window on my video monitor. I Have firewire in to my DV Deck and S-video into my monitor. I can see when I play back at DV tape and everything digitizes ok so I know the firewire is

  • ITunes 7.3.1 and QT 7.2 vs. ProTools

    Hello, I have updated to new versions of iTunes (from 7.3 to 7.3.1) and QuickTime (from 7.1.6 to 7.2). After I updated these programs, my ProTools LE (7.3.1cs3) cannot start (either by clicking the application, or indeed any previously saved sessions

  • Connecting ipod touch to belkin 54g

    Hi there, I've got this belkin 54g router, and it will not connect to my touch. It connects to my wii, ps3 and other pc's fine. I'm using a WEP key, with mac filtering disabled etc and it still wont work. I lost my network completely today by fiddlin

  • Will a Radeon 9600XT from a G5 DP 2.5GHz fit in a G4 450MHz 3,1

    Dear All, I know this is rather a legacy question what with us being on the brink of Snow Leopard and Power PC being put out to pasture but I've managed to salvage an unloved G4 from the Office dead pile and get it running again. Here's the specs: Mo