Re: WAR files and Eclipse
I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: WAR files and Eclipse
Yes you are correct. Thus far I have correctly configured Apache2.x/Tomcat5.x/mod.jk2 . And it works pretty seamlessly. My attemps to get the the useraccounts working resulted in me doing this: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html homeBase=/home/ userClass=org.apache.catalina.startup.PasswdUserDatabase/ Which did work!!! The only objective I was trying to achive after that was working; was too make sure tomcat would unzip all .jar file in /home/useraccounts/public_html/ . I thought this would be preatty simple. If I am correct I do believe that the unziping funtionality is bound to the Host tag. Allowing only the appBase attribute to be used once per Host tag. ex: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false So with that said I belive that I would have to set up another host. Everyone out there: If I stand corrected please tell me ??? I LOVE IT WHEN I'M CORRECTED; it simply means I'm learning something new. sven morales wrote: Wait a minute, you didnt say you were using Apache to front the Tomcat did you? At least thats the impression I gathered since you were hitting it as http://localhost/~userjoe/index.jsp. I am not overly familiar with having Apache fronting Tomcat. With that kind of URI, I think its going to the apache side and not to Tomcat. You must set your mapping in http.conf or worker.properties(?) to make this work. Or your set-up has Tomcat serving off port 80 and you are running this as root right? --- Dwayne Ghant [EMAIL PROTECTED] wrote: I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a
Re: WAR files and Eclipse
Wait a minute, you didnt say you were using Apache to front the Tomcat did you? At least thats the impression I gathered since you were hitting it as http://localhost/~userjoe/index.jsp. I am not overly familiar with having Apache fronting Tomcat. With that kind of URI, I think its going to the apache side and not to Tomcat. You must set your mapping in http.conf or worker.properties(?) to make this work. Or your set-up has Tomcat serving off port 80 and you are running this as root right? --- Dwayne Ghant [EMAIL PROTECTED] wrote: I did as suggested but it didn't work . The ironic thing now is that scence I tried that the user accounts /home/username/public_html no longer works to compile jsp pages. I figure this is weird becasue I see the compilation .class files in the $CATALINAHOME/work/Catalina/localhost/~username/classname.class, but when I try to go to http://localhost/~username/index.jsp I just see a pure white page. No matter how many time I reboot the server I get the same result Does anyone else want to take a shoot at this or am I to give up. sven morales wrote: I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
I think there is another attribute to Listener which is home.Base. Set this where you normally put user/public_html directory. For example on mine, its set as homeBase=/home and user home is /home/sergio. Once this is working, any war files on your /home/user/public_html should get expanded. --- Dwayne Ghant [EMAIL PROTECTED] wrote: Anybody won't to take a shoot at this? Dwayne Ghant wrote: Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
Intresting question associated with this subject. If I have public_html enabled for developers on local machine ex: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ Can I have a setting for tomcat to unwar there personal test applications in there public_html directories I'm assuming it would look something like this (listed below): Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host I'm probably incorrect, but I do need to know, to finish setting up JSP enviornment for java developers like myself. . Rhino wrote: It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
It's actually very easy to do what you want to do. Assuming you have correctly installed and configured Sysdeo, you will need to tell Eclipse where the War file for your Tomcat project should be generated. This is done on a *project* basis, i.e. you have to repeat this step once for each Tomcat project you create but you will never have to do this again for a given project unless you change the location where you want the War file. 1. Select the Tomcat project in the Package Explorer perspective. 2. Right click for a context menu. Choose 'Properties'. 3. Within Properties, choose 'Tomcat' from the tree on the left. 4. Click on the 'Export to WAR settings' tab within the Tomcat properties. 5. Enter the path that tells Tomcat where to generate your War file. The path name should include the file name of the War file. I normally put my War files in a folder called 'war' directly beneath the project so my WAR file for export looks like this: D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to organize your files differently. 6. Click on OK to close the Properties dialog. Then, every time you want to regenerate your War file, all you need to do is this: 1. Select the Tomcat project in the Package Explorer perspective. 2. Right-click for a context menu. Choose 'Tomcat project'. 3. Choose 'Export to the war file sets in project properties'. 4. You should get a brief message that tells you the operation worked. Now, if you don't find Tomcat in the Properties tree or if you don't see the 'Tomcat project' option in the context menu, it means you probably didn't configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let us know and we'll try to help. Rhino - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 13, 2004 3:43 PM Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR files and Eclipse
I tried eclipse, but man was it hard to get configured properly. I wanted to use Eclipse/MyEclipse since I do Perl/C/C++ work as well and thought one tool that binds them all, yada yada yada. I then tried NetBeans and it worked for my environment 'out-of-the-box'. It took zero configuration for me. I just pointed it at my existing source tree and it built its environment and ant scripts accordingly. I really like all of it's editors/interfaces better as well. I would rather use 2 tools (NetBeans for java stuff, and eclipse(or my older editor) for everything else) than jump through Eclipses' hoops for java/J2EE stuff. Your mileage may vary. --JW Phillip Qin wrote: It is very easy. Use ant's war task. -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 3:44 PM To: [EMAIL PROTECTED] Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel !DSPAM:41bdff16171791264215269! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WAR files and Eclipse
It is very easy. Use ant's war task. -Original Message- From: Daniel Watrous [mailto:[EMAIL PROTECTED] Sent: December 13, 2004 3:44 PM To: [EMAIL PROTECTED] Subject: WAR files and Eclipse Hello All, I am new to WAR files and eclipse. Many searches on google bring me to the sysdeo tomcat plugin, which I have installed. I want to know if there is some standard way to generate a WAR file for deployment. I have found that I can export a JAR file and change its name, but in the process the directory structure is altered. Maybe you even know about a better IDE than eclipse for working with web-based projects. THANKS in advance. Daniel !DSPAM:41bdff16171791264215269!