Running under Tomcat

I have a simple prototype app which runs quite nicely under the bundled apps server.
I want to run it under my Tomcat 5.
I have loaded the two jars as described in http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/deploy/howtodeploy/deploy_tomcat.html
So, my Library list shows JSTL 1.1 - standard.jar and JSTL 1.1 - jstl.jar
I also included the 'commons' jars which Tomcat requires - beanutils.jar, digester.jar, logging.jar and validator.jar
All of these 'additions' seems to have no detrimental effect on the built in app server of jsCreator.
The app works fine up till the time it attempts to establish connectivity to MySQL.
I have previously hand coded a similar working app under tomcat before I started using jsCreator.
Creating a context under tomcat involves creating a context.xml in the META-INF directory (which I have created as project/web/META-INF/context.xml
(which contradicts the Sun instructions of putting the context inside the Tomcat system config - Tomcat instructions say thee context should be as above)
Tomcat complains
2006-22-04 16:22:05,209 DEBUG Login - Loading auth data
2006-22-04 16:22:05,211 DEBUG Login - Context established - datasource is java:comp/env/jdbc/YourRosterDB
2006-22-04 16:22:05,226 DEBUG Login - Datasource established
2006-22-04 16:22:05,234 ERROR Login - LoginBean
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
     at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
     at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
     at com.YourRoster.Login.retrieveUserInfoAndLogin(Login.java:229)
     at com.YourRoster.Login.loginLoginButton_action(Login.java:376)
Would someone be able to assist me with this please?
Thanks in advance.
.

Make sure that in your server.xml file found in conf folder for Tomcat you have the following context completely filled out. Something like this:
<Context path="/gladiatorsgameserver">
<Resource auth="Container" description="Rave generated DataSource Reference" name="jdbc/Gladiators" type="javax.sql.DataSource" password="adminadmin" driverClassName="org.gjt.mm.mysql.Driver" maxIdle="2" maxWait="5000" username="root" url="jdbc:mysql://127.0.0.1:3306/gladiators" maxActive="100"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>

Similar Messages

  • Can't run under Tomcat

    Hi;
    I'm having a similiar problem with Tomcat. I followed the instructions for the tutorial, using the existing tutorial. I have set Tomcat as my application server and when I Run the server starts - but it can't bring up the page.
    When I go to the Tomcat webapps dir - nothing has been added for the tutorial.
    What do I need to do to get it to deploy under Tomcat?
    thanks - dave

    What type of server configuration did you create (Window > Preferences > NitroX > Server Configuration > Edit - Configuration Tab)?
    FYI, NitroX takes care of deployment if default option "Auto-deployment" is selected otherwise you need to manually deploy the application. If you are not doing any custom configuration then go with the default selection "Auto-deployment"
    If you select "Manual deployment with existing configuration file" option, then you need to take care of deployment.
    Ex: The server.xml you are pointing to should contain a <Context..> element similar to the one below
    <Context debug="0" docBase="/<YourProjectDocBase>" path="" reloadable="true" />
    Or the best way would be to run your app selecting default "Auto-deployment" configuration and then copy the <Context..> element from m7.auto.server.xml file. (Check the first line in Console View for the path)
    NOTE: Please make sure to remove "workDir" entry from <Context..> element.
    For "Auto Deployment", check the first line in Console View for the location of JSP generated java files.
    FYI, the project location in workspace acts as docBase for running/debugging the application. The project as such does not get deployed to Tomcat/webapps.
    For more information please refer to Help > Help Contents > NitroX User Guide > Getting Started > NitroX Tour > Running and debugging the application

  • JSP's running under Resin server engine???

    I have a JSP application that I am trying to move from running under Tomcat 4.0 to Resin web server engine.
    When trying to run the application, I get this error:
    java.util.MissingResourceException: Can't find bundle for base name AppProperties, locale
    I think the error is happening because I have the AppProperties file in the wrong place under the Resin directory. Could someone please let me know how to properly use a Resource Bundle Properties file using Resin for my JSP's to run???
    Please help...
    Thank you...

    Never mind....I got it....

  • How to run servlets under Tomcat 6 in java1.5

    hi all
    i am unable to run servlets under tomcat 6,i checked environment variables ....all are correct..im getting http 503 error....

    A 503 response says
    503 Service Unavailable
    The server is currently unable to handle the request due to a
    temporary overloading or maintenance of the server
    You apparently have the server mis-configured. Recheck the configuration (or reinstall Tomcat per its instructions.)

  • Problems with sun's jdbc:odbc bridge under Tomcat 4.0

    I keep getting this error when I try to access through jdbc:odbc sun's drive:
    java.sql.Exception: [Microsoft][Administrador de controladores ODBC] No se encuentra el nomb
    re del origen de datos y no se especific� ning�n controlador predeterminado
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2488)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    17)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:160)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Translating the local spanish message, should be something like: "Can't find data source and no default driver defined."
    I don't get this error if i access through the same driver but not on web server Tomcat 4.0.1. And I don't get this error even under Tomcat with other jdbc drivers (mysql for example).
    Someone knows what is happening here?
    I would apreciate some help.
    Thank you.

    If you're running on Windows, you need to create an ODBC datasource to connect to.
    To accomplish this, you need to go to Start >>> Control Panel >> Administrative Tools >> Data Sources (ODBC),
    2. On the User DSN tab, click add
    3. give it a name, this is the name you will use in the connection string. jdbc:odbc:<name>
    4.Click Select, then find your mdb file, or other database file.
    5. click Ok.

  • Configure BO services to run under a user that has the EN_US locale

    Hi all,
    My question is following a previous thread on a known issue where a work-around has been proposed by Efstratios Karaivazoglou (Thanks for that):
    BusinessObjects Integration Kits
    I thought a new thread would be more appropriate since this is basically a whole new question.
    The proposed work-around is the following:
    "please configure the BO services on your windows server to run under a user (belonging to the local administrators group) that has the EN_US locale set in its default profile. This is a known problem of WebI and the SAP integration KIT running on an international (e.g german) version of windows."
    Regarding that work-around two questions came up:
    (1) "BO services" mean basically the BOE MySQL database service and the Apache Tomcat service, right?
    (2) A user that has the "EN_US locale set in its default profile": Where in the user profile settings would you set the locale to EN_US? I just had a look at the user properties in "Computer Management" on the windows server and haven`t seen this property.
    Unfortunately we don`t have the FixPack 1.3 installed yet (which is supposed to solve the problem).
    Many thanks in advance for your help.
    Best regards,
    Kai

    Hi,
    BO services means the SIA (Server Intelligence Agent) and the Tomcat. You can do this over the Central Configuration Manager utility.
    After logging on the Windows Server with the credentials of the new user you can set the regional settings under Control Panel->Regional and Language Options 
    Regards,
    Stratos

  • War file under tomcat/webapps (newbie)

    Quick question:
    I have a file myPrj.war and I place it under tomcat/webapps. I realize that tomcat creates a folder myPrj and I can run my application on the browser (so far so good). my question is this: say I made a revision to my application (therefore I have a new myPrj.war file) and I place the newly myPrj.jar on under the tomcat/webapps. Does tomcat 'know' that he should disregard the 'old' folder myPrj and create a new one (since there's a new myPrj.war)???
    thanks

    Generally speaking, If you replaced your java code or tag lib in jsp, you need to restart tomcat, otherwise, if you just made some changes to the basic html, you don't have to do so.

  • Need help getting first servlet to run in tomcat

    hi,
    i've complied my first servlet ok, using tomcat as server, problem is it can't find it. i up the class file under Web-inf/myApp under tomcat directory, typed:
    http://localhost:8080/myApp/TestingServlet
    in the url but it can't locate it. also i did start tomcat before going to url. can someone tell me what am i missing?
    Thank you.

    ok i got it to run but i had to create a classes dir under web-inf and had to use the url:
    http://localhost:8080/myApp/servlet/TestingServlet
    but why the servlet in the url, i don't have a servlet dir, does tomcat map classes dir to servlet dir?
    Thank you.

  • Do i need to start my startup.bat under tomcat every time?

    do i need to start my startup.bat under tomcat every time
    can i do something to make it start automatically when boot my system?

    From Tomcat 5.x, at least, you can run it as a Window service and have it start automatically.
    For Tomcat 5.0, see here:
    http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
    From 5.5, I believe the Win service install is the default.

  • SSO to partner application running under IIS

    Hi,
    We have a complete set-up for 9iAS Release2 where some applications are running. In parallell we have an application running under IIS, and would now like to enable the IIS application as a partner application to 9iAS letting the 9iAS SSO server handle the authentication.
    In the documentation of Oracle Proxy Plug-in I read that this proxy plug-in can be used to proxy requests from IIS to Oracle http server (OHS) and also in this way enable SSO.
    My question is if this can be done only for applications running under 9iAS but having IIS as web server, or if it is also possible like in our case to enable SSO via the proxy plug-in to applications runnind under IIS?
    If this is not supported is the only available solution to use the SSO SDK in my IIS application?
    Thanks and regards,
    Rikard

    Here's a DIY answer.
    See Metalink Note 269820.1 which shows you how to use Perl to overwrite the host name in the HTTP header and remove the port number.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product API:
    VB.NET web service -> native library (p/invoke) -> native API ....
    Web service requests are successfully completed and the system runs without problem for hours. A trace of the native API shows it is being called by multiple processes and multiple threads within those processes.
    The main native API dll contains a static global variable used to detect whether it is the first time it has been called and run initialization logic if it is. This dll is itself linked to a second dll that contains a global variable used to detect if it is
    the first time it has been called.
    After some hours the trace shows that the native API is invoked by an existing process but that the initialization logic is being exercised again, even though the global variable was set to indicate not first time and is never reset.  One theory was that
    the first process has ended and a new process has started almost instantaneously using the same process ID. However this is not the case as existing thread IDs from the same process are seen to write to the trace again after the first time logic has executed
    for the second time, indicating the process has not restarted. The problem occurs regularly.
    It is as though the process's global data has been initialized again and malloc'ed memory freed while the processing is still running. Is there any way this is possible when running under IIS?
    There is an internal thread which waits on a blocking read of a named pipe (via ReadFile), and when the problem occurs, the ReadFile call ends with ERROR_NO_ACCESS, which appears to indicate the malloc'ed buffer is no longer valid, again implying something
    has happened to the memory allocated to the process.

    Suggestting you asking it on:
    http://forums.iis.net/

  • RE: How to have multiple application running under one server

              I have one server
              I have many application
              Question: Is it possible for me to have a weblogic properties file under each
              of this application.
              

    If your question is whether you can run multiple instances of WebLogic
              (or multiple applications) on one server, the answer is yes. The only
              problem is, you must have a unique port for each of the servers to run
              on. I.e., they can not all run under port 80 which has obvious
              internet/network implications.
              This also means you have multiple weblogic.properties files etc. for
              each instance.
              We do this with WL5.1 on a Linux 2.4 kernel in developement to allow
              multiple developers run their own instance on one box.
              Dano
              Mettu Kumar <[email protected]> wrote in message news:<[email protected]>...
              > No if you are running single instance of wls.
              >
              > Kumar.
              >
              > Sonny wrote:
              >
              > > I have one server
              > > I have many application
              > > Question: Is it possible for me to have a weblogic properties file under each
              > > of this application.
              

  • JavaSoundRenderer now running under Windows

    Hello,
    I found out that the JavaSoundRenderer could run under Windows but only if you use Java 6.0 Beta.
    So if you've problems of playing audio in Windows then just install the new Java (6.0) and it will work.
    best regards,
    thomas

    Hi,
    Refer [SAP Note:1337708 - Crystal Reports support of 64 bit Operating Systems|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333333333337333733303338%7D.do] and also have a look at
    [SAP Note:122050-An error has occurred while attempting to load crystal reports on 64bit|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233323330333533303331%7D.do] might be helpful

  • Installing XP, running under VMWare

    I am brand new to a Mac, and have found the Mac Pro I received a week ago was great to upgrade. Adding both memory and a new Caviar Black 1T drive this morning was the quickest/easiest upgrade I've ever done.
    I am currently formatting the new drive I just installed. The Format settings are Mac OS Extended (journaled), and the erase option was set to Zero out the data - I'm assuming this will ensure bad blocks will be marked as they are found - *Out of curiosity, does the disk utility mark bad blocks when found during the Zeroing out process?*
    I'm hoping to avoid problems with the way the drive is set up prior to installing VMWare, XP, and moving files onto the drive.
    Does VMWare Fusion deal with the format differences between what XP expects (NTFS) and the HFS+ format of the new drive? If not, do I need to do anything to handle this issue?
    Secondly, I want to load XP from my MSDN disks - All of the Microsoft operating systems are contained on the MSDN disks. Anybody know if this will cause an issue?
    Should I install XP for both VMWare and Bootcamp? Or can I run fine with a single copy running under VMware?
    Thanks in advance,
    Michael

    Zeroing with OS X Disk Utility seems very iffy and not as good as if you use vendor supplied utility which runs in Windows. I've even done 7-way write in Disk Utility and the drive showed problems.
    I suggest you try something else than DU. MicroMat TechTool Pro seems able to identify weak or bad sectors, does not have means to remap. Intech Speedtools should be able to, and may, but that's another $89.
    LIfeguard from WD, Seatools from Seagate... those are better.

Maybe you are looking for

  • Create a pdf print without the HD files

    Hello every one, Working on Macintoch with Lightroom 4.2 Before we were able to print a pdf file on Mac, even if we weren't connected to the Raw files. It was enought to click on "brouillon" in french, what is draft I think in english I think. But no

  • Doubt regarding file content conversion Recever File adapter.

    target structure. <?xml version="1.0" encoding="UTF-8"?> <ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">      <BUSINESS_PARTNER>           <item>                <CAMPUSCODE>65</CAMPUSCODE>                <STUDENTNUMBER>650000

  • Windows 7 is truncating url that contains # id tag.

    I am using RH8 generated files.  In java code, I am calling Runtime.getRuntime().exec(command) where command = "rundll32 url.dll,FileProtocolHandler " + url.  The url is a file url (pointing to a local file on my computer) appended with #<id=2187>>ne

  • Sounds still plays through speaker with headphones plugged in

    I've recently been having problems with my sounds. I would plug headphones into one of headphone jacks on my HP dv6tse laptop and i would hear sounds through my headphones as well as my speakers. So basically I'm getting sounds from my headphones as

  • Can I download Premiere Elements 7 trial?

    Does anybody know where can I download Premiere Elements 7 trial? My school is using Premiere Elements 7 and I'm afraid I'm going to have compatibility issues with Elements 9 and 7.