[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jacorb-developer
Subject:    AW: [jacorb-developer] Class not found
From:       Venzel Helmut <Helmut.Venzel () shs-online ! de>
Date:       2000-01-13 11:53:16
Message-ID: 8A4AAEA39E44D111B8DE00805FBE4868FCA42F () shs01 ! shs-online ! de
[Download RAW message or body]

I had the same problem. I'm using the tools from Cygnus under WinNT to use make (with makefile, not makefile.win) so I don't know if this is an issue of the port to NT or of the OS itself.
To overcome this issue I replaced all asterisks in directories with the full directory names, e.g.
replace

$(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CosTrading*/*.java

with

$(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CosTradingDynamic/*.java
$(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CosTradingRepos/*.java

and so on.


Helmut 

-----Ursprüngliche Nachricht-----
Von: Sourav Laskar [mailto:jeebu19@yahoo.com]
Gesendet am: Mittwoch, 12. Januar 2000 19:33
An: Gerald Brose; JacORB Developer List
Betreff: Re: [jacorb-developer] Class not found

I suppose the makefile rules are incomplete at other places also(?). I did a
full make of Jacorb 1.0 beta 14 before the makefile error was pointed out
(with RH 6.1 and Blackdown jdk1.2prev2) but did not encounter errors, but
today I saw that the corresponding directories (under classes directory) did
not have all the class files. Infact the the gzipped download had the class
files missing.

trader:
 $(IDL) $(IDLFLAGS) idl/CosTrading.idl
 $(IDL) $(IDLFLAGS) idl/CosTradingRepos.idl
 $(IDL) $(IDLFLAGS) idl/CosTradingDynamic.idl
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CosTrading*/*.java
####################################################################
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CosTrading/*/*.java
 $(JAVAC) $(JAVACFLAGS)
$(SRCDIR)/generated/org/omg/CosTradingRepos/*/*.java
####################################################################

corba:
 $(IDL) $(IDLFLAGS)  idl/Corba.idl
 $(IDL) $(IDLFLAGS)  idl/PortableServer.idl
 $(IDL) $(IDLFLAGS)  idl/DynamicAny.idl
 $(RM)  $(SRCDIR)/generated/org/omg/CORBA/UNKNOWN*
<..snip..>
 $(RM)  $(SRCDIR)/generated/org/omg/CORBA/ORBPackage/RequestSeqH*.java
 $(CPR) src/java_mapping/* $(SRCDIR)/generated/org/omg/
 $(CPR)  src/java_mapping/PortableServer/*
$(SRCDIR)/generated/org/omg/PortableServer/
 $(RM)  $(SRCDIR)/generated/org/omg/PortableServer/POAPOA.java
 $(RM)  $(SRCDIR)/generated/org/omg/PortableServer/POAPOATie.java
 $(RM) $(SRCDIR)/generated/org/omg/PortableServer/CurrentPOA*.java
 $(RM) $(SRCDIR)/generated/org/omg/PortableServer/_CurrentStub.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CORBA/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CORBA/*Package/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CORBA/portable/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/PortableServer/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/PortableServer/*/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/DynamicAny/*.java
####################################################################
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/DynamicAny/*/*.java
####################################################################
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CORBA/Repository.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/CONV_FRAME/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/GIOP/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/IOP/*.java
 $(JAVAC) $(JAVACFLAGS)  $(SRCDIR)/generated/org/omg/IIOP/*.java

-Sourav

----- Original Message -----
From: Gerald Brose <brose@inf.fu-berlin.de>
To: <jacorb-developer@lists.spline.inf.fu-berlin.de>
Sent: Tuesday, January 11, 2000 1:58 PM
Subject: Re: [jacorb-developer] Class not found


> Yes, you are right, the Makefile is incorrect. The correction that
> you have added is necessary.
>
> Thanks and regards, Gerald Brose.
>
> "Erlend V Bøe" wrote:
> >
> > Gerald, Serban
> >
> > I have had another look at this, and to me it looks like the Makefile
> > rule for names is not right... or at least I think so..
> >
> > I added CosNaming/NamingContextPackage, CosNaming/LNamePackage and
> > CosNaming/LNameComponentPackage to the rule for names so that it is now:
> >
> > names:
> >         $(IDL) $(IDLFLAGS) idl/CosNaming.idl
> >         $(JAVAC) $(JAVACFLAGS)
$(SRCDIR)/generated/org/omg/CosNaming/*.java
> > $(SRCDIR)/generated/org/omg/CosNaming/NamingContextPackage/*.java
> > $(SRCDIR)/generated/org/omg/CosNaming/LNamePackage/*.java
> > $(SRCDIR)/generated/org/omg/CosNaming/LNameComponentPackage/*.java
> >
> > After I did this, things seem to be working ok for me
> > (no need to change the $JACORB/src/jacorb/naming/Makefile "compile"
> > target)
> >
> > Erlend
> >
> > Gerald Brose wrote:
> > >
> > > Hi.
> > >
> > > The class is contained in the original b14 jar file so I don't see
> > > why it should not be found, recompilation does not remove classes
> > > from the jar archive :-). I assume this is some kind of a classpath
> > > problem
> > >
> > > The source code for this class can be found in
> > > /src/generated/org/omg/CosNaming/NamingContextPackage if you have
> > > recompiled JacORB as a whole (or just regenerated the naming
> > > service parts). After recompilation, this class should also be in
> > > classes/org/omg/CosNaming, otherwise your recompilation was not
> > > successful.
> > >
> > > Regards, Gerald Brose.
> > >
> > > "Erlend V Bøe" wrote:
> > > >
> > > > Hi everybody
> > > >
> > > > My system:
> > > > Linux 2.0.35, Blackdown JDK  (1.1.7)
> > > >
> > > > My problem:
> > > >
> > > > I installed JacORB1.0 beta 14, and tried to apply the patches on the
> > > > known problems page.
> > > >
> > > > I recompiled JacORB, but now when I try to compile any of the demo
> > > > programs I get
> > > >
> > > > --
> > > > /odin/opt/JacORB1_0-beta14/bin/idl -p demo -d ../.. server.idl
> > > > /opt/jdk117_v1a/bin/javac  -classpath
> > > >
/odin/opt/JacORB1_0-beta14:/odin/opt/JacORB1_0-beta14/classes:.:/odin/opt/Ja
cORB1_0-beta14/classes:/odin/opt/JacORB1_0-beta14/classes/jacorb.jar:/opt/jd
k117_v1a/lib/classes.zip:/opt/swing-1.1.1-beta1/swingall.jar:../..
> > > > *.java
> > > > Client.java:13: Class
> > > > org.omg.CosNaming.NamingContextPackage.CannotProceed not found in
try.
> > > >         try
> > > >         ^
> > > > Server.java:11: Class
> > > > org.omg.CosNaming.NamingContextPackage.CannotProceed not found in
try.
> > > >         try
> > > >         ^
> > > > 2 errors
> > > > make: *** [all] Error 1
> > > > --
> > > >
> > > > I looked in the classes/org/omg/CosNaming directory and could not
find
> > > > any NamingContextPackage directory or class
> > > > What have I done wrong?
> > > >
> > > > I have attached my Makefile.config, in case it is any help
> > > >
> > > > Erlend
> > > > --
> > > > Three Mile Island '79   Chernobyl '86   Windows '98
> > > >
> > >
  ------------------------------------------------------------------------
> > > > #       Top-level configuration file for JacORB
> > > > #
> > > > #        edit to adapt to your installation
> > > >
> > > > # name for the output directory used for automatically generated
classes
> > > >
> > > > IDLOUTPUT = idl_out
> > > >
> > > > ##
> > > > ##      Unix/Windows make file options, please adjust
> > > > ##
> > > >
> > > > ### JacORB installation options
> > > >
> > > > ORB = /odin/opt/JacORB1_0-beta14
> > > >
> > > > ## The destination for compiled class files
> > > >
> > > > CLASSOUTPUTDIR  = $(ORB)/classes
> > > > SRCDIR  = $(ORB)/src
> > > > PROPERTIES_LOCATION = $(HOME)/jacorb.properties
> > > > NAMESERVERURL   =file:/tmp/ns.IOR
> > > > TRADERURL       =file:/tmp/ts.IOR
> > > >
> > > > ## package prefix for generated Java classes, used for demos
> > > >
> > > > PACKAGE_PREFIX = demo
> > > >
> > > > ## IDL compiler command
> > > > IDL = $(ORB)/bin/idl
> > > >
> > > > #
> > > > # Java options
> > > > #
> > > >
> > > > # version, 1 or 2 for JDK 1.1 or 1.2
> > > >
> > > > JAVA_VERSION = 1
> > > >
> > > > # path to the JDK installation
> > > >
> > > > JDK             = $(JAVA_HOME)
> > > > JAVAC           = $(JDK)/bin/javac
> > > > JAVA            = $(JDK)/bin/java
> > > > JAR             = $(JDK)/bin/jar
> > > > JAVADOC         = $(JDK)/bin/javadoc
> > > >
> > > > #
> > > > # Path options, only those for JDK 1.1 need editing
> > > > #
> > > >
> > > > ifeq ($(JAVA_VERSION),1)
> > > >         JFC             = $(SWING_HOME)/swingall.jar
> > > >         CPATH           =
.:$(CLASSOUTPUTDIR):$(CLASSOUTPUTDIR)/jacorb.jar:$(JDK)/lib/classes.zip:$(JF
C)
> > > >         JAVACFLAGS      = -J-mx32m -d $(CLASSOUTPUTDIR) -classpath
$(CPATH)
> > > >         JARFLAGS        = f
> > > > else
> > > >         CPATH           =
$(CLASSOUTPUTDIR):$(CLASSOUTPUTDIR)/jacorb.jar:.:$(JDK)/jre/lib/rt.jar
> > > >         JAVACFLAGS      = -J-mx32m -bootclasspath
$(CPATH) -sourcepath $(SRCDIR):$(SRCDIR)/generated -d $(CLASSOUTPUTDIR)
> > > >         JARFLAGS        = uf
> > > > endif
> > > >
> > > > ## JDK's Threadmodel green/native
> > > > # note that green threads hang on Solaris when sequences of
> > > > # more than a certain length are transferred !!!!!
> > > >
> > > > JDKTHREADMODEL=green
> > > >
> > > > ###
> > > > ### JTrader specific settings
> > > > ##
> > > >
> > > > ## Select the persistence mechanism: simple or pse (ObjectStore)
> > > >
> > > > DBSUBDIR        = simple
> > > > #DBSUBDIR       = pse
> > > >
> > > > # The ObjectStore PSE class file postprocessor
> > > > OSJCFP          = osjcfp
> > > >
> > > > ##
> > > > ## general commands,  needed to make all Makefiles
> > > > ## platform independent, in particular allow M$ nmake
> > > > ##
> > > >
> > > > RM = rm -f
> > > > RMDIR = rm -rf
> > > > CP = cp
> > > > CPR = cp -r
> > > > CAT = cat
> > > > MV = mv
> > > >
> > > > # Perl is used only for automatic .properties-file generation
> > > >
> > > > PERL = /usr/bin/perl
> > > > SH = /bin/sh
> > > >
> > > > # end of Makefile
> > >
> > > --
> > > Gerald Brose,                       Mail:       brose@inf.fu-berlin.de
> > > FU Berlin        (for PGP key see:) http://www.inf.fu-berlin.de/~brose
> > > Institut f. Informatik              Ph-one:        (++49-30) 838-75112
> > > Berlin, Germany                     Ph-ax:         (++49-30) 838-75109
> >
> > --
> > Three Mile Island '79   Chernobyl '86   Windows '98
> >
> > _______________________________________________
> > jacorb-developer maillist  -
jacorb-developer@lists.spline.inf.fu-berlin.de
> > http://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>
> --
> Gerald Brose,                       Mail:       brose@inf.fu-berlin.de
> FU Berlin        (for PGP key see:) http://www.inf.fu-berlin.de/~brose
> Institut f. Informatik              Ph-one:        (++49-30) 838-75112
> Berlin, Germany                     Ph-ax:         (++49-30) 838-75109
>
> _______________________________________________
> jacorb-developer maillist  -
jacorb-developer@lists.spline.inf.fu-berlin.de
> http://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer




_______________________________________________
jacorb-developer maillist  -  jacorb-developer@lists.spline.inf.fu-berlin.de
http://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic