RE: unnamed component. Class not found
"Guijarro, Julio" <[email protected]> Mon, 13 Mar 2006 16:01:29 -0000
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Xavier,
I cannot see what is going wrong. Are you sure that all the stubs for
all the components are there. Java 1.5 generates the RMI stubs on the
fly and in Java 1.4 you need to use rmic. You mentioned that the stubs
are there so I should assume that the error is coming from somewhere
else.
Could you send us the complete stack trace (enable stacktrace in
bin/default.ini)?
Also, you could get a cvs head check out and try your class again, just
to try. The version in cvs does not need the file rmitargets anymore and
generates the stubs automatically when needed.
The error that you get points that it cannot find the class that you
want to deploy which is usually caused by a missing/buggy jar file. Be
careful with duplicated jars in your classpath.
Julio
-----Original Message-----
From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Xavier Grehant
Sent: 10 March 2006 17:11
To: smartfrog-developer
Subject: [Smartfrog-developer] unnamed component. Class not found
Hi,
May I have help on this:
I compile a component using javac1.4 (source 1.4 target 1.4), rmic
stubversion 1.2.
Compilation works well, stubs are generated.
It runs well with jdk1.5 but fails on jdk1.4:
jvm 1.5:
[TRACE][RMI TCP Connection(2)-xxx.xxx.xxx.xx] SFCORE_LOG - sfResolved:
HERE sfClass to ch.cern.openlab.smartfrog.xmlUtil.ForceParamValueImpl
**
org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfRes
olve(ComponentDescriptionImpl.java:479)
**
[TRACE][RMI TCP Connection(2)-xxx.xxx.xxx.xx] HOST
"xxx.xxx.xxx.xx":rootProcess - sfResolved HERE 'sfLog' to 'HOST
"128.141.130.30":rootProcess' **
org.smartfrog.sfcore.prim.PrimImpl.sfResolveHere(PrimImpl.java:179) **
etc..
jvm 1.4:
[TRACE][RMI TCP Connection(2)-xxx.xxx.xxx.xx] SFCORE_LOG - sfResolved:
HERE sfClass to ch.cern.openlab.smartfrog.xmlUtil.ForceParamValueImpl
**
org.smartfrog.sfcore.componentdescription.ComponentDescriptionImpl.sfRes
olve(ComponentDescriptionImpl.java:479)
**
[ERROR][RMI TCP Connection(2)-xxx.xxx.xxx.xx] SFCORE_LOG -
SmartFrogDeploymentException: unnamed component. Class not found,
cause: java.lang.ClassNotFoundException: forName: Cannot find
ch.cern.openlab.smartfrog.xmlUtil.ForceParamValueImpl, reference: HERE
sfClass, deployedContext: included, data: sfCodeBase "default";
...
org.smartfrog.sfcore.processcompound.sfProcessName "rootProcess";
** org.smartfrog.sfcore.logging.LogImpl.error(LogImpl.java:765) **
<SmartFrogDeploymentException: unnamed component. Class not found
cause: java.lang.ClassNotFoundException: forName: Cannot find
ch.cern.openlab.smartfrog.xmlUtil.ForceParamValueImpl
reference: HERE sfClass
deployedContext: included
data: sfCodeBase "default";
I suspect it has something to do with xerces. I use
org.apache.xml.serialize.OutputFormat and XMLSerializer in a class
imported by my component but when I use this class outside smartfrog
with both jvms 1.4 and 1.5 it works. It even works fine when used by a
smartfrog component on a jvm 1.5. It generates an xsl file in adding
elements into a sax contentHandler.
I can't find out what's wrong. Have you ever encountered sth similar?
Attached: diagnostic report when it fails (jvm 1.4) and differences
with diagnostic when it works fine (jvm 1.5).
Thanks in advance,
Xavier
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642