Tomcat 5.X and creating a Web Application

To all,
I've tried to add a new web application to the Tomcat 5.0.X (It is a bundled download with NetBeans, since I can't use Struts directly from the NetBeans IDE, I'm just using the Tomcat to act as the Web App Server)
My procedures are like this:
1) create a folder (eg. Struts_Trial) under the Catalina_Home\webapps
2) add an index.jsp (no xml config files are added by now)
3) re-start the Tomcat
4) try to access the web app in a browser (eg. http://localhost:8080/Struts_Trial/index.jsp)
5) it fails and list out "404 requested resource is not available"
I remember that adding a new web app is really that simple, but now it seems to be a bit different and I can't figure it out what's wrong or missing (except missing the xml config files)
From Jason (Kusanaghk)

If you:
1) create a folder (eg. Struts_Trial) under the Catalina_Home\webapps
2) add an index.jsp
You then need to add a folder called WEB-INF in webapps/Struts_Trial/
In here put a file called web.xml that looks like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <display-name>Test</display-name>
  <description>
     Test
  </description>
  <welcome-file-list>
    <welcome-file/>
  </welcome-file-list> 
</web-app>Now restart tomcat and you should be able to access the page by going to:
http://localhost:8080/Struts_Trial/index.jsp
(if you are running tomcat on port 8080)

Similar Messages

  • Runtime error and unable to create new web application

    Hi
    when i create new web application i faced this error Runtime error and unable to create new web application.
    in this farm we have
    2 wfe servers
    2 application servers.
    adil

    Adil,
    There could be many reason like IIS issue, Space issue, Permission issue, SQL issue which is not possible us to guess rather
    you need to jump in the SharePoint log(Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS) and find out the specific error log its throwing after which trouble shoot can be start.
    You can refer few similar threads here -
    Link
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Error in Creating New Web Application SharePoint 2013

    Everything was working fine but today when i try to create  a new web application i am getting the following error.It's happening whenever i am trying to create a new web application.
    The directory C:\inetpub\wwwroot\wss\VirtualDirectories\26060 is already being used by another IIS Web Site.  Choose a different root directory for your new Web application. 
    But this port 26060 was not being used before and if i try to create new web application again then the error message occurs with the port number of the new web application. 
    Please help.

    Hi HelloFragrance,
    Are you using a host header when creating these web apps? If so have you tried creating without a host header? Also are you logged in with the Server with the Admin account? Check this out: (taken from Jeremy Taylor's
    blog)
    " 1. Ensure you have a proper dns name / entry in the hosts file of your server for the new url you are wanting to create.
    2. Ensure you have typed in the ‘host header’ typed in when creating the new web application.
    3. If this doesnt work, open IIS Manager – Start>run> inetmgr> and verify the home directory – it could be located on a different drive."
    Also have you tried creating through Powershell and see if you run into the same issue or not?
    http://technet.microsoft.com/en-us/library/ff607931(v=office.15).aspx
    Hope this helps!
    Thanks!
    BlueSky2010
    Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
    "Mark As Answer"

  • Powershell script for creating SSL web application

    Hello,
    I am trying to create SSL web application in Sharepoint 2010 using power shell and I am using the below script.
    $WebApp = New-SPWebApplication -ErrorAction SilentlyContinue -Name $WebApplicationName -url $WebApplicationUrl -port $WebApplicationPort
    -ApplicationPool $AppPool.Name -ApplicationPoolAccount $AppPoolManagedAccount.Username -AuthenticationProvider $AuthProvider -DatabaseName
    $ContentDatabaseName
    -SecureSocketsLayer
    The web application gets created and when I try to create a site collection and access it, the page is inaccessible.
    So I tried to bind the url to a new certificate from inetmgr and site collection still doesnt show up.
    I tried manually through central admin and everything worked well including the binding to SSL.
    Is there anything wrong with script, if yes what more do I need to add into this?
    Thanks.

    The issue is solved, the problem was that the parameter -URL shouldn't be any random url but it should be
    https://yourservername/ and then configure the binding to a self-signed certificate.
    So John I think the command rather should be
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://yourservername"  -Port 80 -ApplicationPool "ContosoAppPool"                                                           
     than                                                                                                                                                         
    New-SPWebApplication -Name "Contoso Internet Site" -URL "https://www.contoso.com"  -Port 80 -ApplicationPool "ContosoAppPool"

  • How to restore a filestream enabled and rbs configured web application

    HI
    in sharepoint farm I taken  backup of a filestream enabled and rbs configured web application  from central admin
    and how to restore it in a new sharepoint farm in different server
    adil

    hi i seen this error message in sprestore file in restore foloder,
    i am trying to restore the backup  in sql srver 2008 R2
    and
    backup taken  by sharepoint form which has back end sql server 2010 database datacenter
    IF EXISTS ( SELECT * FROM master..sysdatabases WHERE has_dbaccess(name)=1 AND
    name=@db_name )
    BEGIN
    SELECT 1 as ErrorCode
    END
    ELSE
    BEGIN RESTORE DATABASE [WSS_Content_Prod] FROM
    DISK=@db_location WITH STATS=5, FILE=1, MOVE @db_OldName TO @db_NewFile, MOVE @db_OldLogName TO @db_NewLogFile, MOVE @fsfg_old0 TO @fsfg_new0, NOREWIND, NOUNLOAD, RESTART, RECOVERY
    END
    @db_location=C:\BackUpandRestore from 117\ALPROD\spbr0000\0000016A.bak, @fsfg_old0=RBSFilestreamFile, @fsfg_new0=c:/rbs, @db_OldName=WSS_Content_Prod, @db_NewFile=C:\Program Files\Microsoft
    SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\WSS_Content_Prod.mdf, @db_OldLogName=WSS_Content_Prod_log, @db_NewLogFile=c:/Prodlogs\WSS_Content_Prod_log.ldf, @db_name=WSS_Content_Prod
    [3/24/2014 9:44:08 PM] Verbose: [WSS_Content_Prod] SQL command timeout is set to 1.00 hours.
    [3/24/2014 9:44:08 PM] FatalError: Object WSS_Content_Prod failed in event OnRestore. For more information, see the spbackup.log or sprestore.log file located in the backup directory.
    SqlException: The operation did not proceed far enough to allow RESTART. Reissue the statement without the RESTART qualifier.
    RESTORE DATABASE is terminating abnormally.
    [3/24/2014 9:44:08 PM] Debug: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
    at Microsoft.SharePoint.Administration.Backup.SPSqlBackupRestoreHelper.RunCommand(SqlCommand sqlCommand, SPBackupRestoreInformation args, Boolean throwOnRestart, Boolean& restart, SPSqlBackupRestoreConnection connection)
    at Microsoft.SharePoint.Administration.Backup.SPSqlBackupRestoreHelper.Run(SPBackupRestoreInformation args)
    at Microsoft.SharePoint.Administration.Backup.SPSqlRestoreHelper.Run(SPBackupRestoreInformation args)
    at Microsoft.SharePoint.Administration.SPDatabase.OnRestore(Object sender, SPRestoreInformation info)
    at Microsoft.SharePoint.Administration.SPContentDatabase.OnRestore(Object sender, SPRestoreInformation info)
    [3/24/2014 9:44:08 PM] Verbose: Starting OnPostRestore event.
    [3/24/2014 9:44:08 PM] Verbose: Starting object: SharePoint - 85.
    [3/24/2014 9:44:08 PM] Progress: [SharePoint - 85] 100 percent complete.
    [3/24/2014 9:44:08 PM] Verbose: [SharePoint - 85] Restoring features and its activation properties.
    adil

  • There is an inconsistency between the authentication mode of target web application and the source web application after migrating to claims

    I've had my farm upgraded from SP2010 to SP2013 for over 6 months now and all is well, however, I was refreshing my staging environment from production and I noticed that one of the databases still shows these errors when I run test-spcontentdatabase:
    Category             : Configuration
    Error             : False
    UpgradeBlocking : False
    Message           : The [SharePoint Web App] web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against
    a windows classic authentication mode.
    Remedy              : There is an inconsistency between the authentication mode of target web application and the source web application. Ensure that the authentication mode setting in upgraded web application is the
    same as what you had in previous SharePoint 2010 web application. Refer to the link "http://go.microsoft.com/fwlink/?LinkId=236865" for more information.
    This doesn't make sense considering I converted the production web application to claims during the upgrade and then verified all sites were working with claims logins. I also verified that existing AD user identities were converted to claims by checking out
    the database tables. Yet test-spcontentdatabase still thinks there is a mismatch here.
    My farm is SP1 and no further CUs. The point of this particular refresh is so I can update to the November CUs in my test farm. Anyone else see this? Seems like it's a bug/safe to ignore because my stuff is working.
    Thanks,
    Aaron

    See:
    http://thesharepointfarm.com/2014/11/test-spcontentdatabase-classic-to-claims-conversion/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Common headers and footers in web applications

    I want to include common headers and footers in all web applications. I do not want to include the header/footer in each application WAR file. I've tried to follow Orion's tutorial for building a response filter, and I get it working to the point that the header and footer show up on the page, but no other content shows up.
    Has anyone used filters to include static headers and footers in web applications?
    And is there an easier way to do this, that I'm not seeing??

    Hi Anu,
    I have already gone through the document. In that i dint find anything related to headers and footers.Only thing that is available is sorting the dimension headers.
    Please let me know if you have any other info regarding this.
    Thanks & Regards
    Ambica Atluri

  • Create a  Web application by NetBeans

    after I creat a samply WEb application under NetBean , how can I move it to Tomcat and when I start my tomcat I can see my WEB APPLICATION?
    tHANK YOU

    HJava wrote:
    under net bean , I click deploy a project and get war file , I copy the war file to tomcat /webapps restart the tomcat, I can see the project on localhost/Hello/index.jsp
    but under tomcat/webapps the war file did not get extracts,
    is suppose like that?So it's working, but not extracting the WAR file? I don't think that's the default setting, but you can configure Tomcat to work that way, if I remember correctly.

  • An unexpected error when create a web application

    hello,
    I'm trying to create a new web application ( under Deployments in console). I
    just manually create an sub-dir under ".\config\<active-domain>\applications"
    directory, say WebAppDir. Then I went to the console and right-click on the "Web
    Applications" and select "Configure a new Web Application", then I filled out
    the Name, URI, and Path as follows:
    Name: WebAppDir
    URI: WebAppDir
    Path: .\config\<active-domain>\applications
    then click "Create" , I then got the following error message, I don't know why
    and what i did wrong... please let me know what did i do wrong ? I don't have
    any things under the new dir i created, but I thought i would be fine, but it
    didn't.
    Here is the error message:
    An unexpected error was encountered in processing your request.
    Exception
    java.lang.NullPointerException
         at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Wed Jun 06 17:01:25 CDT 2001
    thanks so much...i really appreciate your helps.
    -Kieu

    hello,
    I'm trying to create a new web application ( under Deployments in console). I
    just manually create an sub-dir under ".\config\<active-domain>\applications"
    directory, say WebAppDir. Then I went to the console and right-click on the "Web
    Applications" and select "Configure a new Web Application", then I filled out
    the Name, URI, and Path as follows:
    Name: WebAppDir
    URI: WebAppDir
    Path: .\config\<active-domain>\applications
    then click "Create" , I then got the following error message, I don't know why
    and what i did wrong... please let me know what did i do wrong ? I don't have
    any things under the new dir i created, but I thought i would be fine, but it
    didn't.
    Here is the error message:
    An unexpected error was encountered in processing your request.
    Exception
    java.lang.NullPointerException
         at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Wed Jun 06 17:01:25 CDT 2001
    thanks so much...i really appreciate your helps.
    -Kieu

  • Storing output file created by web application in specific folder

    Hi Friends,
    I am creating a text file through my web Application which is on JBoss and I have to read this file in the JSP to print the out put.
    My problem is, the text file has been created in JBoss/bin, I want it to be created in my project folder.
    Can some one please guide me in specifying the path to place the file.
    Thanks in advance.
    Preeti

    I want to add one more sentence to my previous message:
    I can do this by specifying absolute path but I want to specify this path in my web.xml. which tags should I add to web.xml ?
    Thanks,
    Preeti

  • Create a web application in eclipse

    hi,
    There's anybody have a tutorial kit on how to create web application in eclipse 3.3 version.
    I only have a web server apache tomcat.
    Thanks in advance.

    Eclipse Web Tools Platform: http://www.eclipse.org/webtools/
    Eclipse WTP tutorials: http://www.eclipse.org/webtools/community/communityresources.php#tutorials
    Eclipse WTP webapplication tutorial: http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html

  • Packagin and Deploying Fusion Web Application

    Hi,
    I have created a Fusion web application which has Model and ViewController projects.
    I have created a deployment profiles as below for each project.
    1) Model - Which creates an "ADF Library Jar File"
    2) ViewController - Which creates a "War" file.
    I see that in the WAR file of ViewController contains the Model Projects - Entity Objects, ViewObjects and classes .
    So for deploying my Web Applications is WAR file of ViewController is enough or Should I create a EAR file which has both #1 and #2
    Thanks
    Ajay

    You sure can do in JDev. Select menu Application->'Application Properties', in the dialog select Deployment and the define a new EAR deployment profile. It's pretty easy to follow the instructions in the dialog and your are done.
    Timo

  • Problem related to create new web application

    Hi,I recently got visual studio express 2013 for web,whenever I create a new asp web application it shows a readme file instead of blank page and I don't know how to remove it. please help me as I am new to this asp aplications.

    Akhilesh,
    Microsoft has the bad habit to hide some forums for their customers.
    However for your question there is a Microsoft forum.
    http://forums.asp.net
    Sometimes I think that some Microsoft employees are afraid to show the products of their company.
    In my opinion that is not needed, in many cases especially development they are the best.
    Success
    Cor

  • SCOM 2012 R2 - How to create a Web Application Monitor for an URL requiring certificate authentication

    Hi All,
    It looks like in SCOM 2012 there are two ways to monitor a web application (URL monitoring):
    Way no 1: (Using the Web Application Transaction Monitoring template)
    Way no 2: (Using the Web
    Application Availability Monitoring template)
    We have created some monitors using
    Web Application Availability Monitoring to check if URL is up without any authentication method.
    However, we have few URLs for which we need Client Certificates to be used for accessing them but found no option in SCOM 2012 to configured the certificates. 
    I have searched a lot on the Tech Net library but no clue.  Does anyone know how to successfully monitor an URL requiring certificate authentication on SCOM 2012 ? or, at least, using no matter which method?
    Thanks.
    Regards,
    Raju.

    Hi,
    Based on my research, it is not possible by using the built-in monitoring templates. Both of them handles “normal”, server-side, SSL-certs, and the transaction monitor handles basic/digest/NTLM authentication, but client certificate based authentication
    is not a configurable option.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Need help in creating a web application that runs on a stand alone sys.

    I am planning a small java web application complete with database. I need to know if there are any ways to deploy that application on a stand alone system and that if there is any way to make an executable for that application so that the user need not go through the process of deploying the app and starting the server whenever he restarts the system. Can anyone help me in this regard? Thanks in advance.

    Hi Alex,
    Since I had a Gmail test servlet kicking around, I ran it on the latest V3 nightly build.
    On the first run, I encountered the following nested exceptions:
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465
    --> java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        --> java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
            --> java.security.UnrecoverableKeyException: Password must not be nullThe UnrecoverableKeyException is a manifestation of [https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938|https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938]
    I worked around this by adding the following JVM config options to domain.xml
    <jvm-options>-Djavax.net.ssl.keyStorePassword=changeit</jvm-options>
    <jvm-options>-Djavax.net.ssl.trustStorePassword=changeit</jvm-options> (Note: the default master password is "changeit")
    These lines are placed in /domain/configs/config/java-config of domain.xml for the particular server config you're using. There's only one server config in the default domain.xml shipped with V3. Then restart the server.
    I retested the code on both port 465 and 587, with and without the above config changes. Without the change, they both fail the same way, and with the change, they both work. Let me know if this helps.
    -Peter

Maybe you are looking for

  • Effect of bitmap indices on inserts

    Hi, I have a table where the are 6 indices out of which 4 are bitmap. The table consist of a 110 million records. -- When I am inserting records in my table how is the presence of the bitmap index going to affect the performance of my insert statemen

  • Workspace 11.1.1.3  Issue

    Hello Ladies and Gents. I have some problem when i launch a report in workspace; they remain in running state. I change my pc recently; in this moment i have IE 9 and my SO is Windows 7 professional. The version of Hyperion is 11.1.1.3 I tried to set

  • Bluetooth tethering - so close!

    Hi all, I've paired my PowerBook 13" unibody to my iPhone 4 and even get the blue bar across the iPhone screen saying "tethering". My network operator (vodafone) offer pay per use tethering so if I connect and use I get charged £5 for 500mb. All I ne

  • JCOM WL 8.1 sp3

    Hello, I tried to use JCOM provided with WebLogic 8.1 sp3. I dind't see any clause in the doc saying JCOm was not free but I get : java.lang.ExceptionInInitializerError      at com.genesys.subscriber.rtm.api.clsRTMOCI1000.(clsRTMOCI1000.java:106)    

  • Deactivation of pricing - EIC scenario

    Hi CRM experts, I'm working with SAP CRM 2007 in an Employee Interaction Centre (EIC) scenario. The business partners I use are employee and they're not configured as sold-to party, so they don't have sales area data and pricing data. Otherwise, for