facebook

Deploying a default application? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #207644 Reply

    Rahman
    Member

    I’m using MyEclipse Version: 3.7.2 Build id: 200404091200-3.7.2GA with Eclipse 3.0M8 and I’d like to deploy an existing application that needs its context-root to be ‘/’. The dialog for “Project Deployments” doesn’t allow me to add one at root; instead it deploys it to something like “/projectname”

    I couldn’t find any documentation to describe the procedure as mentioned in the error message:

    JBoss 4 does not support deployment of a default web application, i.e., context-root=’/’, without preconfiguration of the server using either an exended deployment descriptor or direct server configuration. Therefore, the exploded deployment location has been adjusted to C:/jboss/server/default/deploy/projectname. Proceeding with deployment to this location may result in project projectname being deployed with the context-root ‘/projectname’ unless server-specific deployment has been configured.

    Choose Cancel if you do not wish to accept this change.

    How can I set things up so that my application deployment is automated and occurs as a default application?

    #207645 Reply

    Riyad Kalla
    Member

    Rahman,
    MyEclipse supports deployment of default applications to App Servers that support it (for example, Tomcat 5). Aparently the tool is suggesting that JBoss 4 doesn’t support such a setup. Let me check with the devs and get back to you on this.

    #207648 Reply

    Rahman
    Member

    Oh sorry, I momentarily forgot that we currently had the application deployed as default on Tomcat, but were exploring the option of using JBoss. It would be unfortunate if it is the case that JBoss does not support a default app…

    #207650 Reply

    Riyad Kalla
    Member

    Rahman,
    I’ve checked with the devs if infact our connector is correct and only some app servers allow a default app. When they get back to me, I’ll let you know. If that is the case you will most likely need to keep using Tomcat for development and then deploy on JBoss if you would like to keep using the deployment tool. (the hot-deploy is handy ;))

    #207653 Reply

    Riyad Kalla
    Member

    Rahman,
    Ok turns out that JBoss supports the concept of a default app, BUT you need to modify one of the JBoss XML files to specify which app it is. Soooo, you could keep deploying to the default location the deployment tool is using (or setup a new one) and then change your JBoss config to use that app as the default app.

    #208571 Reply

    Rahman
    Member

    Thanks for the response (sorry I wasn’t paying attention to this thread).

    That solution should work fine, I’m just still a little unsure as to where and how the configuration is modified to assign a given context to a webapp…could you either explain or point me in the right direction? Thanks!

    #208572 Reply

    Riyad Kalla
    Member

    From RimUHosting help:

    Your application.xml file will have a context-root element that lets the server know where to deploy the web application (e.g. <context-root>/</context-root> if you want to use http://yourdomain.com/index.jsp, or <context-root>/jsp</context-root> if you want to use http://yourdomain.com/jsp/index.jsp.

    original URL here: http://rimuhosting.com/jboss.jsp

    That should be enough to get you googling I hope. If not, let me know.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Deploying a default application? [Closed]

You must be logged in to post in the forum log in