4 Replies Latest reply on Sep 19, 2006 9:24 PM by D Tim Cummings

    Exception when deploying on Mac OS X

    D Tim Cummings Newbie

      Hi

      I have deployed jboss-portal 2.4.0 on fedora core 5 and it looks fantastic. However I tried deploying on Mac OS X and I get an exception during startup. Stack trace below.

      Regards

      Tim

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

      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/local/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: /usr/local/jboss-portal-2.4.0/bin/run.jar:/lib/tools.jar

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

      08:06:37,281 INFO [Server] Starting JBoss (MX MicroKernel)...
      08:06:37,287 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
      08:06:37,313 INFO [Server] Home Dir: /usr/local/jboss-portal-2.4.0
      08:06:37,314 INFO [Server] Home URL: file:/usr/local/jboss-portal-2.4.0/
      08:06:37,317 INFO [Server] Patch URL: null
      08:06:37,318 INFO [Server] Server Name: default
      08:06:37,319 INFO [Server] Server Home Dir: /usr/local/jboss-portal-2.4.0/server/default
      08:06:37,321 INFO [Server] Server Home URL: file:/usr/local/jboss-portal-2.4.0/server/default/
      08:06:37,322 INFO [Server] Server Log Dir: /usr/local/jboss-portal-2.4.0/server/default/log
      08:06:37,323 INFO [Server] Server Temp Dir: /usr/local/jboss-portal-2.4.0/server/default/tmp
      08:06:37,324 INFO [Server] Root Deployment Filename: jboss-service.xml
      08:06:38,410 INFO [ServerInfo] Java version: 1.5.0_06,Apple Computer, Inc.
      08:06:38,411 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-64,"Apple Computer, Inc."
      08:06:38,412 INFO [ServerInfo] OS-System: Mac OS X 10.4.7,ppc
      08:06:39,551 INFO [Server] Core system initialized
      08:06:43,529 INFO [WebService] Using RMI server codebase: http://notreal.qut.edu.au:8083/
      08:06:43,593 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      08:06:44,473 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
      08:06:50,578 INFO [AspectDeployer] Deployed AOP: file:/usr/local/jboss-portal-2.4.0/server/default/deploy/jboss-portal.sar/portal-aop.xml
      08:06:55,492 WARN [ServiceController] Problem creating service portal:service=ServerConfig
      java.lang.IllegalArgumentException: Mixed content now allowed
      at org.jboss.portal.common.util.XML.asString(XML.java:251)
      at org.jboss.portal.common.util.XML.asString(XML.java:221)
      at org.jboss.portal.common.util.LoaderResource.asProperties(LoaderResource.java:120)
      at org.jboss.portal.server.config.ServerConfigService.createService(ServerConfigService.java:115)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:188)
      at org.jboss.portal.common.system.AbstractJBossService.create(AbstractJBossService.java:67)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
      at $Proxy0.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:330)
      at org.jboss.system.ServiceController.create(ServiceController.java:273)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      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.server.Invocation.invoke(Invocation.java:86)
      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 $Proxy4.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      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 $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      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.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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.server.Invocation.invoke(Invocation.java:86)
      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 $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      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:613)
      08:06:58,664 INFO [Embedded] Catalina naming disabled

        • 1. Re: Exception when deploying on Mac OS X
          Boleslaw Dawidowicz Master

          Portal is being developed on WinXP, Linux and MacOsX machines currently. So OS simply can't be the issue here ;)

          • 2. Re: Exception when deploying on Mac OS X
            D Tim Cummings Newbie

            I have tried two Macs, one running Java 1.4.2 and one running Java 1.5.0 and both had the same error. The installation is the bundled jboss portal 2.4.0 and jboss AS 4.0.4 which is pretty simple to get running on fedora core 5. I would like to get it working on Mac OS X so I am open to suggestions. The error message itself appears wrong

            java.lang.IllegalArgumentException: Mixed content now allowed

            should probably be

            java.lang.IllegalArgumentException: Mixed content not allowed

            I looked up the source of the exception in the source code for XML.java (see below) but that hasn't helped me solve the problem.

            Regards

            Tim

            /**
             * Get the element's content as a string.
             *
             * @param element the container
             * @param trim true if text should be trimmed before returning result
             * @throws IllegalArgumentException if the element content is mixed or null
             */
             public static String asString(Element element, boolean trim) throws IllegalArgumentException
             {
             if (element == null)
             {
             throw new IllegalArgumentException("No null element allowed");
             }
            
             //
             StringBuffer buffer = new StringBuffer();
             NodeList children = element.getChildNodes();
             for (int i = 0; i < children.getLength(); i++)
             {
             Node child = children.item(i);
             switch (child.getNodeType())
             {
             case Node.CDATA_SECTION_NODE:
             case Node.TEXT_NODE:
             buffer.append(((Text)child).getData());
             break;
             case Node.ELEMENT_NODE:
             throw new IllegalArgumentException("Mixed content now allowed");
             default:
             break;
             }
             }
             String result = buffer.toString();
             if (trim)
             {
             result = result.trim();
             }
             return result;
             }
            


            • 3. Re: Exception when deploying on Mac OS X
              Chris Laprun Master

              I don't have any issue deploying 2.4.0 on 4.0.4.GA on OS X. Have you by any chance modified the descriptors?

              • 4. SOLVED Re: Exception when deploying on Mac OS X
                D Tim Cummings Newbie

                 

                "chris.laprun@jboss.com" wrote:
                I don't have any issue deploying 2.4.0 on 4.0.4.GA on OS X. Have you by any chance modified the descriptors?


                Thanks for your advice. I tried a third Mac and it worked. Going back to the other two Macs I discovered they had some files in the Java Extensions directories (/Library/Java/Extensions and ~/Library/Java/Extensions) that were causing the problem. When I removed all the files from these directories the jboss portal 2.4 would deploy successfully.

                Thanks again

                Tim