9 Replies Latest reply on Jun 2, 2004 8:32 AM by theute

    How to integrate JSPWiki into JBoss Nukes?

    dragon

      I would like to integrate JSPWiki into JBoss Nukes, like the JBoss.org H.P..
      I think it's easy to make it work JSPWiki on JBoss.
      But I have no idea about the way to integrate.
      Could you tell me how to do that?
      Is there any documents?

      Thanks in advance.

        • 1. JBoss 4.0.0 as a Windows Service
          theute

          Hello,

          I installed JBoss 4.0.0 and all is going very well... However, I'm trying to install it as a Windows service.

          I used JavaService but I saw that there is a lot of problems at server's startup. I haven't these problems when I start server using run.bat

          This is my command to install the service :

          JavaService.exe -install "JBoss 4.0.0 Server" %JAVA_HOME%\jre\bin\server\jvm.dll
          -Djava.class.path=%JBOSS4_HOME%\bin\run.jar;
          %JAVA_HOME%\lib\tools.jar;
          %JBOSS4_HOME%\client\getopt.jar
          -start org.jboss.Main
          -stop org.jboss.Main -method systemExit
          -out %JBOSS4_HOME%\bin\stdout.txt
          -err %JBOSS4_HOME%\bin\stderr.txt
          -current %JBOSS4_HOME%/bin



          And this is a part of the stdout.txt file :


          11:57:34,247 INFO [Server] Starting JBoss (MX MicroKernel)...
          11:57:34,247 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
          11:57:34,257 INFO [Server] Home Dir: D:\java\jboss-4.0.0
          11:57:34,257 INFO [Server] Home URL: file:/D:/java/jboss-4.0.0/
          11:57:34,257 INFO [Server] Library URL: file:/D:/java/jboss-4.0.0/lib/
          11:57:34,257 INFO [Server] Patch URL: null
          11:57:34,257 INFO [Server] Server Name: default
          11:57:34,267 INFO [Server] Server Home Dir: D:\java\jboss-4.0.0\server\default
          11:57:34,267 INFO [Server] Server Home URL: file:/D:/java/jboss-4.0.0/server/default/
          11:57:34,267 INFO [Server] Server Data Dir: D:\java\jboss-4.0.0\server\default\data
          11:57:34,267 INFO [Server] Server Temp Dir: D:\java\jboss-4.0.0\server\default\tmp
          11:57:34,267 INFO [Server] Server Config URL: file:/D:/java/jboss-4.0.0/server/default/conf/
          11:57:34,277 INFO [Server] Server Library URL: file:/D:/java/jboss-4.0.0/server/default/lib/
          11:57:34,277 INFO [Server] Root Deployment Filename: jboss-service.xml
          11:57:34,287 INFO [Server] Starting General Purpose Architecture (GPA)...
          11:57:38,192 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
          11:57:38,192 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_05-b04,Sun Microsystems Inc.
          11:57:38,202 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
          11:57:42,218 INFO [Server] Core system initialized
          11:58:06,733 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
          11:58:08,135 INFO [WebService] Using RMI server codebase: http://marcopolo:8083/
          11:58:10,559 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
          11:58:46,481 INFO [Embedded] Catalina naming disabled
          11:58:50,927 INFO [Http11Protocol] Initialisation de Coyote HTTP/1.1 sur http-0.0.0.0-8080
          11:58:51,097 INFO [Catalina] Initialization processed in 3615 ms
          11:58:51,107 INFO [StandardService] Starting service jboss.web
          11:58:51,127 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
          11:58:51,297 INFO [StandardHost] XML validation disabled
          11:58:51,398 INFO [Catalina] Server startup in 291 ms
          11:58:52,930 INFO [TomcatDeployer] deploy, ctxPath=/ebxmlrr, warUrl=file:/D:/java/jboss-4.0.0/server/default/deploy/ebxmlrr-service.sar/ebxmlrr.war/
          11:58:56,395 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
          11:59:00,130 INFO [STDOUT] Initialized REST
          11:59:01,993 INFO [SAAJServlet] init
          11:59:04,767 ERROR [Engine] StandardContext[/ebxmlrr]StandardWrapper.Throwable
          java.lang.IllegalAccessError: tried to access field org.apache.xpath.compiler.FunctionTable.m_functions from class org.apache.xml.security.Init
           at org.apache.xml.security.Init.init(Init.java:233)
           at org.jboss.jaxr.servlet.SAAJServlet.init(SAAJServlet.java:86)
           at javax.servlet.GenericServlet.init(GenericServlet.java:211)
           at org.jboss.jaxr.servlet.SAAJServlet.init(SAAJServlet.java:76)
           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
           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:324)
           at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
           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:324)
           at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
           at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
           at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
           at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
           at org.jboss.web.WebModule.startModule(WebModule.java:62)
           at org.jboss.web.WebModule.startService(WebModule.java:40)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
           at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:416)
           at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy24.start(Unknown Source)
           at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:362)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
           at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:339)
           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:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy22.addDeployer(Unknown Source)
           at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:108)
           at org.jboss.web.AbstractWebContainer.startService(AbstractWebContainer.java:568)
           at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:378)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
           at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:416)
           at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy4.start(Unknown Source)
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
           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:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy8.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
           at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:416)
           at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy4.start(Unknown Source)
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
           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:324)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy5.deploy(Unknown Source)
           at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
           at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
           at org.jboss.Main.boot(Main.java:151)
           at org.jboss.Main$1.run(Main.java:405)
           at java.lang.Thread.run(Thread.java:534)



          Thanks for ur help !
          Toine


          • 2. Re: How to integrate JSPWiki into JBoss Nukes?

            cvs co nukes-website, look there, the integration is done here

            • 3. Re: How to integrate JSPWiki into JBoss Nukes?
              dragon

              Thank you for your help, jae77.

              I could found the nukes-website in the CVS.
              But I couldn't find the any documentation about how to install and integrate though there was the README file in the nukes-website/JSPWiki directory, maybe which is the original one of the JSPWiki.
              So could you kindly tell me how to install and integrate it?

              • 4. Re: How to integrate JSPWiki into JBoss Nukes?

                the integration is done at different levels :

                security : there is in nukes-website/jboss/.../JSPWikiModule (AFAIR) which setup the JSPWiki user from the current nukes user

                lifecycle : nukes-website/jboss/.../ I don't remember well but there is a ServletContext listener which setup the JSPWiki application (threads and startup)

                then each jsp page is put in the nukes archive and when accessed nukes decorates it.

                franckly this integration is a big hack, we should better have a wiki module for Nukes, maybe you want to work on it and leverages what is already existing in nukes to setup that module. that would be rather preferable

                • 5. Re: How to integrate JSPWiki into JBoss Nukes?
                  dragon

                  Thanks, cooper.

                  franckly this integration is a big hack, we should better have a wiki module for Nukes, maybe you want to work on it and leverages what is already existing in nukes to setup that module. that would be rather preferable


                  At this moment, There is not wiki module, isnt it?

                  I have following questions.
                  1. Do you have any plan to develop it like wiki module?
                  2. If question No.1 is "Yes", Is it possible to import the data of JSPWiki into JBoss after the release of wiki module?

                  Sorry for my poor English.

                  • 6. Re: How to integrate JSPWiki into JBoss Nukes?

                    we don't plan to develop it in the short term we have other priorities and the JSPWiki hack suffice to our needs

                    in the long term it is not determined wether or not it should be. it could be part of the HTML module refactorings.

                    • 7. Re: How to integrate JSPWiki into JBoss Nukes?
                      javajohnnyjones

                      Hi, I too have been trying to get JBoss Nukes and JSPWiki to run together like the jboss.org site does it. I tried installing them independently but couldn't get JSPWiki pages to show up inside of Nukes pages. In fact, I even had a problem seeing them both in my browser when they were running concurrently (i could see the one that was started up first but the other gave me a not found browser error).

                      So I browsed the forums and found out that at cvs co nukes-website the integration is already done. Thats great. So I downloaded the files from cvs. However, though I do know how to build JBoss AS cvs (ex. 3.2.3) successfully, I could not build this nukes-website package successfully. This is what I do and the result:

                      $ ./build.sh
                      $ build.sh: *ERROR* The target executable does not exist:
                      $ build.sh:
                      $ build.sh: /tmp/nuke/nukes-website/build/bin/build.sh
                      $ build.sh:
                      $ build.sh: Please make sure you have checked out the 'tools'
                      $ build.sh: module and make sure it is up to date.

                      Is there something wrong with the build script? I think I checked out everything I was supposed to - do you think I missed something? Do you have any suggestions for me? Is there a page on the forums/wiki that has more info on building/intalling/configuring nukes-website?

                      Thank you very much in advance!!

                      • 8. Re: How to integrate JSPWiki into JBoss Nukes?
                        karimrg

                        Hi,
                        I am stuck at this point too. Please some body point me to any Readme, hint or something showing the light how to compile and get the jspwiki running with nukes.
                        Thanks a lot for help me

                        • 9. Re: How to integrate JSPWiki into JBoss Nukes?
                          ruriruri

                          Is this whole thing broken? I get the same build errors everyone else has reported. The 'tools' reference is missing one "../" I think. Adding that makes the build.sh fail because tools' build.sh does not exist. Using the build.xml instead fails because tools' buildmagic.ent does not exist. Is there some known good cvs label to go off of?