- This topic has 4 replies, 3 voices, and was last updated 19 years ago by Riyad Kalla.
-
AuthorPosts
-
Steve PriorMemberI am interested in using myEclipse to develop webapps which as part of their backend make CORBA calls using JacORB. I’m using Tomcat 5.5 and have the various JacORB required jar files loaded to c:\tomcat5.5\shared\lib. I also have a directory of class files under c:\tomcat5.5\shared\classes. Using the Sysdeo eclipse plug in I configured Preferences->Tomcat->JVM Settings with:
-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingletonand added the JacORB classes in the prepend to classpath section, but I’m not sure that part was actually necessary.
When I tried to make a similar configuration on a different machine which has myEclipse installed on it (but no sysdeo) I would get runtime errors that the ORB could not initialize.
Other that that though I like the myEclipse features much better and would like to switch to it once I get it working. Has anyone else been able to
do webapp development with JacORB? I’m not doing EJB development, just making CORBA calls – for simple starters right from a JSP file, but later from
within model classes.
Steve PriorMemberI gave this another shot and have a clarification. I created a new simple webapp project and wrote a simple index.jsp page which has code to make a JacORB CORBA call inside. The JSP edit window doesn’t seem to recognize the c:\tomcat5.5\shared\classes directory because the JSP edit window hilites calls to those classes as unresolved. However when I deploy the webapp and run it from within myeclipse it runs fine.
So it appears that maybe the real problem is lack of recognition of the shared/classes directory under tomcat. Can anyone confirm/deny this?
Scott AndersonParticipantSo it appears that maybe the real problem is lack of recognition of the shared/classes directory under tomcat. Can anyone confirm/deny this?
It wouldn’t be unusual for this to be an issue since there is nothing to add Tomcat’s shared classes directory to your project’s build path. However, you can do that manually by right-clicking on your web project and selecting Properties > Java Build Path > Libraries > Add classes folder…
Steve PriorMemberI actually tried that, but when I went to Properties > Java Build Path > Libraries > Add classes folder… it brought up a directory browser window that showed the directories under that project in the workspace with checkboxes to select them – there was no obvious way to get out to be able to select a directory under the tomcat5.5 directory structure. Am I missing something?
Riyad KallaMemberNo, if you want to add external resources, they need to be JARs and you need to use the Add External JAR button.
-
AuthorPosts