7 Replies Latest reply on Jun 29, 2011 10:38 AM by Unmesh Chowdhury

    Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)

    Unmesh Chowdhury Newbie

      Hello,

       

      My project POM is as follows:

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

          <modelVersion>4.0.0</modelVersion>

       

           <groupId>com.mycompany</groupId>

          <artifactId>JavaEETest</artifactId>

          <version>1.0-SNAPSHOT</version>

          <packaging>war</packaging>

       

          <name>JavaEETest Web App</name>

       

          <properties>

              <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>

              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

              <version.junit>4.8.2</version.junit>

              <version.org.jboss.arquillian>1.0.0.Alpha5</version.org.jboss.arquillian>

              <version.org.glassfish.deployment.client>3.1</version.org.glassfish.deployment.client>

              <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>

          </properties>

       

           <dependencies>

              <dependency>

                  <groupId>com.sun.jersey</groupId>

                  <artifactId>jersey-client</artifactId>

                  <version>1.3</version>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>com.sun.jersey.contribs</groupId>

                  <artifactId>jersey-multipart</artifactId>

                  <version>1.3</version>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>javax.mail</groupId>

                  <artifactId>mail</artifactId>

                  <version>1.4.4</version>

                  <type>jar</type>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>javax</groupId>

                  <artifactId>javaee-web-api</artifactId>

                  <version>6.0</version>

                  <scope>provided</scope>

              </dependency>

       

              <dependency>

                  <groupId>junit</groupId>

                  <artifactId>junit</artifactId>

                  <version>${version.junit}</version>

                  <scope>test</scope>

              </dependency>

       

              <dependency>

                  <groupId>org.jboss.arquillian</groupId>

                  <artifactId>arquillian-junit</artifactId>

                  <version>${version.org.jboss.arquillian}</version>

                  <scope>test</scope>

              </dependency>

          </dependencies>

       

          <profiles>

              <profile>

                  <id>glassfish-remote-3.1</id>

                  <activation>

                      <activeByDefault>true</activeByDefault>

                  </activation>

                  <dependencies>

                      <dependency>

                          <groupId>org.jboss.arquillian.container</groupId>

                          <artifactId>arquillian-glassfish-remote-3.1</artifactId>

                          <version>${version.org.jboss.arquillian}</version>

                          <scope>test</scope>

                      </dependency>

       

                       <dependency>

                          <groupId>org.glassfish.deployment</groupId>

                          <artifactId>deployment-client</artifactId>

                          <version>${version.org.glassfish.deployment.client}</version>

                          <scope>test</scope>

                      </dependency>

                  </dependencies>

              </profile>

          </profiles>

       

          <repositories>

              <repository>

                  <url>http://download.java.net/maven/2/</url>

                  <id>restlib</id>

                  <layout>default</layout>

                  <name>Repository for library Library[restlib]</name>

              </repository>

       

              <repository>

                  <id>jboss-public-repository-group</id>

                  <name>JBoss Public Maven Repository Group</name>

                  <url>https://repository.jboss.org/nexus/content/groups/public/</url>

              </repository>

       

              <repository>

                  <id>glassfish-repository</id>

                  <name>Java.net Repository for Glassfish</name>

                  <url>http://download.java.net/maven/glassfish/</url>

              </repository>

          </repositories>

       

           <build>

              <plugins>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>2.3.2</version>

                      <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                          <compilerArguments>

                              <endorseddirs>${endorsed.dir}</endorseddirs>

                          </compilerArguments>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-war-plugin</artifactId>

                      <version>2.1</version>

                      <configuration>

                          <failOnMissingWebXml>false</failOnMissingWebXml>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-dependency-plugin</artifactId>

                      <version>2.1</version>

                      <executions>

                          <execution>

                              <phase>validate</phase>

                              <goals>

                                  <goal>copy</goal>

                              </goals>

                              <configuration>

                                  <outputDirectory>${endorsed.dir}</outputDirectory>

                                  <silent>true</silent>

                                  <artifactItems>

                                      <artifactItem>

                                          <groupId>javax</groupId>

                                          <artifactId>javaee-endorsed-api</artifactId>

                                          <version>6.0</version>

                                          <type>jar</type>

                                      </artifactItem>

                                  </artifactItems>

                              </configuration>

                          </execution>

                      </executions>

                  </plugin>

              </plugins>

              <finalName>JavaEETest</finalName>

          </build>

      </project>

       

      My two beans are as follows:

       

      public class TemperatureConverter {

       

           @Inject

          private TemperatureConverterBean converterBean;

       

          public double convertToCelsius(double f) {

              return converterBean.convertToCelsius(f);

          }

       

           public double convertToFarenheit(double c) {

              return converterBean.convertToFarenheit(c);

          }

      }

       

      public class TemperatureConverterBean {

       

           public double convertToCelsius(double f) {

              return ((f - 32) * 5 / 9);

          }

       

           public double convertToFarenheit(double c) {

              return ((c * 9 / 5) + 32);

          }

      }

       

      My arquillian test file is as follows:

       

      @RunWith(Arquillian.class)

      public class TemperatureConverterTest {

       

          @Inject

          private TemperatureConverter converter;

       

          @Deployment

          public static JavaArchive createTestArchive() {

              return ShrinkWrap.create(JavaArchive.class, "test.jar").

                      addClass(TemperatureConverter.class).

                      addClass(TemperatureConverterBean.class).

                      addAsManifestResource(

                      EmptyAsset.INSTANCE,

                      ArchivePaths.create("beans.xml"));

          }

       

           @Test

          public void testConvertToCelsius() {

              assertEquals(converter.convertToCelsius(32d), 0d);

              assertEquals(converter.convertToCelsius(212d), 100d);

          }

       

           @Test

          public void testConvertToFarenheit() {

              assertEquals(converter.convertToFarenheit(0d), 32d);

              assertEquals(converter.convertToFarenheit(100d), 212d);

          }

      }

       

      With the above setup the arquillian runs the test successfully.

       

      My problem is that when I try to change any of my managed beans (cdi bean) into EJB bean then the following stack trace is shown by the arquillian:

       

      Jun 28, 2011 9:03:50 PM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

      INFO: Could not read active container configuration: null

      Testsuite: org.monad.arquillian.TemperatureConverterTest

      Tests run: 0, Failures: 0, Errors: 2, Time elapsed: 1.828 sec

       

      ------------- Standard Error -----------------

      Jun 28, 2011 9:03:50 PM org.jboss.arquillian.impl.client.container.ContainerRegistryCreator getActivatedConfiguration

      INFO: Could not read active container configuration: null

      ------------- ---------------- ---------------

      Testcase: org.monad.arquillian.TemperatureConverterTest:          Caused an ERROR

      POST http://localhost:4848/management/domain/applications/application returned a response status of 403

      com.sun.jersey.api.client.UniformInterfaceException: POST http://localhost:4848/management/domain/applications/application returned a response status of 403

                at com.sun.jersey.api.client.WebResource.handle(WebResource.java:562)

                at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:69)

                at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:499)

                at org.jboss.arquillian.container.glassfish.remote_3_1.GlassFishRestDeployableContainer.deploy(GlassFishRestDeployableContainer.java:147)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:141)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:226)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:114)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:100)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:78)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:51)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:86)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:79)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:217)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:78)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:69)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:70)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:170)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)

                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)

       

      Testcase: org.monad.arquillian.TemperatureConverterTest:          Caused an ERROR

      DELETE http://localhost:4848/management/domain/applications/application/test returned a response status of 404

      com.sun.jersey.api.client.UniformInterfaceException: DELETE http://localhost:4848/management/domain/applications/application/test returned a response status of 404

                at com.sun.jersey.api.client.WebResource.handle(WebResource.java:562)

                at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:69)

                at com.sun.jersey.api.client.WebResource$Builder.delete(WebResource.java:515)

                at org.jboss.arquillian.container.glassfish.remote_3_1.GlassFishRestDeployableContainer.undeploy(GlassFishRestDeployableContainer.java:168)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:174)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:158)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:226)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.undeploy(ContainerDeployController.java:157)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:100)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:78)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$2.perform(ContainerDeployController.java:107)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController$2.perform(ContainerDeployController.java:100)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:217)

                at org.jboss.arquillian.impl.client.container.ContainerDeployController.undeployManaged(ContainerDeployController.java:99)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.core.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.impl.client.ContainerEventController.execute(ContainerEventController.java:74)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.invokeObservers(EventContextImpl.java:98)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:80)

                at org.jboss.arquillian.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)

                at org.jboss.arquillian.impl.core.ObserverImpl.invoke(ObserverImpl.java:90)

                at org.jboss.arquillian.impl.core.EventContextImpl.proceed(EventContextImpl.java:87)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:126)

                at org.jboss.arquillian.impl.core.ManagerImpl.fire(ManagerImpl.java:106)

                at org.jboss.arquillian.impl.EventTestRunnerAdaptor.afterClass(EventTestRunnerAdaptor.java:77)

                at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:192)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:303)

                at org.jboss.arquillian.junit.Arquillian.access$300(Arquillian.java:45)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:187)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)

       

      Test org.monad.arquillian.TemperatureConverterTest FAILED

      test:

      Deleting: C:\DOCUME~1\UNMESH~1\LOCALS~1\Temp\TEST-org.monad.arquillian.TemperatureConverterTest.xml

      BUILD SUCCESSFUL (total time: 4 seconds)

       

      Suppose:

       

      @Stateless

      public class TemperatureConverter {

       

           @Inject

          private TemperatureConverterBean converterBean;

       

           public double convertToCelsius(double f) {

              return converterBean.convertToCelsius(f);

          }

       

          public double convertToFarenheit(double c) {

              return converterBean.convertToFarenheit(c);

          }

      }

       

      or:

       

      @Stateless

      public class TemperatureConverterBean {

       

          public double convertToCelsius(double f) {

              return ((f - 32) * 5 / 9);

          }

       

           public double convertToFarenheit(double c) {

              return ((c * 9 / 5) + 32);

          }

      }

       

      What is my fault?

       

      Thanks.

        • 1. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
          Aslak Knutsen Master

          The GlassFish REST api return 404/403 when there is some sort of deploy issue. Check the GlassFish server.log for the real cause.

          • 2. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
            Unmesh Chowdhury Newbie

            Hello Sir,

             

            I have not enough knowledge about the following Complete Message of server.log:

             

            Exception while loading the app : Error in linking security policy for test -- Inconsistent Module State Exception while loading the app Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar java.net.URISyntaxException: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar  at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at java.net.URL.toURI(URL.java:918) at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)  at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)  at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:331)  at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:190)  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:597) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:186)  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:180)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:145)  at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)  at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)  at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)  at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)  at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)  at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)  at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)  at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)  at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)  at java.lang.Thread.run(Thread.java:662) Values=name === test fieldName=name Values=contextroot === test fieldName=contextroot fieldName=id Exception while loading the app : Error in linking security policy for test -- Inconsistent Module State Exception while loading the app Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar java.net.URISyntaxException: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar  at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at java.net.URL.toURI(URL.java:918) at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)  at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)  at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:331)  at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:190)  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:597) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:186)  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:180)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:145)  at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)  at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)  at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)  at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)  at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)  at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)  at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)  at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)  at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)  at java.lang.Thread.run(Thread.java:662) Values=name === test fieldName=name Values=contextroot === test fieldName=contextroot fieldName=id Exception while loading the app : Error in linking security policy for test -- Inconsistent Module State Exception while loading the app Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar java.net.URISyntaxException: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar  at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at java.net.URL.toURI(URL.java:918) at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)  at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)  at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:331)  at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:190)  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:597) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:186)  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:180)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:145)  at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)  at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)  at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)  at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)  at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)  at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)  at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)  at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)  at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)  at java.lang.Thread.run(Thread.java:662) Values=name === test fieldName=name Values=contextroot === test fieldName=contextroot fieldName=id Cannot create update center Image for D:\Program Files\glassfish-3.1; Update Center functionality will not be available in Admin Console Admin Console: Initializing Session Attributes... Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called The Admin Console application is loaded. Loading application __admingui done in 3,828 ms Loading application [__admingui] at [/] Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '' The Admin Console is starting. Please wait. The Admin Console is already installed, but not yet loaded. Exception while loading the app : Error in linking security policy for test -- Inconsistent Module State Exception while loading the app Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar java.net.URISyntaxException: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar  at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parseHierarchical(URI.java:3066) at java.net.URI$Parser.parse(URI.java:3014) at java.net.URI.<init>(URI.java:578) at java.net.URL.toURI(URL.java:918) at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)  at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)  at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)  at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)  at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)  at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)  at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)  at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:331)  at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:190)  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:597) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:186)  at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)  at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:121)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)  at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)  at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)  at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)  at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:180)  at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:145)  at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)  at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)  at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)  at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)  at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)  at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)  at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)  at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)  at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)  at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)  at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)  at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)  at java.lang.Thread.run(Thread.java:662)

             

            Do you have any suggestion?

             

            Thanks.

            • 3. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
              Unmesh Chowdhury Newbie

              Hello,

               

              Is this a packaging problem? Sometime the test runs successfully when I change the CDI managed bean TemperatureConverterBean.java into EJB bean, but the same test sometime fails.

               

              In the case of unsuccessful deployment, the request of the client side test runner through the executor can not be resolved as there is no already deployed package in the container, that is, there is no TestServletRunner in the container as a result the GlassFish REST api returns 404/403.

               

              Thanks.

              • 4. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
                Aslak Knutsen Master

                This thread seems to think it's related to the SPACE in the file path, "c:\\Program Files"

                 

                http://stackoverflow.com/questions/6369845/error-deploying-axis2-service-in-glassfish

                 

                 

                      new URL("file:/c:/Program%20Files/test").toURI();
                
                
                      //java.net.URISyntaxException: Illegal character in path at index 16: file:/c:/Program Files/test
                      new URL("file:/c:/Program Files/test").toURI();
                
                • 5. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
                  Unmesh Chowdhury Newbie

                  Hello,

                   

                  But the following warning is a common warning which is generated in both successful and failure cases. And it is important that it is not an error, it is just a warning.

                   

                  WARNING: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar

                  java.net.URISyntaxException: Illegal character in path at index 16: file:/D:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/test/WEB-INF/lib/arquillian-core.jar

                   

                  I think it is not the root cause of the failure since after adding this warning the deployment process is not stopped but it has instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver and then has tried to load the module and has thrown the exception. Eventually the JVM printed the current stack trace of the thread.

                   

                  Thanks.

                  • 6. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
                    Aslak Knutsen Master

                    So the server.log has no information about the failed deployment besides the unrelated URI warnings ?

                    • 7. Re: Error in linking security policy for test -- Inconsistent Module State: Remote GlassFish Server 3.1 (build 43)
                      Unmesh Chowdhury Newbie

                      Hello,

                       

                      If the URI warning is the major factor then no tests will be successful. Without any EJBs the test is passed but there is a URI warning in the server.log. With a single EJB the test is failed and there is also the same URI warning in the server.log. The most interesting case is that some time with EJB the test is passed and there is still the URI warning in the server.log. If I change my root installation folder, that is, D:\Program Files to D:\ProgramFiles, it may impact on several installed programs on my machine, otherwise, I will try with URI warning.

                       

                       

                      Thanks.