Details

    • Similar Issues:
      Show 10 results 

      Description

      I want to add mime types to jboss web

      [standalone@localhost:9999 configuration=container] :read-resource
      {
      "outcome" => "success",
      "result" =>

      { "mime-mapping" => undefined, "welcome-file" => undefined }

      }
      [standalone@localhost:9999 configuration=container] :add

      add add-mime
      [standalone@localhost:9999 configuration=container] :add-mime(name=bla,value=application/text+bla)
      {
      "outcome" => "success",
      "response-headers" =>

      { "operation-requires-reload" => true, "process-state" => "reload-required" }
      }
      [standalone@localhost:9999 configuration=container] :add-mime(name=foo,value=application/text+foo)
      {
      "outcome" => "success",
      "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" }

      }
      [standalone@localhost:9999 configuration=container] :read-resource
      {
      "outcome" => "success",
      "result" => {
      "mime-mapping" =>

      { "bla" => "application/text+bla", "foo" => "application/text+foo" }

      ,
      "welcome-file" => undefined
      },
      "response-headers" =>

      {"process-state" => "reload-required"}
      }
      [standalone@localhost:9999 configuration=container] /:reload
      {
      "outcome" => "success",
      "response-headers" => {"process-state" => "reload-required"}

      }
      [standalone@localhost:9999 configuration=container] /:read-resource
      Communication error: java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
      [disconnected configuration=container]

      Server console shows

      15:41:23,595 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss EAP 6.0.0.Beta2 (AS 7.1.1.Final-redhat-1) started in 4233ms - Started 175 of 255 services (79 services are passive or on-demand)
      15:41:23,653 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "test-simple.war"
      15:42:54,729 INFO [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
      15:42:54,734 INFO [org.jboss.as.osgi] JBAS011942: Stopping OSGi Framework
      15:42:54,805 INFO [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService
      15:42:54,807 INFO [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager
      15:42:54,812 INFO [org.jboss.as.server.deployment] JBAS015877: Stopped deployment test-simple.war in 103ms
      15:42:54,814 INFO [org.jboss.as.connector.subsystems.datasources] JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
      15:42:54,815 INFO [org.jboss.as.mail.extension] JBAS015401: Unbound mail session [java:jboss/mail/Default]
      15:42:54,819 INFO [org.jboss.as] JBAS015950: JBoss EAP 6.0.0.Beta2 (AS 7.1.1.Final-redhat-1) stopped in 111ms
      15:42:54,819 INFO [org.jboss.as] JBAS015899: JBoss EAP 6.0.0.Beta2 (AS 7.1.1.Final-redhat-1) starting
      15:42:54,930 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
      15:42:54,937 INFO [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
      15:42:54,938 INFO [org.jboss.as.clustering.infinispan] JBAS010280: Activating Infinispan subsystem.
      15:42:54,940 INFO [org.jboss.as.naming] JBAS011800: Activating Naming Subsystem
      15:42:54,941 INFO [org.jboss.as.osgi] JBAS011940: Activating OSGi Subsystem
      15:42:54,947 INFO [org.jboss.as.security] JBAS013101: Activating Security Subsystem
      15:42:54,949 INFO [org.jboss.as.webservices] JBAS015537: Activating WebServices Extension
      15:42:54,969 INFO [org.jboss.as.connector.subsystems.datasources] JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      15:42:54,954 ERROR [org.jboss.as.controller.management-operation] JBAS014612: Operation ("add") failed - address: ([("subsystem" => "web")]): java.lang.IllegalArgumentException
      at org.jboss.dmr.ModelValue.asPropertyList(ModelValue.java:100) [jboss-dmr-1.1.1.Final-redhat-1.jar:1.1.1.Final-redhat-1]
      at org.jboss.dmr.ModelNode.asPropertyList(ModelNode.java:360) [jboss-dmr-1.1.1.Final-redhat-1.jar:1.1.1.Final-redhat-1]
      at org.jboss.as.web.SharedWebMetaDataBuilder.init(SharedWebMetaDataBuilder.java:73)
      at org.jboss.as.web.SharedWebMetaDataBuilder.<init>(SharedWebMetaDataBuilder.java:67)
      at org.jboss.as.web.WebSubsystemAdd$1.execute(WebSubsystemAdd.java:102)
      at org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:45)
      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
      at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
      at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.1.Final-redhat-1.jar:7.1.1.Final-redhat-1]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_31]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_31]
      at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_31]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA-redhat-1.jar:2.0.0.GA-redhat-1]

      15:42:54,961 INFO [org.jboss.as.connector] JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final-redhat-1)
      15:42:54,967 INFO [org.jboss.as.naming] JBAS011802: Starting Naming Service
      15:42:54,971 INFO [org.jboss.as.security] JBAS013100: Current PicketBox version=4.0.7.Final-redhat-1
      15:42:54,958 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      Persisted data in standalone.xml

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
      <configuration>
      <mime-mapping name="bla" value="application/text+bla"/>
      <mime-mapping name="foo" value="application/text+foo"/>
      </configuration>
      <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="37"/>
      <virtual-server name="default-host" enable-welcome-root="true"/>
      <virtual-server name="snert">
      <alias name="snert.pilhuhn.de"/>
      <rewrite pattern=".*" substitution="$1" flags="NO"/>
      </virtual-server>
      </subsystem>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Tomaz Cerar
            Reporter:
            Heiko Rupp
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: