LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2009, 05:46 AM   #1
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Rep: Reputation: 16
Unable to deploy servlet into Jboss-4.2.3GA


Hi friends I am trying to deploy servlet into Jboss and while starting jboss server it showing some messages which says something like this Packages waiting for deployer and complete server start-up information is here
Code:
[root@localhost deploy]# /opt/jboss-4.2.3.GA/bin/./run.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss-4.2.3.GA

  JAVA: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

  CLASSPATH: /opt/jboss-4.2.3.GA/bin/run.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib/tools.jar

=========================================================================

14:56:03,380 INFO  [Server] Starting JBoss (MX MicroKernel)...
14:56:03,381 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
14:56:03,382 INFO  [Server] Home Dir: /opt/jboss-4.2.3.GA
14:56:03,382 INFO  [Server] Home URL: file:/opt/jboss-4.2.3.GA/
14:56:03,382 INFO  [Server] Patch URL: null
14:56:03,383 INFO  [Server] Server Name: default
14:56:03,383 INFO  [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
14:56:03,383 INFO  [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/default/
14:56:03,383 INFO  [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/log
14:56:03,383 INFO  [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/tmp
14:56:03,383 INFO  [Server] Root Deployment Filename: jboss-service.xml
14:56:03,609 INFO  [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
14:56:03,609 INFO  [ServerInfo] Java VM: OpenJDK Client VM 1.6.0-b09,Sun Microsystems Inc.
14:56:03,609 INFO  [ServerInfo] OS-System: Linux 2.6.18-164.el5,i386
14:56:03,863 INFO  [Server] Core system initialized
14:56:05,533 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
14:56:05,537 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
14:56:05,885 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
14:56:05,885 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
14:56:06,041 INFO  [TransactionManagerService] Starting recovery manager
14:56:06,126 INFO  [TransactionManagerService] Recovery manager started
14:56:06,126 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
14:56:07,961 INFO  [EJB3Deployer] Starting java:comp multiplexer
14:56:09,866 INFO  [NativeServerConfig] JBoss Web Services - Native
14:56:09,866 INFO  [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
14:56:10,509 INFO  [Embedded] Catalina naming disabled
14:56:10,663 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/client:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
14:56:10,713 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
14:56:10,714 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:56:10,714 INFO  [Catalina] Initialization processed in 204 ms
14:56:10,714 INFO  [StandardService] Starting service jboss.web
14:56:10,715 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
14:56:10,755 INFO  [Catalina] Server startup in 41 ms
14:56:10,868 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
14:56:11,486 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
14:56:11,620 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
14:56:11,689 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
14:56:12,179 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
14:56:12,519 INFO  [MailService] Mail Service bound to java:/Mail
14:56:12,623 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
14:56:12,648 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
14:56:12,665 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
14:56:12,684 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
14:56:12,734 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
14:56:12,751 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
14:56:12,784 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
14:56:12,793 INFO  [QuartzResourceAdapter] start quartz!!!
14:56:12,853 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
14:56:12,876 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
14:56:12,879 INFO  [RAMJobStore] RAMJobStore initialized.
14:56:12,879 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
14:56:12,879 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
14:56:12,879 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
14:56:13,628 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
14:56:13,887 INFO  [A] Bound to JNDI name: queue/A
14:56:13,888 INFO  [B] Bound to JNDI name: queue/B
14:56:13,889 INFO  [C] Bound to JNDI name: queue/C
14:56:13,891 INFO  [D] Bound to JNDI name: queue/D
14:56:13,892 INFO  [ex] Bound to JNDI name: queue/ex
14:56:13,909 INFO  [testTopic] Bound to JNDI name: topic/testTopic
14:56:13,911 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
14:56:13,912 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
14:56:13,915 INFO  [testQueue] Bound to JNDI name: queue/testQueue
14:56:13,951 INFO  [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
14:56:13,978 INFO  [DLQ] Bound to JNDI name: queue/DLQ
14:56:14,070 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
14:56:14,088 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
14:56:14,166 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@328920d0 { url=file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes/HelloWorld.class }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes/HelloWorld.class
  altDD: null
  lastDeployed: 1254216374164
  lastModified: 1254216374000
  mbeans:

org.jboss.deployment.DeploymentInfo@fbb57b36 { url=file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1254216374165
  lastModified: 1254216374000
  mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@328920d0 { url=file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes/HelloWorld.class }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes/HelloWorld.class
  altDD: null
  lastDeployed: 1254216374164
  lastModified: 1254216374000
  mbeans:

org.jboss.deployment.DeploymentInfo@fbb57b36 { url=file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1254216374165
  lastModified: 1254216374000
  mbeans:


14:56:14,223 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
14:56:14,238 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:56:14,246 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 10s:861ms
and here is the files information which i have written
Helloworld.java
Code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet
{
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws ServletException,IOException
    {
	res.setContentType("text/html");
	PrintWriter pw = res.getWriter();
	pw.println("<html>");
	pw.println("<head><title>HelloMiri</title></title>");
	pw.println("<body>");
	pw.println("<h1>HelloMiri</h1>");
	pw.println("</body></html>");

    }
}
web.xml
Code:
<web-app>
 <servlet>
  <servlet-name>Hello</servlet-name>
  <servlet-class>HelloWorld</servlet-class>
 </servlet>
 <servlet-mapping>
 <servlet-name>Hello</servlet-name>
 <url-pattern>/HelloWorld</url-pattern>
 </servlet-mapping>
</web-app>
I placed this files in one folder names as srinivas and placed in jboss directory which looks like
Code:
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/classes/HelloWorld.class
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/lib
/opt/jboss-4.2.3.GA/server/default/deploy/srinivas/WEB-INF/web.xml
am i missing anything else

Last edited by srinivasmiriyalu; 09-29-2009 at 05:48 AM. Reason: spelling mistakes
 
Old 09-30-2009, 01:03 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Not my area but maybe you need to package your application as a war file ...

cheers
 
Old 10-01-2009, 08:25 AM   #3
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
Unable to deploy servlet into Jboss-4.2.3GA

Thanks kbp and I have small query about deploying application,that is we can not deploy application like as tomcat? right and all the time do we need to create war file?
 
Old 10-01-2009, 11:04 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I believe JBoss is saying that it doesn't have a deployer for your files, meaning it doesn't know how to deal with them. I usually deployed tomcat apps as war files, did you do it differently ?
 
Old 10-02-2009, 05:46 AM   #5
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
Unable to deploy servlet into Jboss-4.2.3GA

I followed like the way deploying applications into tomcat but this way doesn't work for me, after creating war file only got the application running in JBoss

Last edited by srinivasmiriyalu; 10-02-2009 at 05:48 AM. Reason: spelling mistakes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
servlet error mahi Linux - Newbie 5 11-23-2008 01:27 PM
servlet on fedora9 tannu_ah Linux - Newbie 1 11-14-2008 12:51 AM
running servlet sajith Ubuntu 1 02-26-2007 10:13 PM
servlet programming sajith Ubuntu 1 02-23-2007 08:43 PM
servlet error sajith Programming 1 02-23-2007 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration