OK, I remember which item this was now. It appears from this part of your error message "D:/JRun4/servers/default/default-ear/default-war/WEB-INF" that you are using the default servers "default" subdirectory structure for your development. If you placed your existing class files under the WEB-INF/classes subdirectory, it should be finding them, since WEB-INF/classes should be in JRUN 4.0's class path by default. Under JRUN 3.1, you use to have to reboot the JRUN server after moving your class files into the classes subdirectory before JRUN could find them, but I understand that in JRUN 4.0 you no longer have to do that. But it's worth a try. The directions I gave below were for something completely different than what it appears you are trying to do. Your way is the way Macromedia intended for someone to start a new web application for development.
I did something completely different. I create a new server called TestThis under C:/Inetput, and then create the directory structure AND a blank web.xml file under Inetpub/wwwroot called American, using an IDE called Eclipse. The IDE I used gave me my Inetpub/wwwroot/American/WEB-INF/... subdirectory structure that JRUN 3.1 use to create for you when you created a new web application. Then I went in and "deployed" a nonexistent application selecting the subdirectory I just create above, i.e. Inetpub/wwwroot/American. The blank web.xml file allowed JRUN 4.0 to think it was deploying something when it really was not. Now JRUN 4.0 did throw an error when attempting to deploy a non-existent application, but when I returned to the Web application interface, it had create a web application using the name American, and pointing to the subdirectory Inetpub/wwwroot/American/WEB-INF/... I then moved my already developed code into the appropriate directories, such as my classes into my WEB-INF/classes subdirectory, and my jsp into the American subdirectory. I then proceeded to run my JRUN 3.1 files under JRUN 4.0, to find out what would be involved in porting them over. I have since wiped the test box that we were using to check out JRUN 4.0, as we do not have the budget to purchase JRUN 4.0 until sometime later next year. I'm not an expert in using JRUN 4.0, but if you are still having problems using the default subdirectory under the default server to do your development on, I would check and make sure that JRUN 4.0 does have your classes subdirectory in it's classpath. If it is, and you are still having problems, I would post another message to the board and see if someone who is currently using JRUN 4.0 the way Macromedia intended them to use it for developing new applications, has any suggestions. I'm sorry I could not be of more assistance. Good Luck!! Celeste -----Original Message----- From: [EMAIL PROTECTED] [mailto:Zafif@;worldbank.org] Sent: Thursday, November 07, 2002 1:45 PM To: JRun-Talk Subject: RE: jrun4 newbie q Celeste, I included the instructions you sent in this email. If you scroll down, you will find them, dated 10/17/2002. (on this thread). Thanks "Haseltine, Celeste" To: Jrun-Talk <[EMAIL PROTECTED]> <CHaseltine@magt cc: icket.com> Subject: RE: jrun4 newbie q 11/07/2002 01:22 PM Please respond to jrun-talk Zafif, Which instructions are you following? I've posted several items recently to both the JRUN and Struts listservers, so I am not sure what topic/subject you are referring to. Let me know and I will try and help. Celeste -----Original Message----- From: [EMAIL PROTECTED] [mailto:Zafif@;worldbank.org] Sent: Thursday, November 07, 2002 11:23 AM To: JRun-Talk Subject: RE: jrun4 newbie q Celeste, I tried following your instructions. The problem I am having now, is that it is not finding the classes. I am calling a class from a jsp page, and am getting the following error: Translator.CompilationFailedExceptionCompiler errors: Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__newApp__ ztest2ejsp11.java": 57. DbDataSource dbds = new DbDataSource(); <----------> *** Error: Type DbDataSource was not found. I tried it with other simple classes, I got the same error. Any ideas? Tx "Haseltine, Celeste" To: Jrun-Talk <[EMAIL PROTECTED]> <CHaseltine@magt cc: icket.com> Subject: RE: jrun4 newbie q 10/17/2002 06:15 PM Please respond to jrun-talk Zafif, It is my understanding that you cannot. In theory, your suppose to create a new Server, and develop your application under that new server, instead of creating a new web application under the Default server, as you probably did under JRUN 3.1. That creates problems if your a shop like us that has several applications under development at once, and prefer to have the applications residing on a central test server with only one instance of JRUN running(in this case, the default server). This is what I did when we decided to try out JRUN 4.0 and see what would be involved in porting over to 4.0. Unfortunately, our budget is such that I will be unable to purchase JRUN 4.0 anytime in the near future. I created a new Server to reside under InetPub, and configured the new server to work with IIS 5.0. I then create a new web application called OriginalNYDev in my IDE Eclipse 2.0.1. My IDE has a plugin that creates the subdirectory structure for me (WEB-INF, WEB-INF/jsp, WEB-INF/classes, etc) AND a blank web.xml file. It is important to have a blank web.xml file and the WEB-INF subdirectory structure in place BEFORE you attempt to create a new application in JRUN 4.0. Then, go into your JRUN management console, and go to the Deploy Web Application. On the Source File Path, browse to the name of the new web application you just created at the top level (ie, OriginalNYDev) and hit deploy. You don't need a war file, or the .war extension, the blank web.xml file and the existing subdirectory structure gets recognized by JRUN 4.0, and it will move you to the next page, the Web Application Overview. The web application name should be OriginalNYDev, and the web application root directory will be what you selected in the source file path. Make sure that you DO NOT attempt to modify the parameters the first time you create the application, or it may not "take". Just accept the default parameters. Hit apply. You will probably get an error message, but just ignore it. Then return to the J2EE components on default, and you will have a new web application called in place. You can then go back in and modify any of the parameters. Again, the trick to this is making sure that you have the subdirectory structure in place AND a blank web.xml file in place before you do this. JRUN 3.1 created a blank web.xml file, and the subdirectory structure for you when you created a new web application. JRUN 4.0 does NOT do this, so you will either need to do this by hand, or use an IDE that creates a new web application, and the resulting blank web.xml file and subdirectory structure for you. The other option is to create your own war file, such as "newProject.war" file, and deploy it every time you need to create a new web application. Since we are now using Eclipse 2.0.1 instead of JRUN Studio as our IDE, I prefer to use the plugins to create a new web application on our test server, and then configure it as I described above. Hope this info helps. Celeste Haseltine, PE MTL, Inc -----Original Message----- From: [EMAIL PROTECTED] [mailto:Zafif@;worldbank.org] Sent: Thursday, October 17, 2002 12:47 PM To: JRun-Talk Subject: jrun4 newbie q We just loaded jrun 4 to a new test server. Now we have 1 jrun 4 test server and one jrun3.1. We were trying to CREATE a new web application on jrun 4. But the only options we had was to deploy an app. Am I missing some information or a step? How can I create a new app the same way we create them in jrun 3.1? Thanks in advance! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=8 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.
