Hi all,

  Perhaps this is a classloading issue after all.

  I added the following sys out's to the UnifiedClassLoader to see what's
going on.

  public Class loadClassLocally(String name, boolean resolve) throws
ClassNotFoundException
  {
     System.out.println("!!!m getting class locally...");
     System.out.println("!!!m getting class locally. name: " + name + ",
resolve: " + resolve);
      return super.loadClass(name, resolve);
  }

  The output below, which occurs after I drop jboss-net.sar into the deploy
folder, shows the names of the classes as they are loaded.

  A few classes are being loaded several times, including
org.apache.commons.logging.LogFactory,
com.techtrader.modules.tools.bytecode.BCEntity, and the problem class
com.techtrader.modules.tools.bytecode.Code, which is loaded three times.

  I'm not too familiar with classloaders.  Is this a problem?  Should each
class be loaded only once?

  Does this look familiar to any of you who have worked on the Classloader
bugs (esp. the 1.4 ones)?

2002-07-17 14:26:31,672 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,672 INFO  [STDOUT] !!!m getting class locally. name:
java.util.AbstractCollection, resolve: false
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.AxisFault, resolve: false
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.InternalException, resolve: false
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,682 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.session.Session, resolve: false
2002-07-17 14:26:31,692 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,692 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.client.AxisClient, resolve: false
2002-07-17 14:26:31,692 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,692 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.server.AxisServerFactory, resolve: false
2002-07-17 14:26:31,702 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,702 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.LogFactory, resolve: false
2002-07-17 14:26:31,702 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,702 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.LogFactory, resolve: false
2002-07-17 14:26:31,713 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,713 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.LogConfigurationException, resolve: false
2002-07-17 14:26:31,713 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,723 INFO  [STDOUT] !!!m getting class locally. name:
java.io.UnsupportedEncodingException, resolve: false
2002-07-17 14:26:31,823 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,823 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.impl.LogFactoryImpl, resolve: false
2002-07-17 14:26:31,823 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,823 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.impl.LogFactoryImpl, resolve: false
2002-07-17 14:26:31,833 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,833 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.Log4jFactory, resolve: false
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.Log4jFactory, resolve: false
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.Log4jFactory, resolve: false
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.impl.Log4JCategoryLog, resolve: false
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.impl.Log4JCategoryLog, resolve: false
2002-07-17 14:26:31,843 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,853 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.commons.logging.Log, resolve: false
2002-07-17 14:26:31,853 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,853 INFO  [STDOUT] !!!m getting class locally. name:
org.jboss.net.axis.XMLResourceProvider, resolve: false
2002-07-17 14:26:31,853 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,853 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.configuration.FileProvider, resolve: false
2002-07-17 14:26:31,863 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,863 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.configuration.FileProvider, resolve: false
2002-07-17 14:26:31,863 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,863 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.deployment.wsdd.WSDDDeployableItem, resolve: false
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.deployment.DeployableItem, resolve: false
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.deployment.wsdd.WSDDGlobalConfiguration, resolve: false
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,873 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.utils.LockableHashtable, resolve: false
2002-07-17 14:26:31,883 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,883 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.utils.cache.ClassCache, resolve: false
2002-07-17 14:26:31,883 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,883 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.session.SimpleSession, resolve: false
2002-07-17 14:26:31,893 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:31,893 INFO  [STDOUT] !!!m getting class locally. name:
org.apache.axis.utils.JavaUtils, resolve: false
2002-07-17 14:26:32,223 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,223 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.BCEntity, resolve: false
2002-07-17 14:26:32,233 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,233 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.BCEntity, resolve: false
2002-07-17 14:26:32,243 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,243 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor, resolve: false
2002-07-17 14:26:32,243 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,243 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.Code, resolve: false
2002-07-17 14:26:32,253 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,253 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.Code, resolve: false
2002-07-17 14:26:32,253 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,253 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.Attribute, resolve: false
2002-07-17 14:26:32,263 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,263 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.Constants, resolve: false
2002-07-17 14:26:32,263 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,273 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.Code, resolve: false
2002-07-17 14:26:32,273 INFO  [STDOUT] !!!m getting class locally...
2002-07-17 14:26:32,283 INFO  [STDOUT] !!!m getting class locally. name:
com.techtrader.modules.tools.bytecode.UnknownAttribute, resolve: false

  - Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jung , Dr.
Christoph
Sent: Wednesday, July 17, 2002 3:31 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] JBoss.net deployment stopped by
java.lang.LinkageError


Matt,

Thanks for YOUR patience with jboss.net ... Good luck.

CGJ

-----Ursprüngliche Nachricht-----
Von: Matt Munz [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. Juli 2002 19:32
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] JBoss.net deployment stopped by
java.lang.LinkageError


CGJ,

  Thanks for your patience with all my questions :)

> I guess the axis-beta3
> migration is something which should be better done by me, because I
> can easily conclude necessary patches to make in jboss.net from
> diffing axis-beta1 to beta3.

  I figured that was the case.

> Maybe you could try to find out whether axis-3 still depends on the
> tt-bytecode that flawed in your configuration?

  It does.  I'll try to provide a bug report on this to the Axis developers.

> Maybe you could try to get
> their sourcecode and find the exact problem why it causes this
LinkageError
> while only analysing bytecode, not creating some.

  That's my next step.  Even though tt-bytecode.jar may not be actively
maintained, I'm sure the source is available...

  If I'm able to figure anything out, I'll let you know.

  - Matt


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jung , Dr.
Christoph
Sent: Tuesday, July 16, 2002 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] JBoss.net deployment stopped by
java.lang.LinkageError


Matt,

Our current tasks are pretty much one-person things simply because we are
not too many :-(

You are welcome to step in and help out. Although I guess the axis-beta3
migration is something which should be better done by me, because I can
easily conclude necessary patches to make in jboss.net from diffing
axis-beta1 to beta3.

Maybe you could try to find out whether axis-3 still depends on the
tt-bytecode that flawed in your configuration? Maybe you could try to get
their sourcecode and find the exact problem why it causes this LinkageError
while only analysing bytecode, not creating some. Or maybe there is some
other task that attracts you?

You are warmly welcome in each case.

CGJ

-----Ursprüngliche Nachricht-----
Von: Matt Munz [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 16. Juli 2002 15:05
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] JBoss.net deployment stopped by
java.lang.LinkageError


CGJ,

> I will see whether the prob still appears with the axis beta3 when
> integrating with jboss.net

  Sounds great.

On the Todo list, I see this as task #58106, scheduled for completion on
7-15 (yesterday).  Any estimate on when this will actually be done?  Is this
a one-person task, or is there room for assistance?

  - Matt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jung , Dr.
Christoph
Sent: Tuesday, July 16, 2002 3:56 AM
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] JBoss.net deployment stopped by
java.lang.LinkageError


Hi Matt,

I have no idea about incompatibilities between the bytecode toolkit and
JDK1.4, but I guess this is a likely source for your problem.

Tt-bytecode (http://tt-bytecode.sourceforge.net/) is no longer active,
anyway, so I guess that the axis guys will (or have already been?) replacing
it by the successor SERP (http://serp.sourceforge.net/).

I will see whether the prob still appears with the axis beta3 when
integrating with jboss.net

CGJ

-----Ursprüngliche Nachricht-----
Von: Matt Munz [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 15. Juli 2002 23:08
An: jboss-user
Betreff: [JBoss-user] JBoss.net deployment stopped by java.lang.LinkageError


JBoss.net folks,

  Could you take a look at the following any help me figure out what's going
on?  Is there a problem with tt-bytecode.jar?

  - Matt

  Setup: w2k, jdk1.4.1, build from latest source.  I made a copy of the
default configuration and renamed it "terminology".  I then droped
jboss-net.sar into the deploy folder.

  Output:

16:59:31,456 ERROR [URLDeploymentScanner] Failed to deploy:
org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@48288517
{
url=file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/terminology/deploy/jboss-net.sar, deployedLastMod
ified=0 }
org.jboss.deployment.DeploymentException: Could not create deployment:
file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.
1.0alpha/server/terminology/deploy/jboss-net.sar; - nested throwable:
(java.lang.LinkageError: duplicate class definition: com/tec
htrader/modules/tools/bytecode/Code)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:821)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:634)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:599)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy7.deploy(Unknown Source)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:381)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymen
tScanner.java:576)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:449)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:187)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:197)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:177)
Caused by: java.lang.LinkageError: duplicate class definition:
com/techtrader/modules/tools/bytecode/Code
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
        at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:22
6)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.
java:234)
        at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(Unified
LoaderRepository.java:507)
        at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderReposito
ry.java:179)
        at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:28
3)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at org.apache.axis.AxisEngine.init(AxisEngine.java:182)
        at org.apache.axis.AxisEngine.<init>(AxisEngine.java:174)
        at org.apache.axis.server.AxisServer.<init>(AxisServer.java:121)
        at
org.jboss.net.axis.server.AxisService.ensureService(AxisService.java:231)
        at
org.jboss.net.axis.server.AxisService.startService(AxisService.java:263)
        at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
        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:324)
        at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:948)
        at $Proxy9.start(Unknown Source)
        at
org.jboss.system.ServiceController.start(ServiceController.java:383)
        at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy5.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:297)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:804)
        ... 15 more
16:59:36,474 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
  <none>
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@48288517 {
url=file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/serv
er/ter
minology/deploy/jboss-net.sar }
  deployer: org.jboss.deployment.SARDeployer@17ce4e7
  status: Deployment FAILED reason: duplicate class definition:
com/techtrader/modules/tools/bytecode/Code
  watch:
file:/D:/programs/jboss-src/jboss-all/build/output/jboss-3.1.0alpha/server/t
erminology/deploy/jboss-net.sar
  lastDeployed: 1026766771076
  lastModified: 1026766770224
  mbeans:
    jboss.net:service=Axis state: Starting
    jboss.net:service=Adaptor state: Stopped
]MBeans waiting for classes:
  <none>
MBeans waiting for other MBeans:
[ObjectName: jboss.net:service=Adaptor
 state: CREATED
 I Depend On:   jboss.net:service=Axis

 Depends On Me: ]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to