Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004796 [Resin] minor always 10-12-11 14:03 06-15-12 10:32
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.23
Summary 0004796: If we use resin-maven-plugin,"IllegalStateException" would happen.
Description [INFO] Alarm cannot be instantiated because Resin is running inside a foreign classloader. org.codehaus.classworlds.RealmClassLoader@1112783
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalStateException: Alarm cannot be instantiated because Resin is running inside a foreign classloader.
  org.codehaus.classworlds.RealmClassLoader@1112783
        at com.caucho.util.Alarm.<init>(Alarm.java:104)
        at com.caucho.util.Alarm.<init>(Alarm.java:135)
        at com.caucho.util.Alarm.<init>(Alarm.java:126)
        at com.caucho.util.Alarm.<init>(Alarm.java:117)
        at com.caucho.util.WeakAlarm.<init>(WeakAlarm.java:53)
        at com.caucho.bam.query.QueryManager.<init>(QueryManager.java:54)
        at com.caucho.bam.actor.SimpleActorSender.<init>(SimpleActorSender.java:56)
        at com.caucho.bam.client.LinkClient.<init>(LinkClient.java:68)
        at com.caucho.hmtp.HmtpClient.init(HmtpClient.java:139)
        at com.caucho.hmtp.HmtpClient.<init>(HmtpClient.java:96)
        at com.caucho.server.admin.DeployClient.<init>(DeployClient.java:113)
        at com.caucho.server.admin.WebAppDeployClient.<init>(WebAppDeployClient.java:51)
        at com.caucho.maven.AbstractDeployMojo.execute(AbstractDeployMojo.java:324)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Additional Information pom.xml
<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/maven-v4_0_0.xsd"> [^]
  <modelVersion>4.0.0</modelVersion>
  <groupId>jp.co.intra_mart</groupId>
  <artifactId>test</artifactId>
  <packaging>war</packaging>
  <version>1.0.0</version>
  <name>test Maven Webapp</name>
  <url>http://maven.apache.org</url> [^]
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>test</finalName>
    <plugins>
      <plugin>
        <groupId>com.caucho</groupId>
        <artifactId>resin-maven-plugin</artifactId>
        <version>4.0-SNAPSHOT</version>
        <configuration>
          <server>192.168.108.42</server>
          <port>8080</port>
          <user>admin</user>
          <password>admin</password>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <pluginRepositories>
    <pluginRepository>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>ignore</checksumPolicy>
      </snapshots>
      <id>caucho</id>
      <name>Caucho</name>
      <url>http://caucho.com/m2-snapshot</url> [^]
    </pluginRepository>
  </pluginRepositories>
</project>
Attached Files

- Relationships

- Notes
(0005709)
krystian
03-13-12 11:56

It seems that in Resin 4.0.16 it still works, so it might have been broken between 4.0.16 and 4.0.23. For sure this issue also happens in 4.0.24.
 
(0005852)
ferg
06-15-12 10:32

env/0321
 

- Issue History
Date Modified Username Field Change
10-12-11 14:03 alex New Issue
03-13-12 11:54 krystian Issue Monitored: krystian
03-13-12 11:56 krystian Note Added: 0005709
06-15-12 10:32 ferg Note Added: 0005852
06-15-12 10:32 ferg Assigned To  => ferg
06-15-12 10:32 ferg Status new => closed
06-15-12 10:32 ferg Resolution open => fixed
06-15-12 10:32 ferg Fixed in Version  => 4.0.29


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
33 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker