1 Reply Latest reply on Jan 22, 2007 6:23 PM by Prabhat Jha

    jboss setup and portlet deployment

    Edward Chen Newbie

      Hi,

      I download jboss-portal-2.4.0 in my linux machine and I cd into bin and type sh run.sh
      The jboss portal is up and running in my http://localhost:8080/.portal

      then, I download "HellotWorldPortlet from www.porttletswap.com and move the "HelloWorldPortlet" into /server/default/deply/ then re-start the jboss portal. It works!

      then I create another project named" NetFlowDataPortlet" by NetBeans IDE -Portlet Application (JSR 168 Application) and build andt run the projects.

      Then I copy "NetFlowDataPortlet" folder, just like " HelloWorldPortlet", into /server/default/deply

      and I don't see the NetFlowDataPortlet up and running in my jboss portal. Then I restart jboss, even I can not bring up my jboss portal. Here is my error message

      [ezchen@wasabi bin]$ sh run.sh
      run.sh: Missing file: /lib/tools.jar
      run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /home/ezchen/download/jboss-portal-2.4.0

      JAVA: java

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

      CLASSPATH: /home/ezchen/download/jboss-portal-2.4.0/bin/run.jar:/lib/tools.jar

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

      log4j:ERROR setFile(null,false) call failed.
      java.io.FileNotFoundException: /home/ezchen/download/jboss-portal-2.4.0/server/default/log/boot.log (Permission denied)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.(FileOutputStream.java:179)
      at java.io.FileOutputStream.(FileOutputStream.java:102)
      at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
      at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
      at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
      at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
      at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
      at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      at org.apache.log4j.LogManager.(LogManager.java:113)
      at org.jboss.logging.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:77)
      at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:338)
      at org.jboss.logging.Logger.(Logger.java:96)
      at org.jboss.logging.Logger.getLogger(Logger.java:309)
      at org.jboss.system.server.ServerImpl.doInit(ServerImpl.java:166)
      at org.jboss.system.server.ServerImpl.init(ServerImpl.java:147)
      at org.jboss.Main.boot(Main.java:197)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      16:06:27,423 INFO [Server] Starting JBoss (MX MicroKernel)...
      16:06:27,425 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
      16:06:27,427 INFO [Server] Home Dir: /home/ezchen/download/jboss-portal-2.4.0
      16:06:27,427 INFO [Server] Home URL: file:/home/ezchen/download/jboss-portal-2.4.0/
      16:06:27,429 INFO [Server] Patch URL: null
      16:06:27,429 INFO [Server] Server Name: default
      16:06:27,429 INFO [Server] Server Home Dir: /home/ezchen/download/jboss-portal-2.4.0/server/default
      16:06:27,429 INFO [Server] Server Home URL: file:/home/ezchen/download/jboss-portal-2.4.0/server/default/
      16:06:27,429 INFO [Server] Server Log Dir: /home/ezchen/download/jboss-portal-2.4.0/server/default/log
      16:06:27,430 INFO [Server] Server Temp Dir: /home/ezchen/download/jboss-portal-2.4.0/server/default/tmp
      16:06:27,430 INFO [Server] Root Deployment Filename: jboss-service.xml
      16:06:27,810 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      16:06:27,810 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05,Sun Microsystems Inc.
      16:06:27,810 INFO [ServerInfo] OS-System: Linux 2.6.9-5.ELsmp,i386
      16:06:28,371 INFO [Server] Core system initialized
      16:06:28,405 ERROR [MainDeployer] Could not make local copy for file:/home/ezchen/download/jboss-portal-2.4.0/server/default/conf/jboss-service.xml
      java.io.IOException: No such file or directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(File.java:1345)
      at java.io.File.createTempFile(File.java:1434)
      at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1167)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:840)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      16:06:28,417 ERROR [MainDeployer] Could not initialise deployment: file:/home/ezchen/download/jboss-portal-2.4.0/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml
      at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml
      at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      16:06:28,426 INFO [Server] Runtime shutdown hook called, forceHalt: true
      16:06:28,427 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      16:06:28,439 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      [ezchen@wasabi bin]$

      Can anyone know what happened? and how to fix it?


      wasabi

        • 1. Re: jboss setup and portlet deployment
          Prabhat Jha Master

          There could be other problem but let's do first thing first. Please make sure that your JAVA_HOME environment variable is set before you hit ./run.sh.

          Clean data,log,tmp and work directory from server/default. Restart jboss and see if you still have problem.

          You do not have to restart jboss for your new deployment to work. You can just drop your war file in /server/default/deploy and portal should pick it up.