Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-981

classToLaunch error when starting server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 2.0.0.Beta4
    • 2.0.0.Beta3
    • server
    • None

      When running server classToLaunch cannot be null error occurs.

      Caused since jboss 4.2 launch config's suddenly does not contain any launch info anymore:
      Now:
      <?xml version="1.0" encoding="UTF-8"?>
      <launchConfiguration type="org.jboss.ide.eclipse.as.core.server.startupConfiguration">
      <stringAttribute key="server-id" value="10_1_07_2_28_PM2"/>
      </launchConfiguration>

      Before:
      <?xml version="1.0" encoding="UTF-8"?>
      <launchConfiguration type="org.jboss.ide.eclipse.as.core.server.startupConfiguration">
      <booleanAttribute key="jboss.defaults.been.set" value="true"/>
      <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
      <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry externalArchive="/home/max/rhdevstudiob2/jboss-eap/jboss-as/bin/run.jar" path="3" type="2"/> "/>
      <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_12" path="2" type="4"/> "/>
      <listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry externalArchive="/usr/java/jdk1.5.0_12/lib/tools.jar" path="3" type="2"/> "/>
      </listAttribute>
      <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
      <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.Main"/>
      <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="--configuration=default"/>
      <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="/home/max/rhdevstudiob2/jboss-eap/jboss-as/bin"/>
      <stringAttribute key="server-id" value="9_28_07_3_27_PM1"/>
      </launchConfiguration>

      Caused by this change: http://fisheye.jboss.org/browse/JBossTools/trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java?r1=3743&r2=3907 as a fix to http://jira.jboss.org/jira/browse/JBIDE-974

              manderse@redhat.com Max Andersen
              manderse@redhat.com Max Andersen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: