0 Replies Latest reply on Apr 1, 2018 10:43 AM by izomezzo

    Debugging Glassfish Managed Container with IntelliJ

    izomezzo

      Hi,

       

      I've been looking around for some way to configure IntelliJ to debug the glassfish managed container, but so far it is failing. At the moment I have a run configuration that points to glassfish and glassfishDebug for debug. Although the run configuration works, the debug doesn't. I assume this is due to the debug=true flag, but I get an error org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not start container with no helpful suggestion as to why. I'm trying to debug a test as it is failing but I can't actually do this at the moment. Does anybody have experience with this configuration? Below is my arquillian xml. Thanks.

       

      <?xml version="1.0"?>
      <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://jboss.org/schema/arquillian"
         xsi:schemaLocation="http://jboss.org/schema/arquillian
        http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

        <container qualifier="glassfish" default="true">
        <configuration>
        <property name="glassFishHome">C:\Users\name\dev\GlassFish\glassfish-4.0\glassfish4</property>
        <property name="allowConnectingToRunningServer">true</property>
        </configuration>
        </container>

        <container qualifier="glassfishDebug">
        <configuration>
        <property name="glassFishHome">C:\Users\name\dev\GlassFish\glassfish-4.0\glassfish4</property>
        <property name="allowConnectingToRunningServer">true</property>
        <property name="debug">true</property>
        </configuration>
        </container>

      </arquillian>