Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7083079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:08:02+00:00 2026-05-28T07:08:02+00:00

I am trying to deploy a WAR on the mentioned tomcat application server. However

  • 0

I am trying to deploy a WAR on the mentioned tomcat application server. However following is the error that I get when I try to use the tomcat manager / ant script for deployment.

java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException:  Error initializaing :  java.lang.IllegalArgumentException: The archive [jar:file:/var/lib/tomcat6/webapps/afgretail.war!/] is malformed and will be ignored: an entry contains an illegal path [/]

The WAR contains spring beans, HTML pages, js, images, css etc. We are currently deploying the project by coping the unzipped project directly into the webapps folder on the tomcat server which works fine. However we would like to deploy using the ant script developed to deploy war file to a remote tomcat.

The development was done on windows platform but the tomcat server resides on Linux (Oracle Enterprise Linux)

Snippet that does deployment as follows:

<!-- Configure the folder and context path for this application -->
<property name="webapp" value="walton" />
<property name="path" value="/walton" />

<!-- Configure properties to access the Manager application -->
<property name="url" value="http://localhost:8080/manager/html" />
<!-- <property name="url" value="http://osm4.afgonline.com.au:8080/manager/html" />-->
<property name="username" value="tomcat" />
<property name="password" value="s3cret" />

<property name="dist.dir" value="dist" />

<property name="webapp.path" value="${dist.dir}/${webapp}" />

<property name="project.path" value="C:/java/workspace/afghl_walton"/>

<path id="deployer.classpath">
    <!--fileset dir="${basedir}/lib"-->
    <fileset dir="C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\">
        <include name="*.jar" />
    </fileset>
</path>

<!-- Configure the custom Ant tasks for the Manager application -->
<taskdef resource="org/apache/catalina/ant/catalina.tasks"
    classpathref="deployer.classpath" />

<target name="deploy" description="Deploy web application">
    <deploy url="${url}" username="${username}" password="${password}"
        path="${path}" war="${project.path}/${webapp.path}.war" update="true" />
</target>

Any help will be apprrciated. If there is more information required please let me know.

Thanks,

Khush

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:08:03+00:00Added an answer on May 28, 2026 at 7:08 am

    I had the same problem with Tomcat 5.5.34. I build the WAR with Ant and the WAR target contained the following task:

    The prefix caused an jar entry named “/” in the war package and since Tomcat 5.5.26 that entry causes an exception during startup of the Tomcat container.

    Changing the prefix attribute value of the war command to

    removed all my problems.

    Best regards,
    Chris

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy a war to a Apache Tomcat server (Build 6.0.24) using
I'm trying to deploy a war file onto my server which is tomcat 6
I am trying to deploy a web application on JBoss server. However, when I
I am trying to remotely deploy a war file to a websphere application server.
I am trying to deploy my application in Tomcat. Getting following execption log4j:WARN No
I am trying to deploy a war to a remote tomcat server from maven,
I am trying to deploy a war to Glassfish 3.1.1 that makes use of
Hi I'm trying to build/deploy war to websphere process server 7.0. and I run
I am trying to deploy a war file to tomcat 6.0.27. This war file
I am trying to deploy the sample-app war file that comes with PushSDK.But was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.