Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Admin application in Tomcat 5.5 (dead?)

Subject: Re: Admin application in Tomcat 5.5 (dead?)

2007-11-01       - By Johnny Kewl

 Back





-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --

Hi Chris....
At the bottom of this, I stuck some ant script...
Its not pretty, but if u play a little.... its very useful.

I'm thinking you can get the script going then just call the ant tasks from
your test program...

Have fun...

-- -- Original Message -- --
From: "Christopher Schultz" <chris@(protected)>
To: "Tomcat Users List" <users@(protected)>
Sent: Wednesday, October 31, 2007 5:52 PM
Subject: Admin application in Tomcat 5.5 (dead?)


> -- --BEGIN PGP SIGNED MESSAGE-- --
> Hash: SHA1
>
> All,
>
> For the first time ever, I have the need to use the Tomcat admin
> application: I have a project whose whole unit testing capability
> revolves around being able to deploy webapps for testing to a running
> Tomcat instance using the admin application.
>
> My understanding is that the admin app is basically dead.
>
> I downloaded the admin app from the TC 5.5 download page and it doesn't
> run in a TC instance with nothing else in it:
>
> java.lang.NoClassDefFoundError: org/apache/commons/modeler/Registry
>        at java.lang.Class.getDeclaredMethods0(Native Method)
>        at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
>        at java.lang.Class.getMethod0(Class.java:2642)
>        at java.lang.Class.getMethod(Class.java:1579)
>        at
> org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod
(MethodUtils.java:535)
>        at
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209)
>        at
> org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:625)
>
> (etc.)
>
> The manager application comes with no libraries, so it's no surprise
> that it can't find some library.
>
> Is the admin app really dead? If so, why is it (still) available for
> download from the TC 5.5 page. If it /is/ dead, does any other product
> feature the capabilities required for using the Catalina Ant tasks such
> as install/deploy and undeploy/remove? I know that, say, Lambda Probe
> can deploy/undeploy, but do I have to re-write all the test targets in
> order to do that?
>
> Thanks,
> - -chris
> -- --BEGIN PGP SIGNATURE-- --
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHKKSp9CaO5/Lv0PARAk7EAJ9dQseEg3ORBHyv9DjeGg6W1kPvygCfe4Jb
> FI2jbNLVmQ/y5jt3MJNW4iI=
> =8s4A
> -- --END PGP SIGNATURE-- --
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

===============VERY USEFUL ANT SCRIPT================

<project name="Deployer" default="deploy" basedir=".">

 <path id="deployer.classpath">
   <fileset dir="${basedir}/lib">
     <include name="*.jar"/>
   </fileset>
 </path>

 <taskdef resource="org/apache/catalina/ant/catalina.tasks"
          classpathref="deployer.classpath"/>


 <!-- point url at manager
    change username and password to Tomcat Admin
    war - is the path to the thing you trying to install
    dont change update - it makes it undeploy existing first
    path - is the Context (the uri you want it to be)
    config - points via a context file that will be used as the docbase
     if you use config you dont use war or localWar
     ie it will point tc at the existing installation that you have at that
docBase
     - ie context.xml looks like this -
       <?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
       <Context docBase="D:\GARBAGE\TestSite" path="/Ignored"/>

    localWar - will move the contents of your unpacked web app to tc

    In Netbeans right click and run task 'deploy'

    If you dont like ant then this will also work
    http://localhost:8080/manager/deploy?config=file://D:\\GARBAGE\\TestSite\
\META-INF\\context.xml&path=/Test88
 -->


 <!-- sample configs
    war="D:\\DEV\\PROJECTS\\TestRemoteIp\\dist\\TestRemoteIp.war"
    config="D:\\GARBAGE\\TestSite\\META-INF\\context.xml"
    localWar="file://D:\\GARBAGE\\TestSite"
 -->
 <target name="deploy" description="Deploy web application">
   <deploy url="http://localhost:8080/manager" username="admin" password=""
           path="/Test5"
           update="true"
           config="file://D:\\GARBAGE\\TestSite\\META-INF\\context.xml"
           />
 </target>

</project>
 <!-- MAKE a simple java application
      make a "lib" folder under the application folder
      add
       catalina-ant.jar
       catalina-deployer.jar
       el-api.jar
       jasper.jar
       jasper-el.jar
       jsp-api.jar
       servlet-api.jar
       tomcat-juli.jar

      They are all in your Tomcat Libs....
 -->


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.