0 Replies Latest reply on Sep 18, 2002 10:37 AM by jrssnyder

    web-client.war not deploying in template

    jrssnyder

      Hello,

      I am trying to get set up with the template, as recommended in the documentation, and I have encountered a problem which I desperately hope someone can help with. Essentially, it seems that the web-client.war package is not deploying when I run ant on the build.xml file in the template download. Accordingly, I get a "page not found" error when I try to go to http://localhost:8080/web-client. When I run ant with jboss running, I see the following in the jboss console window (please note the last line) :
      *********************************************************
      21:10:33,545 INFO [MainDeployer] Starting deployment of package:
      file:/C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/deploy/ejb-test.j
      ar
      21:10:33,735 INFO [EjbModule] Creating
      21:10:33,755 INFO [EjbModule] Deploying test/TestBMPEntity
      21:10:33,765 INFO [EjbModule] Deploying test/TestEntity
      21:10:33,785 INFO [EjbModule] Deploying test/SequenceGenerator
      21:10:33,795 INFO [EjbModule] Deploying test/TestSession
      21:10:33,805 INFO [EjbModule] Deploying test/TestMessage
      21:10:34,005 INFO [EjbModule] Created
      21:10:34,005 INFO [EjbModule] Starting
      21:10:34,095 INFO [test/TestEntity] Created table 'TESTENTITY' successfully.
      21:10:34,095 INFO [EjbModule] Started
      21:10:34,105 INFO [MainDeployer] Successfully completed deployment of
      package: file:/C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/deploy/ejb-test.jar
      21:10:34,105 INFO [MainDeployer] Starting deployment of package:
      file:/C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/deploy/web-client.war
      21:10:34,105 INFO [MainDeployer] Deployment of package:
      file:/C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/deploy/web-client.war is waiting for an appropriate deployer.
      ***************************************************

      Do I need some special kind of deployer to avoid the "web-client.war is waiting for an appropriate deployer" problem?

      As for my environment, I am running on a Win2K machine, using the jboss-3.0.0_tomcat-4.0.3 package. I have no problem seeing the beans in the Agent View at http://localhost:8082 after I run the build.xml file.
      I started jboss with the "all" parameter, rather than the "default" parameter, because I got errors in the startup script with the default parameter. I modified the ant.properties file accordingly (see below). Here is the console output when I run ant on the build.xml file, which references ant.properties:
      *****************************************
      ***** ant @ C:\Java\jboss\template *****
      Buildfile: build.xml
      check-environment:
      check-jboss:
      wrong-jboss:
      check-xdoclet:
      wrong-xdoclet:
      init:
      [echo] build.compiler 3D ${build.compiler}
      [echo] user.home 3D C:\Documents and Settings\John Snyder
      [echo] java.home 3D C:\Java\jdk1.3_1_02\jre
      [echo] ant.home 3D C:\ant\jakarta-ant-1.5\bin\\..
      [echo] jboss.home 3D C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3
      [echo] xdoclet.home 3D C:/Java/jboss/xdoclet1.1.2
      [echo] java.class.path 3D
      C:\Java\jdk1.3_1_02\lib\tools.jar;C:\ant\jakarta-ant-1.5\bin\\..\lib\xml-apis.jar;C:\ant\jakarta-ant-1.5\bin\\..\lib\xercesImpl.jar;C:\ant\jakarta-ant-1.5\bin\\..\lib\optional.jar;C:\ant\jakarta-ant-.5\bin\\..\lib\ant.
      jar;
      xdoclet-generate:
      [ejbdoclet] Generating Javadoc
      [ejbdoclet] Javadoc execution
      [ejbdoclet] Loading source file
      C:\Java\jboss\template\src\main\ejb\test\session\SequenceGeneratorBean.java...
      [ejbdoclet] Loading source file
      C:\Java\jboss\template\src\main\ejb\test\session\TestSessionBean.java...
      [ejbdoclet] Loading source file
      C:\Java\jboss\template\src\main\ejb\test\message\TestMessageDrivenBean.java...
      [ejbdoclet] Loading source file
      C:\Java\jboss\template\src\main\ejb\test\entity\TestBMPEntityBean.java...

      [ejbdoclet] Loading source file
      C:\Java\jboss\template\src\main\ejb\test\entity\TestEntityBean.java...
      [ejbdoclet] Constructing Javadoc information...
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] Running
      [ejbdoclet] javadoc: warning - Method
      test.message.TestMessageDrivenBean.ejbCreate
      [ejbdoclet] documents that it throws javax.ejb.CreateException,
      [ejbdoclet] but does not declare it.
      [ejbdoclet] Running
      [ejbdoclet] 1 warning
      compile:
      jar:
      compile-web:
      war:
      deploy-server:
      [copy] Copying 2 files to C:\Java\jboss\jboss-3.0.0_tomcat-4.0.3\server\all\deploy
      create-client:
      [echo] JBoss Home on Unix: C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3
      [echo] Java Home on Unix: C:/Java/jdk1.3_1_02/jre
      main:
      BUILD SUCCESSFUL
      Total time: 6 seconds
      *****************************************

      ant.properties file:
      **************************************************
      # ATTENTION: this is an example file how to overwrite settings in this project
      # Please rename it to ".ant.properties" and adjust the settings to your needs
      # Set the path to the runtime JBoss directory containing the JBoss application server
      # ATTENTION: the one containing directories like "bin", "client", "server" etc.
      jboss.home3DC:/Java/jboss/jboss-3.0.0_tomcat-4.0.3
      # Set the configuration name that must have a corresponding directory under
      # <jboss.home>/server
      jboss.configuration3Dall
      # Set the path to the root directory of the XDoclet distribution (see # http://www.sf.net/projects/xdoclet) xdoclet.home3DC:/Java/jboss/xdoclet1.1.2
      # Set this to "true" when you want to force the rebuild of the XDoclet generated # files (see XDoclet's attribute "force")
      xdoclet.force3Dfalse
      # Set the EJB version you want to use (1.1 or 2.0, see XDoclet's
      attribute "ejbspec")
      ejb.version3D2.0
      # Set the JBoss version you want to use (2.4, 3.0 etc., see XDoclet's attribute "version")
      jboss.version3D3.0
      # Set the DB type mapping (Hypersonic SQL, PostgreSQL etc., see XDoclet's attribute "typemapping")
      type.mapping3DHypersonic SQL
      # Set the DataSource name your are going to use (java:/DefaultDS etc., see XDoclet's attribute "datasource")
      datasource.name3Djava:/DefaultDS
      # Uncomment this and adjust the path to point directly to JAR file containing the servlet classes
      # Attention: By uncommenting this line you start the creation of a WAR file
      servlet-lib.path3DC:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/lib/javax.servlet.jar