This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi! Is it possible to deploy an application that is not packed with a jar archive in Jrun 4 ? i want to depeploy the entire app tree without using a war, jar, ear.... -files .. maybe create a context in some way ?
have to had any time to learn the admin app? If you start the default server and then select it (J2EE components should open by default, if not choose that option). You can then deploy Enterprise apps, web applications and EJBs if yo select Add here you can deploy an expanded web app = i.e. not packaged as a war file
chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Joined: Jun 14, 2002
I know that but, Enterprise apps are ear files, web apps are war files, and javabeans are jar files. I want to deploy the application without using any of theese. I have to deploy it as it is, the entire tree without packing it first with a jar archive
You can do that from the admin server - Define your application - under the default application server is simplest. Then under the servlets item on the application list you can edit the associated web.xml with the appropriate information. Then you copy the class files etc into place and restart. Bill
Are you relly talking about Jrun 4 ? sounds to me more like WebSphere? when you say "admin server" do you mean "Jrun Management Console" ? Im sorry but this doesnt make any sence cause the objects you describe are not in Jruns management console.
1. Start the admin server and go to the JMC. 2. Start the JRun server that you want your webapp to be deployed to. 3. Click on that JRun server. 4. In "Web Applications" click Add. 5. In deployment files browse to your webapp root directory and click deploy. 6. Select the general settings for your web application, and click apply. Sometimes an error will appear: javax.management.MalformedObjectNameException: ObjectName: Invalid value -> demo-app?server etc etc. This is a benign bug. Ignore this.
You can also use the autodeploy feature of JRun 4. Simply, start your JRun Server and place your expanded directory on the autodeploy directory. JRun automatically deploys a module when it detects a module archive file or an expanded module directory in a deploy directory. By default, this functionality is combined with hot deploy, which automatically deploys a module copied to a deploy directory of a running JRun server. The default deploy directory is jrun_root/servers/jrun_server, but you can create additional deploy directories, and modify or remove existing ones through the JMC or by manually adding or removing deployDirectory attributes to the DeployerService section of the JRun server's jrun_root/servers/server_name/SERVER-INF/jrun.xml file. For example, to configure the directory c:/my_deployments as a deploy directory, you would add the following entry to the jrun.xml file: <attribute name="deployDirectory">c:/my_deployments</attribute>. You may want to refer to Dynamic module deployment of the JRun 4.0 Documentation for details. [ July 09, 2002: Message edited by: Owee Nicolas ]
Owee<br />SCJP 1.4
Joined: Jun 14, 2002
Thanx alot guys, the thing is when u try to add an web application it asks you for a war file, thats why I got confused, It was true though, you can point it to the root of that directory. Thanx alot works perfectly