HELP PLEASE: Tomcat 3 - Sun ONE Migration Problems

Hi everybody. We are new Sun One users. We are trying unsuccessfully to migrate our tomcat application to this environment. in order to deploy it we have created a WAR file from the Netbeans Ide and we are trying to load it into Sun One AS... but it seems there is something wrong with the process becouse we don't have access to the defined jdbc resources. Any help would be very apreciated... and please, excuse my English.
Javier Moreno

Thanks a lot of for your fast answer, but we haven't don't too much progress...
dbping shows a message about "java.lang.NoSuchMethodException: setdataSourceName"
wich probably means mysql driver isn't fully implemented. anyway i will try
to describe the steps we make to create de pool hoping you will be able to
help us...
That's what we do:
     - first, we create a Connection pool:
          name -> MySQLPool
          database vendor -> Other
          datasource class -> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
serverName -> localhost
portNumber -> 3306
user -> test
password -> test
databasename -> jdbc:mysql://localhost/pol
datasourcename -> pol
     - then, we define the resource:
          jndi name -> jdbc/jdbc-pol01
          pool name -> MySQLPool
          data source enabled -> true
     - in the web.xml of the application we got (just before /webapp):
          <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/jdbc-pol01</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
</resource-ref>
     - and we obtain the connection with a chunk of code like this:
ctx = new InitialContext();
dsName = "java:comp/env/jdbc/jdbc-pol01";
ds = (javax.sql.DataSource) ctx.lookup(dsName);
con = ds.getConnection();
If we don't write the resource-ref element at web.xml it fails at the lookup
step (not finding the resource). but when we add the element the appserver
claims "Error loading new module in virtual server: javax.naming.InvalidNameException: Real jndi name cannot beempty for jdbc/jdbc-polds.
We don't know what to do and the death line is comming here fast... any help
would be very much apreciated.          
Thanks in advance, good karma.
jv

Similar Messages

  • I have one migration problem.

    Dear All,
    i have one migration problem.
    while doing transfer rules migration i got a popup saying that " GJAHR source filed automatic conversion is not possible "
    what is this message if continue with that what will happens if not what i should do.

    hi vsuree,
    If u r getting this message for field  FISCPER of ur data source,then map Fiscper to 0Fiscyear ,the system wil automatically convert it and the problem will be resolved.  hope it will help u.
    thanks

  • Hi can anybody help please. I am having terrible problems trying to use my Nikon D7100 to tether. I have downloaded the latest Lightroom updates and also checked my firmware which is also the latest avaiable and still Lightroom wont detect my camera!

    Hi can anybody help please. I am having terrible problems trying to use my Nikon D7100 to tether. I have downloaded the latest Lightroom updates and also checked my firmware which is also the latest avaiable and still Lightroom wont detect my camera!. When I use a friends Canon camera it works every time!

    Hi Keith thanks for your reply I have Lightroom 5.7.1 64 bit and my Nikon's firmware is version 1.02

  • 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

  • Sun One EJB problem - PortableRemoteObject.narrow ClassCastException...

    Hi all,
    I'm using Sun One app server 7 for the first time and am having a bit of difficulty. I have deployed a very simple EAR containing one stateless session bean just to test it. The ear appears to have deployed correctly but PortableRemoteObject.narrow is throwing a ClassCastException when trying to do a remote lookup on the bean.
    I'm using the following env settings...
    initialContextFactory = com.sun.enterprise.naming.SerialInitContextFactory
    providerUrl = iiop://127.0.0.1:3700The lookup appears to work okay - this line of code executes successfully
    Object objref = initialContext.lookup(jndiHomeName);...objref appears to initalise succesfully (if I toString() it I get an iiop stream of some sort). However, it is the next line that is failing...
    Object obj = PortableRemoteObject.narrow(objref, homeClass);...this is the exception I get...
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
         at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
         at com.scorlog.ServiceLocator.getRemoteHome(ServiceLocator.java:145)Furthermore, when PortableRemoteObject.narrow() executes, I get the following console exception on the server...
    com.sun.corba.ee.internal.core.DuplicateServiceContext
            at com.sun.corba.ee.internal.core.ServiceContexts.put(ServiceContexts.java:208)
            at com.sun.corba.ee.internal.iiop.ServerRequestImpl.getServiceContextsForReply(ServerRequestImpl.java:258)
            at com.sun.corba.ee.internal.iiop.ServerRequestImpl.createResponse(ServerRequestImpl.java:89)
            at com.sun.corba.ee.internal.POA.SubcontractResponseHandler.createReply(SubcontractResponseHandler.java:50)
            at org.omg.CosNaming.NamingContextExtPOA._invoke(NamingContextExtPOA.java:377)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
            at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
            at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
            at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
            at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
            at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:288)
            at java.lang.Thread.run(Thread.java:534)
    FINE: No SAS context element found in service context listI have seen the forum that other users have had similar problems and the suggestion was that the client can't see the ejb stubs. I don't think this is the problem in my case as I deployed the same ear on weblogic 7 (obviously substituting sun-ejb-jar.xml for a weblogic-ejb-jar.xml) and successfully executed the same client code for the remote lookup.
    My feeling is that the problem revolves around the JNDI binding. Could it be the case that even though the object is binding properly, the app server doesn't realise it is an ejb and not a jdbc/jms/mail object? The documentation gives details on looking up a JDBC, javamail, URL, JMS resource (http://docs.sun.com/source/817-2177/djjndi.html) but not ejb so I could be doing something simple wrong here...
    My sun-ejb-jar.xml is as follows....
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Generated by XDoclet -->
    <sun-ejb-jar>
        <enterprise-beans>
            <ejb>
                <ejb-name>SBTest</ejb-name>
                <jndi-name>ejb/SBTestBean</jndi-name>
            </ejb>
        </enterprise-beans>
    </sun-ejb-jar>However, I noticed on another thread, a user had some additional elements under their <ejb> tag like this...
    <?xml version="1.0" encoding="UTF-8"?>
    <sun-ejb-jar>
      <enterprise-beans>
        <name>Ejb1</name>
        <ejb>
          <ejb-name>HelloBean</ejb-name>
          <jndi-name>HelloBean</jndi-name>
          <ejb-ref>
            <ejb-ref-name>ejb/helloBean</ejb-ref-name>
            <jndi-name>HelloBean</jndi-name>
          </ejb-ref>
        </ejb>
      </enterprise-beans>
    </sun-ejb-jar>However, when I tried to add and <ejb-ref> element to my xml doc the ear failed to deploy. This is the error I get in the admin console...
    Error
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- --
    Failed to load deployment descriptor for: testApp cause: Error converting J2EE-
    specific ejb xml to object representation: testApp.jar app_testApp Generated by
    XDoclet This bean has no ejb reference by the name of [ejb/SBtest]
    ejb/SBTestSBTestThis problem is eating up my time and being made all the more frustrating by the fact that a) it deploys on weblogic and b) the documentation is terrible. Even the sample application that comes with sun one only provides the .class files for the code that does the ejb look up and not the .java so you can't see how they hell they do it!
    Unfortunately I am tied to using Sun One so I really need to solve this problem fast. If anyone can provide any help I'd greatly appreciate it.
    Cheers,
    John :)

    I am having the same problem after upgrading to Sun One from iplanet. Any clue?

  • Help please! - Hard disk Volume Header problems and 'Beach Ball' hangs

    Hi all
    I was wondering if anyone can help me out with my hard drive problems. Until recently, everything was going fine with my Powerbook after upgrading to 10.4.2. Then all of a sudden, one day, at the login screen I got a beach ball hang which lasted around 4 minutes. When the dock is launched, I get another beach ball hang for an additional 3 or 4 minutes.
    When it finally finishes logging in everything is fine, I can access all my files and do whatever I want to do at full speed, that is, until an app asks me for my administrators password which welcomes back the beach ball and a system hang for another 3-4 minutes or so.
    Disk Utility says that I have minor Volume header problems but will not fix it as it abruptly quits before it finishes diagnosing the drive.
    I have Disk Warrior 3.0.3 and have tried to use it but when I boot off the CD it does not recognise my hard drive for fixing puroposes but still displays the hard drive in the Hardware tab.
    The SMART status of the drive is verified and there doesnt seem to be any problems in that respect.
    I have repaired permissions, ran all the processes in Onyx and still no joy.
    Finally, I have tried to use TechTool Pro but on a surface disk check it fails halfway through after shifting a few bad sectors around.
    Everything seems to be fine if you ignore all these beach ball hangs but I'm worried about a very imminent hard drive fail. I am now in the process of zeroing all the empty spaces on my hard disk to see if the badsector problems can be fixed in this way.
    When the beach ball appears I can hear the hard disk making a scraping sound if this helps at all.
    Please help me! Its driving me nuts! I am also currently working abroad hence I don't have my Mac OS X Tiger install disks on me otherwise I'd just do an archive and reinstall.
    Is this a physical problem? Volume header problem? I'm so confused!
    Any help greatly appreciated! Many thanks...

    It sounds as if you've attempted the appropriate fixes for your drive... Disk Utility, Disk Warrior, TechTool Pro and Onyx. If none of these utilities have repaired the problem then perhaps there is a hardware failure of some sort... perhaps a head crash has done some physical damage.
    How old is this hard drive? Is it the original?
    It's unfortunate that you don't have your Tiger install discs as a reinstall of the OS might relieve the problem. But I doubt it since, as you say, "the disc makes a scraping sound". That suggests to me the problem may be physical damage or wear of the hard drive.
    If I were in your shoes, I would backup any critical files now, before the drive fails completely.
    I'd replace the drive, and probably buy an external enclosure (USB or Firewire) for the old drive to allow for data retrieval until it failed.
    Unfortunately, replacing the drive will require your software install discs... =( ... can't help you there.
    TiBook G4 1G, PMac G4 dual 1G, MacPlus   Mac OS X (10.4.4)  

  • HELP PLEASE!! Hard drive upgrade problem

    Hi everyone. I under the direction of others bought an 60GB Powerbook Hard Drive 5400RPM HItachi upgrade from powerbookmedic.com. I bought my powerbook in early 2001 and when I took it apart and proceeded to load in the new hard drive I noticed that the new one did not have connector pins to hook up to the flex cable on the hard drive. Now am I am I missing something here or am I just a moron? I am really frustrated because the model I bought says that it fits with all Powerbook Titanium models. What am I missing? Help please!!!!!!!!!

    Hi, Denny.
    ...and when I took it apart and proceeded to
    load in the new hard drive I noticed that the new one
    did not have connector pins to hook up to the flex
    cable on the hard drive.
    So you removed the old drive, you detached the short flex cable from it, and now you find nothing on the new drive to connect the cable to? Am I understanding correctly?
    If so, is it possible that the connector on the new drive is covered with some sort of temporary shield to protect it during packing, shipping and handling? If it is, the shield should come off if you pull it in the same direction you pulled the flex cable to detach it from your old drive.
    I'm tempted to say you are surely missing something. For Hitachi to have shipped a drive that has no cable connector seems about as likely as for Toyota to have shipped a car with no tires installed, but I suppose anything is (barely) possible.

  • Help Please Software/Hardware Mouse And Keyboard problem.

    I have a Corsair Vengeance and a Razr Black widow keyboard and the problem is that when i right click it wont let me select any options, it will flicker violently only when i move the mouse and im getting strange yellow highlight boxes whenever i drag
    the left mouse button(ex Volume Sliders). The keyboard will only bring up shortcuts and the start button on my keyboard will open narrater settings. Ive noticed that it only happens when my computer falls asleep and when i turn it back on the problem will
    start. Ive just installed advanced system care and ive done he maintanence. Can that be the problem? Ive already uninstalled it but the problem keeps happening. 

    Try reinstalling the driver http://www.razerzone.com/au-en/gaming-keyboards-keypads/razer-blackwidow/
    Also run a "sfc /scannow" from the command prompt
    Also in advanced power management setting disable the USB power saving options (think its called USB hybrid power saving)
    Regards Jake Gardner If you found this post helpful, please give it a &quot;Helpful&quot; vote. If it answered your question, remember to mark it as an &quot;Answer&quot;. This posting is provided &quot;AS IS&quot; with no warranties
    and confers no rights! Always test ANY suggestion in a test environment before implementing! Sorry if my grammar is incorrect as I am probably on writing to you from my phone.

  • Help Please - hard drive formatting/back up problems

    Hi- I'm new around here- I need advice-apparently I know just enough to get myself into trouble or a panic
    One problem is turning into several. I'll start at the top.
    I have a G4 Tipowerbook 30GB 512ram bought in 2001. OSX 10.3.9
    -Original problem: Hard drive seems to be going bad (making clicking noises occassionally) I'm bad never have backed up mainly due to $ so finally scraped up enough cash bought a newer tech. mini stack 160 GB external drive to back up to and a new internal 80 GB HD to have installed.
    -Downloaded Carbon Copy Cloner to back all up to new drive. When I recieved the new drive they had already put some files (old mac commercials shareware etc1.5 GB worth) on it. I thought this indicated it was formatted. So I started out with the cloning- 6 hours later bar still indicated that not very much progress had been done. I started reading ccc troubleshooting info and it strongly stressed formatting/zeroing all new disks even if you think they are. I stopped the clone-(actually it looked like there was more copied than indicated by the progress bar but not much.
    -14 hours later and the zeroing progress bar in Disk Utility shows maybe 1/10 of the way done.
    Concerns:
    - is this normal?
    -Is the slowness due to perhaps a bad hard drive? If so (remember I don't have anything backed up) could this activity make the drive crash -working for so long? any othere options to take?
    -Also the new external drive is supposed to be 160 GB why does DU say it is only 153GB where did 7 GB go?
    thanks for any helpful advice-

    Hi squarebird,
    Welcome to Apple Discussions.
    Is the ext HD USB? If so, it is going to take a LONG time to do anything from your PB, as your PB is only USB 1 (very slow). May be too late now, but with a Mac, esp an older Mac with only USB 1, you would want to use Firewire (besides the speed, Macs can't boot from an ext USB HD, but they can from a FW). If the ext HD is only USB and you can't or don't want to return it, you may want to consider a USB 2 PCMCIA adapter, then at least you'll be able to work with the ext HD at USB 2 speeds.

  • HELP PLEASE!! (game on ipod problems)

    i bought sodoku off itunes but now it wont go on my ipod... please help!!!

    What iPod do you have? iPod games work with fifth-generation iPod only. iPod games are not compatible with iPod nano.

  • Help please. I've encountered some problem uninstalling my itunes

    This is what it says while trying to uninstall the other version of itunes.

    Not sure what the problem is, but you need to be uninstalling with Administrator privileges. Also, the standard Windows uninstall doesn't get everything; you should follow the instructions here: http://support.apple.com/kb/HT1925

  • Help please! iphone 5 video recording problem

    i have a 16gb iphone and only 3 apps downloaded (and still available space). only 7 photos and no videos on my camera roll. why are my vids not recording all of a sudden??? i've had this phone for 6 weeks and it's been great, now videos wont record at all. i have filmed vids for over 10 minutes (and of course deleted them off my camera roll after i was done filming). why is it not recording when there's still space on my phone?

    The problem I found, on my iPhone back a film on it to protect against scratches. Then looked at an Apple TV and advertising because it has been shown that the back is a small addition to the Micro Camera :) and that was covered by the foil so foil away and everything works perfect.
    Sorry for my bad English :(
    Thanks

  • URGENT HELP PLEASE.....IDVD PROBLEM

    Hi there this is serious. I shot footage on a sony hdv z1 as 50i and imported into final cut as apple pro res 25p, edited then exported out as apple pro res 25p. The footage is 16mins and the file size is 10.67gb.
    The aim of this project is to go to dvd for my client.
    Now when i watch the footage in quicktime it plays back perfect and looks really good.
    So I imported the footage into the latest IDVD used a very nice custom menu but when I play my source material into the window as a preview I am getting alot of jittery lines e.t.c?
    What is causing this and better yet what is the solution?

    Do you see your camcorder listed in the following link/s?
    http://support.apple.com/kb/HT1014#2
    After reviewing the specs on this sony camcorder, I'd recommend using apple's FCS 2 as opposed to apple's i-apps.
    Suggestion only: You have a great sony camcorder so stay with apple's pro apps for best results. Otherwise you may be a bit disappointed if you opt to use apple's iApps with this particular model (especially if it's not listed in the above mentioned / supported camcorders) .... You won't be doing yourself any favors by using consumer software as opposed to apple's FCP, Compressor, and DVDSP.

  • HELP PLEASE!!! Factory reset problem

    Right, so i started a factory reset and it had finished on itunes, then i looked at my phone and the bar came up, then i had to unplu because i had to go, and my phone wont come off the itunes and usb port picture. So i tried to plug my phone into a different coomputer nad opened itunes and my phone wasnt even being recognised. So i checked 'My Computer' and it wasnt there and the cable is completely fine. HOW DO I FIX IT!!! My phone is and iPhone 4.

    Not sure why you unplugged your phone in a middle of a restore, wasn't like you would be able to use it.
    Anyways you will have to do this steps a few times If you can't update or restore your iOS device

  • I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box , as I can see on my classroom book and in many tutorial.any one can help please

    I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box ,where i choose what i want to import,  as I can see on my classroom book and in many tutorial.any one can help please ? thanks

    I have the same problem... but the photo library is neither on my iPhone or my Computer!! Please help.. its taking too much space.

Maybe you are looking for

  • Shockwave flash constant crashing

    Since updating from firefox 26, I have experienced constant shockwave flash hangs in both Firefox and Chrome. I have done numerous rollbacks, uninstalls, clean reinstalls, and driver updates. Anything that fixes the issue only fixes it for a few hour

  • Group cursor on xml input ... HELP!

    Hi all! I'm trying to create a group cursor on my xml data source. Can that be done? Or group cursor can only be created for groups constructed by sql query? I followed the example given in the help topics without any success. Could someone please he

  • How do I recover an iMovie project that "disappeared" from iMovie, but its' thumbnail/package contents is still in Finder?

    I created an iMovie project and finalized it, but when I tried to look for it, it was gone in the iMovie project library. I can find it on"finder", and open package contents etc, but it won't play in iMovie. How do I recover it? Its really important!

  • Allowing multiple majors in an Enrollment Cube

    I am working on an Enrollment Cube for my university. One of its dimensions has a hierarchy of College -> Department -> Major, with each student having one major per term. However, there are also students who are dual-majoring and therefore have two

  • How to extract data from MDTC table.

    Hi all. I want to fetch data from MDTC table. But in that table field CLUSTD contain compressed data. How can i extract that data. Can i extract data for structure MDPSX. is MDTC table is used in function module MD_STOCK_REQUIREMENTS_LIST_API . Pleas