Hello,
 
I am trying to get set up with the template, as recommended in the documentation, and I have encountered a problem which I hope you can help with.  Essentially, 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.jar
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.
***************************************************
 
I have 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 = ${build.compiler}
[echo] user.home = C:\Documents and Settings\John Snyder
[echo] java.home = C:\Java\jdk1.3_1_02\jre
[echo] ant.home = C:\ant\jakarta-ant-1.5\bin\\..
[echo] jboss.home = C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3
[echo] xdoclet.home = C:/Java/jboss/xdoclet1.1.2
[echo] java.class.path = 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-1.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 <homeInterface/>
[ejbdoclet] Running <remoteInterface/>
[ejbdoclet] Running <entitypk/>
[ejbdoclet] Running <dataobject/>
[ejbdoclet] Running <entitybmp/>
[ejbdoclet] Running <entitycmp/>
[ejbdoclet] Running <deploymentDescriptor/>
[ejbdoclet] javadoc: warning - Method test.message.TestMessageDrivenBean.ejbCreate
[ejbdoclet] documents that it throws javax.ejb.CreateException,
[ejbdoclet] but does not declare it.
[ejbdoclet] Running <jboss/>
[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
*****************************************
 
Do I need some special kind of deployer to avoid the "web-client.war is waiting for an appropriate deployer" problem?  Any help/explanation you can give would be most appreciated.  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.
 
Thanks a lot,
 
-- John
 
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.home=C:/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.configuration=all
# Set the path to the root directory of the XDoclet distribution (see
# http://www.sf.net/projects/xdoclet)
xdoclet.home=C:/Java/jboss/xdoclet1.1.2
# Set this to "true" when you want to force the rebuild of the XDoclet generated
# files (see XDoclet's <ejbdoclet> attribute "force")
xdoclet.force=false
# Set the EJB version you want to use (1.1 or 2.0, see XDoclet's <ejbdoclet> attribute "ejbspec")
ejb.version=2.0
# Set the JBoss version you want to use (2.4, 3.0 etc., see XDoclet's <jboss> attribute "version")
jboss.version=3.0
# Set the DB type mapping (Hypersonic SQL, PostgreSQL etc., see XDoclet's <jboss> attribute "typemapping")
type.mapping=Hypersonic SQL
# Set the DataSource name your are going to use (java:/DefaultDS etc., see XDoclet's <jboss> attribute "datasource")
datasource.name=java:/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.path=C:/Java/jboss/jboss-3.0.0_tomcat-4.0.3/server/all/lib/javax.servlet.jar
 

Reply via email to