Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Still Problem with my server configuration
Still Problem with my server configuration [message #92396] Fri, 15 April 2005 06:44
Eclipse UserFriend
Hi all... i really don't understand. I want to create a server definition
for JBoss 3.2.6. Now here what i have done:

i have created this file (named jaboss326.server):
<?xml version="1.0" encoding="UTF-8"?>
<tns:ServerRuntime
xmlns:tns="http://eclipse.org/jst/server/generic/ServerTypeDefinition"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://eclipse.org/jst/server/generic/ServerTypeDefinitionSe rverTypeDefinitionSchema.xsd " name="JBOSS 3.2.6" version="v3.2.6"><property id="serverRootDirectory" label="JBoss Directory:" type="directory" context="runtime" default="/your_server_root/appservers/jboss-3.2.6" /><property id="serverAddress" label="Address:" type="string" context="server" default="127.0.0.1" /><property id="port" label="Port:" type="string" context="server" default="8080" /><property id="serverConfig" label="Server Configuration (minimal/default/all):" type="string" context="server" default="default" /><property id="classPath" label="Classpath Root (jars are relative to this):" type="directory" context="runtime" default="/your_server_root/appservers/jboss-3.2.6" /> <port> <no>${port}</no> <name>Http</name> <protocol>http</protocol> </port> <module> <type>j2ee.web</type> <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy </publishDir> <publisherReference>org.eclipse.jst.server.generic.antpublisher </publisherReference> </module> <module> <type>j2ee.ejb</type> <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy </publishDir> <publisherReference>org.eclipse.jst.server.generic.antpublisher </publisherReference> </module> <module> <type>j2ee.ear</type> <publishDir>${serverRootDirectory}/server/${serverConfig}/deploy </publishDir> <publisherReference>org.eclipse.jst.server.generic.antpublisher </publisherReference> </module> <project> <classpathReference>jboss.project</classpathReference> </project> <start> <class>org.jboss.Main</class> <workingDirectory>${serverRootDirectory}/bin</workingDirectory > <programArguments>-c ${serverConfig}</programArguments> <vmParameters></vmParameters> <classpathReference>jboss</classpathReference> </start> <stop> <class>org.jboss.Shutdown</class> <workingDirectory>${serverRootDirectory}/bin</workingDirectory > <programArguments>-S</programArguments> <vmParameters></vmParameters> <classpathReference>jboss.shutdown</classpathReference> </stop> <publisher id="org.eclipse.jst.server.generic.antpublisher"> <publisherdata> <dataname>build.file</dataname> <datavalue>/buildfiles/jboss326.xml</datavalue> </publisherdata> <publisherdata> <dataname>target.publish.j2ee.web</dataname> <datavalue>deploy.j2ee.web</datavalue> </publisherdata> <publisherdata> <dataname>target.publish.j2ee.ejb</dataname> <datavalue>deploy.j2ee.ejb</datavalue> </publisherdata> <publisherdata> <dataname>target.publish.j2ee.ear</dataname> <datavalue>deploy.j2ee.ear</datavalue> </publisherdata> <publisherdata> <dataname>target.unpublish.j2ee.web</dataname> <datavalue>undeploy.j2ee.web</datavalue> </publisherdata> <publisherdata> <dataname>target.unpublish.j2ee.ejb</dataname> <datavalue>undeploy.j2ee.ejb</datavalue> </publisherdata> <publisherdata> <dataname>target.unpublish.j2ee.ear</dataname> <datavalue>undeploy.j2ee.ear</datavalue> </publisherdata> </publisher> <classpath id="jboss" isLibrary="true"> <archive path="C:/jboss-3.2.6/server/${serverConfig}/conf"/> <archive path="${classPath}/bin/run.jar" /> <archive path="${classPath}/server/${serverConfig}/lib/log4j.jar"/> </classpath> <classpath id="jboss.shutdown" isLibrary="false"> <archive path="${classPath}/bin/shutdown.jar" /> </classpath> <classpath id="jboss.project" isLibrary="false"> <archive path="${classPath}/client/jbossall-client.jar" /> <archivepath=" ${classPath}/server/default/deploy/jbossweb-tomcat50.sar/ser vlet-api.jar " /> </classpath></tns:ServerRuntime>As you can see.. since in JBoss 3.2.6 there no longer javax-servlet.jar ihave changed this file by usingserver/default/deploy/jbossweb-tomcat50.sar/servlet-api .jarNow... i have added this file in the directory${ECLIPSE_INSTALL_HOME}\eclipse\plugins\org.eclipse .jst.server.generic.serverdefinitions_1.0.0\serversthen i have created this file (named jboss326.xml)<project name="deployextension" default="deploy.j2ee.web" basedir="."> <target name="deploy.j2ee.web"> <jar destfile="${module.name}.war"> <zipfileset dir="${module.dir}"> <include name="**/*.*"/> <exclude name="**/*.war"/> </zipfileset> </jar> <move file="${module.name}.war" todir="${server.publish.dir}"/> </target> <target name="deploy.j2ee.ejb"> <jar destfile="${module.name}.jar"> <zipfileset dir="${module.dir}"> <include name="**/*.*"/> <exclude name="**/*.java"/> <exclude name="**/*.jar"/> </zipfileset> </jar> <move file="${module.name}.jar" todir="${server.publish.dir}"/> </target> <target name="undeploy.j2ee.web"> <delete file="${server.publish.dir}/${module.name}.war"> </delete> </target> <target name="undeploy.j2ee.ejb"> <delete file="${server.publish.dir}/${module.name}.jar"> </delete> </target></project>Then i have modified the plugin.xml file:<?xml version="1.0" encoding="UTF-8"?><?eclipse version="3.0"?><plugin id="org.eclipse.jst.server.generic.serverdefinitions" name="Serverdefinitions Plug-in" version="1.0.0" provider-name="Eclipse.org" class=" org.eclipse.jst.server.generic.serverdefinitions.Serverdefin itionsPlugin "> <runtime> <library name="serverdefinitions.jar"> <export name="*"/> </library> </runtime> <requires> <import plugin="org.eclipse.core.runtime"/> <import plugin="org.eclipse.jst.server.generic.core"/> </requires> <extension point="org.eclipse.jst.server.generic.core.serverdefinition "> <serverdefinition id="Weblogic8.1"definitionfile="/servers/weblogic81.server "> </serverdefinition> <serverdefinition id="JBoss 3.2.3"definitionfile="/servers/jboss323.server"> </serverdefinition> <serverdefinition id="Jonas 4.1.4" definitionfile="/servers/jonas.server"> </serverdefinition> <serverdefinition id="JBoss 4.0.1"definitionfile="/servers/jboss401.server"> </serverdefinition> <serverdefinition id="JBoss 3.2.6"definitionfile="/servers/jboss326.server"> </serverdefinition> </extension></plugin>Well when i try to select a server why doesn't my server definition appearin the wizard?I can understand if it can't start but at least in the wizard it shouldappear.Is there anybody that has been able to use JBoss version newer than 3.2.3?If so can him/her tell me how i can configure my Web Tools for using thisserver?I have downloaded this file from Web Tools home site:wtp-eclipse-prereqs-sdk-1.0M3-win32Thanks to all.
Previous Topic:Eclipse 3.1 and Weblogic 8.1
Next Topic:Is there a WTP build for Eclipse 3.1 M6?
Goto Forum:
  


Current Time: Sun Jul 13 15:23:44 EDT 2025

Powered by FUDForum. Page generated in 0.03272 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top