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

Similar Messages

  • Creating JAR of an ejb from sun one studio 5.0

    I�ve got the following error when I�m trying to generate the jar of and ejb from sun one studio 5.0. What�s the problem?
    org/w3c/dom/Document.java [0:0] No file named org/w3c/dom/Document.java exists on disk in src.zip.
    Therefore it may not be compiled with an external compiler.
    You may need to check it out from version control or save some changes to it.
    com/ssos/ejb/information/EJBModule_InformationEJB.ejbmodule [0:0] Problem compiling class: "org/w3c/dom/Document" reason: Compile failed
    Called From: com/iplanet/services/util/XMLParser
    Called From: com/iplanet/services/ldap/DSConfigMgr
    Called From: com/iplanet/services/util/I18n
    Called From: com/iplanet/sso/SSOTokenManager
    Called From: com/iplanet/am/sdk/AMCommonUtils
    Called From: com/iplanet/am/sdk/AMException
    Called From: com/iplanet/dpro/session/service/SessionService
    Called From: com/iplanet/services/naming/WebtopNaming
    Called From: com/iplanet/dpro/session/SessionID
    Called From: com/iplanet/dpro/session/Session
    Called From: com/iplanet/am/util/Locale
    Called From: com/iplanet/sso/SSOException
    Called From: com/iplanet/sso/SSOToken
    Called From: com/ssos/ejb/information/LocalInformationEJB
    Errors compiling EJBModule_InformationEJB.

    Hep, we have the same problem. I am still trying to figure out why. I have some idea about the reason but I am testing my founding. It seems to me that the problem shows up when I add my database driver in Runtime/Databases/drivers tree (IBM DB2 driver: db2jcc.jar)
    Like I am saying I am still checking the connection. When I am convinced that indeed that is the problem, I will then try to find out why and what to do to make my life easier.
    clogon

  • How to migrate projects from sun one studio 5

    hi,
    can anybody tell me how to migrate existing projects from sun one studio 5 to sun java studio 8 projects?
    regards
    guenther

    Hi,
    It has been a while since I have had access to sun one studio 5. If I remember correctly, it was based on Netbeans 3.5.1. It turns out the Sun Java Studio Enterprise 7 release was based on Netbeans 3.6. Both of these Netbeans versions used mounted filesystems rather than the new project system. There is a migration guide from JSE 7 to JSE 8 available:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/techart/jse8/intro_migration_jse8.html
    I think this migration guide will apply to your situation as well.
    Let me know if this helps.
    Thanks,
    George

  • 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

  • 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

  • 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.

  • Installing Sun One Studio on Linux Mandrake 9.1

    I try to install the Sun One Studio 5 on my mandrake 9.1 Linux.
    I am using the jdk 1.4.2 and I am logged as root.
    When running the command:
    ./s1s5se-linux-en.bin -isjavahome /home/products/j2sdk1.4.2
    I get the error message:
    The installation cannot continue for the following reason(s):
    To install Sun ONE Studio 5 you need to log in as superuser or a user with administrator privileges.

    Yep I agree this is very disapointing, however I have got Sun One Studio 5 Standard Edition working on Mandrake 9.1
    Fortunatley I am lucky enough to have a spare hard drive and RedHat7.2, another pc networked up and the following is what I did....
    Installed Redhat7.2, j2sdk1.4.2, then ran the SunOneStudio install as root, tested and works fine.
    The Studio gets installed into /opt there are 2 dirs which are needed from what I can tell 1 is the ide "studio5_se" itself and the other called "imq"
    cd into the root dir and create a tar file of the opt dir
    tar -cf opt.tar opt
    gzip opt.tar
    I then copied the opt.tar.gz to a place I could download to the other machine, so I downloaded it, then shutdown RedHat,
    re-installed my original Mandrake9.1 Hard Drive, and booted up.
    logged in as root, and then transferred my opt.tar.gz to Mandrake,
    untared it into the opt dir and then moved the imq and studio5_se dirs into /opt
    installed j2sdk1.4.2 rpm on Mandrake9.1
    then command line I
    1, cd /opt/studio5_se/bin
    2, ./runide.sh -jdkhome /usr/java/j2sdk1.4.2
    and HEY PRESTO
    The only reason why I can see that the IDE will not install under mandrake is possible the coding under the Installsheild, maybe it looks for a file or someting that RedHat has and not mandrake, or just tests the OS to see if it is in the supported list, and if not then throws the error
    If that is the case then it's proberly likely that it was setup like this because RedHat gives money to sun and not Mandrake????!!!?????
    maybe I don't know3 just my observation, but 1 thing I do know is that due to this error I shall not be buying it, until sun change the way to install it or they go back to the old way the Forte installed
    Just my thoughts,
    and I hope this helps someone

  • I am beginner to sun one studio and sun one application server

    How can i access a cmp from a jsp page.
    in sun one application server.
    thanx in advance

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • 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

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Sun ONE Studio vs. NetBeans IDE 3.5

    Now that IBM's VisualAge for Java is dead, I have been looking for a replacement IDE. I have been totally frusturated by the lack of basic information on IBM's Websphere -- their own specialists had a hard time answering elementary questions -- and the "upgrade" for VA 4, which cost $100 originally, could be $1000 to $3500 depending on what piece of Websphere you get.
    Well, so I looked at Sun ONE Studio 5.0 -- then noticed that SDK 1.4.2 was out (i had the beta). I'm doing the trial period of ONE Studio, then I get NetBeans 3.5 as part of the SDK download. NetBeans is FREE and Sun ONE Studio 5.0 is $695, and "based on NetBeans."
    "Based on?" Looking at NetBeans 3.5 IDE, I don't see what Studio offers that you don't get in NetBeans. Is there any paper or comparison anybody has written comparing the two packages?
    Both are great pieces of software, but what do I pay $695 for?

    you got integration with more wizards, deployment tools and application server for both J2SE & J2EE development.
    But it's a real shame and even scandal that this tool becomes commercial and so expensive.
    So now, you don't have the choice and you have to pay for the Sun branded tool ! (except the J2ME one)
    I had the weakness to believe that Sun and its Java wanted to have a important place in the open source or at least free software world !(clearly, it's the future ). But this aggressive(695$ !!!) commercial U-turn awakes me from my dream.
    That's it for now, I return on my beloved Eclipse Platform and its plugins, digusted ...

  • 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

Maybe you are looking for

  • Can not start up with internal HD after 10.9.4 update

    After installing 10.9.4 update, can no longer startup from internal HD on late 2012 iMac, 2.9 ghz, 8 gb ram, 1 TB internal Used Disk Utility to starup from external 10.9.3 drive and that works fine. Loaded the manual 10.9.4 update onto external, and

  • Itunes trailer won't play

    when I download a trailer in itunes(windows 7), it will not play. the video window opens and just turns green.

  • Call function starting new task - Issue with memory variables

    Hi All,   From our OIL application we have a call to the core delivery update FM WS_DELIVERY_UPDATE starting new task.Before the call we are exporting a variable to memory and deep inside the FM we have an oil routine which checks the value of this v

  • Bad performance when deleting business partner in CRM

    Hi, we try to delete 1.7 million partner in our CRM system. Our System has : SAP_BASIS     620     0057     SAPKB62057 the database is ORACLE For the deletion we use the report BUPA_TEST_DELETE with packages of 1000 partners each. We have that the up

  • RFC adapter vs Proxy? Kindly help!

    Hi experts,       When to use RFC adapter and Proxy? Which is better and why? Kindly give examples. Thanks Gopal