MySQL & Sun ONE studio problem

hello all,
It seemed like I've got the data source & database driver stuff setup to work with MySQL database in Sun ONE studio. However, when I tried to run the helloworld_TestApp (CMP App), I've got the SQL syntax error. I tried to look at the sun-j2ee-ri.xml, and it looked just fine to me.. please help.
Here is the XML descriptor
<?xml version="1.0" encoding="UTF-8"?>
<j2ee-ri-specific-information>
<server-name></server-name>
<rolemapping/>
<web>
<display-name>helloworld_TestApp</display-name>
<servlet>
<servlet-name>dispatch</servlet-name>
</servlet>
<servlet>
<servlet-name>error</servlet-name>
</servlet>
<servlet>
<servlet-name>viewer</servlet-name>
</servlet>
<context-root>helloworld_TestApp</context-root>
<ejb-ref>
<ejb-ref-name>ejb/TestedEJB</ejb-ref-name>
<jndi-name>helloworld</jndi-name>
</ejb-ref>
</web>
<enterprise-beans>
<unique-id>1</unique-id>
<ejb>
<ejb-name>helloworld</ejb-name>
<jndi-name>helloworld</jndi-name>
<ejb20-cmp>
<sql-statement>
<operation>loadRow</operation>
<sql>SELECT "lastname" FROM "helloworld" WHERE "firstname" = ? </sql>
</sql-statement>
<sql-statement>
<operation>storeRow</operation>
<sql>UPDATE "helloworld" SET "lastname" = ? WHERE "firstname" = ? </sql>
</sql-statement>
<sql-statement>
<operation>deleteRow</operation>
<sql>DELETE FROM "helloworld" WHERE "firstname" = ? </sql>
</sql-statement>
<sql-statement>
<operation>deleteTable</operation>
<sql>DROP TABLE "helloworld"</sql>
</sql-statement>
<sql-statement>
<operation>findByPrimaryKey</operation>
<sql>SELECT "firstname" FROM "helloworld" WHERE "firstname" = ? </sql>
</sql-statement>
<sql-statement>
<operation>createRow</operation>
<sql>INSERT INTO "helloworld" ( "firstname" , "lastname" ) VALUES ( ? , ? )</sql>
</sql-statement>
<sql-statement>
<operation>createTable</operation>
<sql>CREATE TABLE "helloworld" ("firstname" VARCHAR(255) NOT NULL , "lastname" VARCHAR(255), CONSTRAINT "pk_helloworl" PRIMARY KEY ("firstname") )</sql>
</sql-statement>
<create-table-deploy>true</create-table-deploy>
<delete-table-undeploy>false</delete-table-undeploy>
</ejb20-cmp>
<principal>
<name></name>
</principal>
<ior-security-config>
<transport-config>
<integrity>supported</integrity>
<confidentiality>supported</confidentiality>
<establish-trust-in-target>supported</establish-trust-in-target>
<establish-trust-in-client>supported</establish-trust-in-client>
</transport-config>
<as-context>
<auth-method>username_password</auth-method>
<realm>default</realm>
<required>true</required>
</as-context>
<sas-context>
<caller-propagation>supported</caller-propagation>
</sas-context>
</ior-security-config>
</ejb>
<cmpresource>
<ds-jndi-name>jdbc/MySQL</ds-jndi-name>
<default-resource-principal>
<name>root</name>
<password>root</password>
</default-resource-principal>
</cmpresource>
</enterprise-beans>
</j2ee-ri-specific-information>
And here is the error message:
The exception java.rmi.ServerException was thrown when invoking findByPrimaryKey with parameters:
thinh
Following is the stack trace:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"helloworld" WHERE "firstname" = 'thinh'' at line 1; nested exception is: java.sql.SQLException: Syntax error or access violation: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"helloworld" WHERE "firstname" = 'thinh'' at line 1 at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:345) at javax.rmi.CORBA.Util.wrapException(Util.java:277) at ..
...more and more..

Where are you running your application? I assume you
are running your application on RI. Are you running
on RI or S1AS?I am running my application on R1, is there a problem with it? can the S1AS solve the problem?
Thanks & regards,
Tim

Similar Messages

  • Connecting to MySQL from Sun One Studio

    Hi,
    I am trying to connect to the MySQL from the Sun One Studio 5. I followed these steps.
    1. I downloaded the MySQL software and installed on my local computer, it was successful.
    2. I got the drivers [b][b][b]mysql-connector-java-3.0.8-stable-bin.jar and placed it in the <stdudio5>/lib/ext/ directory.
    3. And I successfully got through that one also, and in the database section it showed me the icon for connecting to mysql database. I gave the url, username, and password. It worked fine.
    4. Then I created the connection pool, JDBC resource, and Persistence manager for my server instance. It was also successful.
    5. When I built a cmp bean accessing the table in mySQL database, it is giving me these errors.
    If you notice these error, it is asking for vendor type. But i don't have any option to choose the vendor type when i configured the database resources.
    Can soem body suggest some other method and clear this error. I am struggling with this since a week.
    Thank you.
    [[b]09/Oct/2003:11:12:31] WARNING ( 3476): Cannot get database metadata: database product name.
    java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnection(SystemJdbcDataSource.java:252)
    at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(SystemJdbcDataSource.java:154)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
    at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(EJBHelper.java:169)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:781)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    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.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    [09/Oct/2003:11:12:31] INFO ( 3476): Bean Jobinfo method ejbFindByTitle: problems running JDOQL query.
    com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the vendor type for the data store.
    NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:802)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
    at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.jdoGetPersistenceManager(JobinfoBean_1956195957_ConcreteImpl.java:1479)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl.ejbFindByTitle(JobinfoBean_1956195957_ConcreteImpl.java:541)
    at JAdminEntityBeans.JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.findByTitle(JobinfoBean_1956195957_ConcreteImpl_RemoteHomeImpl.java:175)
    at JAdminEntityBeans._JobinfoHome_Stub.findByTitle(Unknown Source)
    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.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:231)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:96)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:189)
    at jasper.dispatch_jsp._jspService(_dispatch_jsp.java:136)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    The AS7 error suggests that you have not set up the server startup classpath to include the driver jar. The steps to do this are included in the article mentioned in Chris's reply, namely:
    http://developers.sun.com/tools/javatools/tips/tip03-08-22.html
    Note especially the part starting with Step 3 under the section "Enabling the JDBC Driver in the IDE."
    -Jane

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Sun ONE Studio 5 Installation problem

    Hi,
    I have problems to install Sun ONE Studio 5.
    I download it from the download center (my username is nicola80) and I can't
    install it in my Linux Mandrake 8.2 version. The problem is that when the
    InstallShield start, I have the error message: "To install Sun ONE Studio 5
    you need to log in as superuser or a user with administrator privileges".
    Thank you!
    Nicola.

    I am getting the same problem. and I have tried loggin in as root. I am guessing it's checking access to some file....anyone know which one?

  • Sun ONE Studio 8 problem

    Hi All
    we have been facing problem in Sun ONE Studio 8 installed on solaris 10.problem is as follows
    path: /opt5/SUNWspro/bin/analyzer
    I am trying to use analyzer in the following way.
    1. "/opt5/SUNWspro/bin/collect /dvobs/fp/rhythm/rhythm_server -dir . -custom_dir . -port 3434 -timer -progress -debug noabort"
    2. This command should create a file "test.1.er" in the current directory. but instead of that it creates a directory with the same name.
    3. Next when i try to analyze using command "/opt5/SUNWspro/bin/analyzer test.1.er" it gives error "This product cannot find a valid serial number."
    thanks in advance
    kanki

    Sun ONE Studio 8 is very old, and not recommended.
    The command should create a directory, not a file. The format was changed from
    a file and a hidden directory, to be a visible directory.
    To use the analyzer, you need a "Sun ONE Studio 4u1 EE" license.
    But really, you should be using a much later version, preferably Studio 11,
    the last FCS version.
    Marty Itzkowitz

  • Problem installing Sun ONE Studio 4 update 1, Community Edition

    I recently downloaded the Sun ONE Studio 4 update 1, Community Edition and tried to install it. At one point it searches for a valid JAVA 2 SDK. This seems to go on forever. I quit after 5 hours of waiting. I already have Java 2 standard edition v1.4.1 installed. Can someone please help?

    Well thanks Chuck!
    With a bit of messing around and a LOT of patience I finally installed Sun ONE Studio update 1 on my laptop pc, running Windows ME.
    The trick was (I think) to apply both of the above fixes, but also a couple of things that was not quite as evident.
    1 - Do NOT install the SDK in "C:\Program Files\" or any directory path that contains spaces in the name! Apparently that causes problems, and is noted in one of the Knowledge Base articles.
    2- When making the file noted in the Knowledge Base:
    ( http://forte.sun.com/cgi-bin/WebX?[email protected]@.ee815f4 )
    - It says: Contents of this new file should be:.
    jh=<jdk Home Path> (for example, jh=c:\j2sdk1.4.0_01)
    Well it does NOT mention that there should be 2 lines in that file!
    Make sure you include a carriage return and a second "blank" line!
    OK, that's it. GO ahead & loose yourself in the IDE.
    I hope this does not cause undue traffic in the forums but what the heck...
    -- HSC --

  • Problem Installing Sun One Studio ce on Linux RedHat 8.0

    I have a problem installinh Sun One Studio CE on a machin with Linux RedHat 8.0.
    The installation starts but at about 80% of its ther is an error and install stops.
    Does anybody help me?
    I don't know what error stop the install

    I'm having the same problem.
    The Sun One Studio CE starts up fine then towards the end it says:
    "installing... this my take a few minutes"
    But it doesn't, in fact it freezes there and doesn't do anything else.
    (I left it running over night and it was still there with the same message)
    Need help.

  • Adding CMP-fields to a EJB in sun ONE studio 5

    I have a CMP EJB, and initialized its fields against a table in a database (PointBase). When I later try adding additional fields, these fields naturally doesnt exist in the database.
    Then i make a test-module for the CMP EJB. When I try mapping the CMP-fields, I get in trouble with the field that doesnt exist in the database-table.
    How can I get around this problem, must I really manually update the database schema, or can I somehow "tell" SUN ONE studio to make the field for me.

    yes, but is there a way of letting J2EE handle all
    this "Under the hood", so i dont even have to worry
    about the internal datastructure in the database?You could drop the table from the database and then have Studio or deploytool create the tables (now with the additional fields) on deployment.
    -Ian Evans
    Sun Microsystems
    J2EE Tutorial team

  • Using JMF API with Sun One Studio v4 update 1 (community ed.)

    Having great difficulty trying to utilise the JMF API I've just downloaded with Sun One Studio v4, update 1 (community edition).
    After installing the API, I tried copying the the .jar files under the lib folder of JMF to the lib folder of sun one studio.
    Although admittedly a novice in the field of adding API's I have attempted to add the .jar files into the libary of recognised modules but made no progress.
    The problem is that although JMF API is installed, Sun One Studio does not seem to be aware of this and so does not recognise any associated libraries e.g. java.media or JMFApplet.
    I would appreciate advice from anyone who knows how to configure Sun One Studio to utilise the JMF API.
    Mark

    All right, I think I may have solved it. After mounting jmf.jar I needed to update the parser database. All the libraries seem to be there.
    Can someone clarify though, the trial program i'm using makes reference to: java.media
    I don't have this module. I do instead have javax.media which I believe includes all the methods of the java version. Am I right or am I missing this crucial module??

  • Bug Database for Sun ONE Studio 8

    Is there an online bug database for the Sun ONE Studio 8 Compiler Collection, like there is for all of the Java related tools? I know we have product support, but I don't want to go through the overhead of 4 or 5 layers of people to report a minor problem I have found.
    The minor problem is that the er_src utility will open files in the current working directory in preference to an absolute pathname specified on the command line. I used it from my home directory, giving it an executable name and source file name each about 5 levels deep in directories below my home -- with absolute paths. I was shocked to see the source from a six year old version of the file in the output. The 'truss' utility revealed that the source was being opened from my current directory -- ignoring the absolute path. This version of the file is one I have kept for reference, being the initial port of the program from a different language.
    It appears that er_src attempts the unqualified file name first, then the absolute path if it fails to find the unqualified name.

    The er_src man page does say the .er.rc files are processed, which implies that the setpath/addpath handling is done, at least to me. So the behavior reported is what I would have expected, but the manpage could, and should be more explicit.
    The er_print man page is more specific, and does say that the compiled-in path is used only if the file is not found searching the current path mappings, which do contain "."
    Can you tell me exactly what you'd like us to do? We did it this way because users complained about using the compiled in path, rather than finding the file in . or the experiments, where we explicitly tell people to copy files for archival purposes.
    If you want us to change the behavior, please tell us EXACTLY what the desired behavior is. We could define a special symbol, like $EXPTS, to refer to the compiled-in path, $COMPPATH, perhaps, and then it could be put before or after . or $EXPTS.
    Another issue is which name to use when. er_src has two referents for a path, one for "object", the thing whose source is being dumped, and a second for "item", specifying which item contained in the object should be dumped. For item, I believe we always only use the
    base name, even if an absolute name is given. It is used to match against the names contained in object's symbol tables. All of this is complicated by NFS -- the present functionality is intended to behave gracefully when a file is examined on a machine other than the one on which
    it was compiled.

  • Superuser without privileges installing Sun One Studio in Debian Linux

    i am trying to install Sun One Studio in my Debian Linux and when i launch the setup application it tells me that i must log in as superuser to install. Well, the thing is that i launch the installer as root, but the program doesn't seem to think the same :)
    Surprisingly, the log file doesn'l show any related error; it only shows a warning about some widgets... so this seems to be a simple bug in the installer.
    Here's the log:
    file type: 5
    file id: 0
    length: 1009
    offset: 624320
    file name: Verify.jar
    file type: 0
    file id: 1
    length: 145
    offset: 625329
    file name: instructions.txt
    file type: 2
    file id: 2
    length: 728
    offset: 625474
    file name: launch.txt
    file type: 1
    file id: 3
    length: 347
    offset: 626202
    file name: path.jvm
    file type: 1
    file id: 4
    length: 542
    offset: 626549
    file name: sunjdk14.jvm
    file type: 1
    file id: 5
    length: 584
    offset: 627091
    file name: sunjre14.jvm
    file type: 1
    file id: 6
    length: 485
    offset: 627675
    file name: sunjdk131.jvm
    file type: 1
    file id: 7
    length: 461
    offset: 628160
    file name: sunjre131.jvm
    file type: 1
    file id: 8
    length: 423
    offset: 628621
    file name: blackdownjdk131.jvm
    file type: 1
    file id: 9
    length: 418
    offset: 629044
    file name: blackdownjre131.jvm
    file type: 1
    file id: 10
    length: 548
    offset: 629462
    file name: sunjdk13.jvm
    file type: 1
    file id: 11
    length: 432
    offset: 630010
    file name: blackdownjdk13.jvm
    file type: 1
    file id: 12
    length: 433
    offset: 630442
    file name: blackdownjre13.jvm
    file type: 1
    file id: 13
    length: 461
    offset: 630875
    file name: ibmjdk13.jvm
    file type: 1
    file id: 14
    length: 468
    offset: 631336
    file name: ibmjre13.jvm
    file type: 1
    file id: 15
    length: 449
    offset: 631804
    file name: sunjre13.jvm
    file type: 6
    file id: 16
    length: 210451841
    offset: 632253
    file name: s1s5u1se-linux-en.jar
    Finding a JVM
    Initiating JVM search based on hints...
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using platform hints
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using path hints
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using platform specific JVM Path hints
    Checking JVM at /mnt/local/j2sdk1.4.2_04/ which was resolved from the platform JVM path /mnt/local/j2sdk1.4.2_04/bin
    Verifying JVM at /mnt/local/j2sdk1.4.2_04/bin/java
    for JVM: Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable
    Executing launch script command: "/mnt/local/j2sdk1.4.2_04/bin/java" -cp "/tmp/isjbAAjZc/Verify.jar" "Verify" java.vendor java.version in working directory /mnt/local/lalala/.
    Output from the launch script execution
    StdOut:
    1739021872
    Sun Microsystems Inc.
    1.4.2_04
    ErrOut:
    Found matching JVM at /mnt/local/j2sdk1.4.2_04/
    Matching JVM home is /mnt/local/j2sdk1.4.2_04/
    Matching JVM file is /tmp/isjwSPfK2
    Executing launch script command: "/mnt/local/j2sdk1.4.2_04//bin/java" -cp "/tmp/isjxGApzS/s1s5u1se-linux-en.jar" -Dtemp.dir="/tmp" -Dis.jvm.home="/mnt/local/j2sdk1.4.2_04/" -Dis.jvm.temp="0" -Dis.media.home="/tmp/isjxGApzS/s1s5u1se-linux-en.jar" -Dis.launcher.file="/mnt/local/lalala/./s1s5u1se-linux-en.bin" -Dis.jvm.file="/tmp/isjwSPfK2" -Dis.external.home="/mnt/local/lalala/." run in working directory /mnt/local/lalala/.
    Output from the launch script execution
    StdOut:
    ErrOut:
    Warning:
    Name: scrollbar
    Class: XmScrollBar
    The scrollbar page increment is less than 1.
    Warning:
    Name: scrollbar
    Class: XmScrollBar
    The scrollbar page increment is less than 1.
    Any idea? thanks for reading!

    The error you report is not causing the problem.
    Try : http://swforum.sun.com/jive/thread.jspa?forumID=128&threadID=29443
    -Alexis

  • Installation sun one studio ver. 5 fail in mandrake

    I download sun one studio ver.5 in my mandrake linux ver. 9.0 and I have jsdk1.4.1_03. When I tried install it I received this message:
    To install sun one studio 5 you need to log in a superuser or a user with administrator privileges.
    I login in a term with root user and also start X session with root user but received this error also.
    any sugestion??

    I finally solved the problem by modifying the java source code of the installer. It did unnecessary checks for supported distributions and their versions. After removing these checks, SUN ONE Studio 5 installed and ran properly.
    Here is how to do it in short:
    1. Unzip the downloaded binary installation file into some folder. I will refer to this folder as "setuproot".
    2. Starting from the "setuprot" folder, find the file com/ibm/wizard/platform/linux/LinuxRedHatCommands.class.
    3. Decompile this file using the "Jad" Java decompiler. You can find it at http://kpdus.tripod.com/jad.html .
    4. Rename the resulting LinuxRedHatCommands.jad file to LinuxRedHatCommands.java.
    5. Modify LinuxRedHatCommands.java in the following way: Find the method "isValidDistribution()" and replace its whole body with the following line: "return true;" Save the modified file.
    5. Compile the modified java file by executing the following command from the "setuproot" folder: "javac com/ibm//wizard/platform/linux/LinuxRedHatCommands.java"
    6. Now start the installation with the "java run" command from the "setuproot" folder.
    Now it should not complain about insufficient administrative privileges.
    (A properly installed java1.4.1_02 or above SDK is a requirement for both the Studio5 and for the above instructions to work.)
    I still was not able to install the bundled Application Server7, because it's check box was disabled with a comment about my incompatible platform. I guess this will be the next step to resolve...
    Cheers,
    George

  • Oracle.jdbc.driver.OracleDriver not found in Sun ONE Studio

    I get this message when I try to connect to the database while creating an EJB. I have tried adding the path to my CLASSPATH, and to adding it to the various CLASSPATHs within Sun ONE Studio. IDE_HOME is defined correctly but OracleDriver.class is still not found. Anyone know what my problem might be?
    Thanks,
    Michael A. Moran

    Hi Sujatha,
    Thanks for responding. My CLASSPATH is as follows:
    madonna% echo $CLASSPATH
    /export/oracle/jdbc/lib:/export/oracle/jlib:/export/oracle/jsp/lib:/export/oracle/sqlj/lib/runtime.zip:/export/oracle/oem_webstage:/export/oracle/lib/aurora_client.jar:/export/oracle/jdbc/lib/classes12.zip:/export/oracle/sqlj/lib/translator.zip:/export/oracle/sqlj/lib/runtime12.jar:/export/oracle/lib/vbjorb.jar:/export/oracle/lib/vbjapp.jar:/export/oracle/lib/mts.jar:/export/oracle/javavm/lib/aurora.zip:/export/oracle/javavm/utl/ejb/lib/vbj30ssl.jar:/export/oracle/jlib/javax-ssl-1_2.jar:/export/oracle/jlib/jssl-1_2.jar:/export/oracle/lib/servlet.jar:/export/oracle/lib/http_client.jar:/export/oracle/lib/http_server.jar:/export/oracle/oem_webstage/oracle/jdbc/OracleDriver.class:/export/oracle:/export/oracle/jdbc/lib/nls_charset12.jar
    Which as you can see includes classes12.zip and /export/oracle/oem_webstage/oracle/jdbc/OracleDriver.class
    I have also set all the IDE internal classpath variables to the same settings. It has no effect. I still get the same message.
    Michael

  • Installation of Sun ONE Studio 5 SE 60 days trial

    It's supposed that a standard installation includes Sun ONE Studio and Sun ONE Application Server 7 with PointBase.
    I installed twice, in both installations the IDE works fine. But despite the installation completes without any error message neither Sun ONE Application Server 7 nor PointBase are installed.
    My OS is Windows XP.
    Could someone help me to find why this happens?
    Thanks!!!

    I read now the log generated during the installation. It shows a lot of error lines. But I'm not able to know the cause of the problem. The IDE is installed OK, but there is not any evidence of PointBase and Sun One Server installation.
    It follows the log file content:
    (Aug 20, 2004 3:51:51 PM), Setup.product.install, com.installshield.product.actions.Files, err, java.util.zip.ZipException: incorrect data check
    STACK_TRACE: 16
    java.util.zip.ZipException: incorrect data check
         at com.installshield.archive.index.ISInflaterInputStream.read(CompressedURLConnection.java:147)
         at java.io.FilterInputStream.read(FilterInputStream.java:90)
         at com.installshield.product.actions.Files.copy(Files.java:700)
         at com.installshield.product.actions.Files.copyFileWithFileService(Files.java:737)
         at com.installshield.product.actions.Files.install(Files.java:378)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(PureJavaProductServiceImpl.java:1868)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(PureJavaProductServiceImpl.java:4649)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(InstallableObjectVisitor.java:365)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(InstallableObjectVisitor.java:325)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(InstallableObjectVisitor.java:135)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(PureJavaProductServiceImpl.java:4276)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(PureJavaProductServiceImpl.java:3652)
         at com.installshield.wizard.service.AsynchronousOperation.run(AsynchronousOperation.java:40)
         at java.lang.Thread.run(Thread.java:534)
    (Aug 20, 2004 3:51:56 PM), Setup.product.install, com.sun.installer.InstallApplicationServerAction, err, java.lang.NullPointerException
    STACK_TRACE: 14
    java.lang.NullPointerException
         at com.sun.installer.RunCommand.flush(RunCommand.java:170)
         at com.sun.installer.InstallApplicationServerAction.runCommand(InstallApplicationServerAction.java:260)
         at com.sun.installer.InstallApplicationServerAction.install(InstallApplicationServerAction.java:146)
         at com.installshield.product.service.product.PureJavaProductServiceImpl.installProductAction(PureJavaProductServiceImpl.java:1868)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.getResultForProductAction(PureJavaProductServiceImpl.java:4649)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitComponent(InstallableObjectVisitor.java:365)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitInstallableComponents(InstallableObjectVisitor.java:325)
         at com.installshield.product.service.product.InstallableObjectVisitor.visitProductBeans(InstallableObjectVisitor.java:135)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$InstallProduct.install(PureJavaProductServiceImpl.java:4276)
         at com.installshield.product.service.product.PureJavaProductServiceImpl$Installer.execute(PureJavaProductServiceImpl.java:3652)
         at com.installshield.wizard.service.AsynchronousOperation.run(AsynchronousOperation.java:40)
         at java.lang.Thread.run(Thread.java:534)

  • Can not add the Palm Emulator to Sun ONE Studio 5 ME

    I am trying to add the Palm Emulator (version 3.5) to the list of emulation devices within the Sun ONE Studio 5 ME.
    First, it seems like Studio 5 requires that the emulator resides in a bin subdirectory. Second and here where the problem is. Once the emulator is identified by Studio 5 (as a "Standard UEI Emulator" and after I click on "Next", Studio 5 tries to get information about the configuration of the emulator and its profiles.
    I, immediately get an error (generated by the Palm OS Emulator) stating: "Don't understand the command line parameter "-version"." within a message box. Once I click OK, the Studio 5 says that the operation failed.
    This is as far as I could go.
    I would like to mention that I am running Windows XP Professional with Service Pack 1. I am also working with a ROM image that I downloaded from my PalmVx PDA.

    Hello Hassan,
    I've done the following: I've used Palm emulator that's included with WTK 1.0.4_01 provided with Sun ONE Studio 5, ME. If you try to execute application using this 'device' you'll be asked to point to directory with Palm Emulator 3.5 (the one you have), emulator.exe. Then it takes over and asks for skins, ROMs and other stuff.
    Hope this helps,
    Peter

Maybe you are looking for