Sorry. Misunderstood your problem.
Here's what I found googling "RMIC log4j": RMIC is the "Remote Method
Invocation" compiler. It generates stub classes and tie code to access
remote classes (that implement the java.rmi.Remote interface).
Apparently the rmic compiler uses log4j to generate messages. When you
deploy your apps, the log4j.jar file is not found which could be a
classpath omission on the RMIC invocation. Many of the forums out there
say to be sure to check the "auto-compile" box when deploying the app.
In your environment, you work on your base classes. When you deploy the
app, the deployment builder builds the remote invocation stubs. There
will be an ant script with a task to do that build. Make sure the class
path for the task that calls rmic is correct. When you right click on
the project and select deploy or export, there's an ant script
associated with that action. Find the script and look there for the task
that runs rmic. Compare the one in myEclipse with the one in RAD.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of hockchai Lim
Sent: Monday, November 23, 2009 4:07 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: MyEclipse - Deployment RMIC compile error
Yes, I already have log4j.jar under my EJB project build path. Without
it, my apps will not compile. This particular compile error is
happening in RMIC when deploying the apps to WAS7.0
"Dan Kimmel" <dkimmel@xxxxxxxxxxxxxxx> wrote in message
news:mailman.59.1259011342.31599.java400-l@xxxxxxxxxxxxxxx
log4j is an open source logger, and a very good one, at that. It may be
made a part of each new EJB project by default in your RAD environment,
but the same set up may not be there in our myEclipse environment. Look
at the java resources in your RAD project. See "log4j.jar"? Copy and
paste that jar into your myEclipse project. Should clear up the compile
error. You can also download the jar file from apache.org.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of hockchai Lim
Sent: Monday, November 23, 2009 2:44 PM
To: java400-l@xxxxxxxxxxxx
Subject: MyEclipse - Deployment RMIC compile error
I'm trying to compare the differences between the myEcliplse IDE & RAD
IDE to see if myEclipse can be used as the replacement for RAD. When I
try to deploy my EJB application in myEclipse, I'm getting the RMIC
compile error.
It seems like the problem is caused by RMIC not able to find the
org.apache.log4j.LogManager, that is used by the my
com.arch.boss.transaction.Job.class. I'm not very familiar with RMIC
and myEclipse and could not quite understand why it is trying to
execute/compile the job.java/job.class. Can anyone help?
thanks
Error generating RMI code: RMIC command failed on project: Boss with
message:
RMIC caught the following exception during processing
java.lang.RuntimeException: com.arch.boss.transaction.Job
. . . . . .
Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.LogManager
at com.arch.boss.log.Log.<clinit>(Log.java:39)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at com.arch.boss.transaction.Job.<clinit>(Job.java:33)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.io.ObjectStreamClass.hasStaticInitializer(Native Method)
... 76 more
Caused by: java.lang.ClassNotFoundException
at
com.ibm.tools.rmic.iiop.DirectoryLoader.loadClass(DirectoryLoader.java:1
21)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
... 83 more
--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
--
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.