NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Adding Apache Webserver to NB6

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
fx5900
Posted via mailing list.





PostPosted: Thu Jun 19, 2008 11:46 pm    Post subject: Adding Apache Webserver to NB6 Reply with quote

Hi i am following this link http://wiki.netbeans.org/AddExternalTomcat
http://wiki.netbeans.org/AddExternalTomcat to add external tomcat server nb
6.0. However, when i add the location of the Catalina folder which is
C:\apache-tomcat-6.0.16 i get a red error message saying The specified
Catalina Folder is not valid. This should be correct shouldn't it??? The
only difference is that the one on the page uses 5.5. Can sombody help
please.
--
View this message in context: http://www.nabble.com/Adding-Apache-Webserver-to-NB6-tp18020376p18020376.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Karthik
Posted via mailing list.





PostPosted: Fri Jun 20, 2008 12:35 am    Post subject: Adding Apache Webserver to NB6 Reply with quote

Do you get the message when specifying the 'Catalina Home' folder?

From
http://hg.netbeans.org/release61_fixes/file/89605a6598db/tomcat5/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisual.java
462 if (!new File(homeDir, "bin/bootstrap.jar").exists()) {
// NOI18N
463 errorMessage =
NbBundle.getMessage(InstallPanelVisual.class, "MSG_InvalidHomeDir");
464 return false;
465 }
466
467 // check the lib directory
468 File libDir = TomcatVersion.TOMCAT_60.equals(tomcatVersion)
469 ? new File(homeDir, "lib") // NOI18N
470 : new File(homeDir, "common" + File.separator +
"lib"); // NOI18N
471 if (!(libDir.exists() && libDir.isDirectory())) {
472 errorMessage =
NbBundle.getMessage(InstallPanelVisual.class, "MSG_InvalidHomeDir");
473 return false;
474 }

The tomcat plugin is checking whether the specified homedir has the file
bin/bootstrap.jar and whether lib directory exists. Can you manually
check if these conditions are indeed met in C:\apache-tomcat-6.0.16?
(One other thing: According to
http://wiki.netbeans.org/AddExternalTomcat, the directory should be
specified with a trailing "\" ; i don't think it matters but you can try
specifying 'C:\apache-tomcat-6.0.16\" in the dialog...)

regards,
karthik



fx5900 wrote:
Quote:
Hi i am following this link http://wiki.netbeans.org/AddExternalTomcat
http://wiki.netbeans.org/AddExternalTomcat to add external tomcat server nb
6.0. However, when i add the location of the Catalina folder which is
C:\apache-tomcat-6.0.16 i get a red error message saying The specified
Catalina Folder is not valid. This should be correct shouldn't it??? The
only difference is that the one on the page uses 5.5. Can sombody help
please.
Back to top
fx5900
Posted via mailing list.





PostPosted: Fri Jun 20, 2008 11:04 pm    Post subject: Adding Apache Webserver to NB6 Reply with quote

Yes i do get the message when Specifying the Catalina Home folder. I do not
see the java code that you have shown me as i have yet to develop something.
If i have checked that i do have the bootstrap jar file and the lib
directory. Also, i have tried placing the "\" at the end but still no luck
Sad. Any other ideas.


Karthikeyan Rajeswaran wrote:
Quote:

Do you get the message when specifying the 'Catalina Home' folder?

From
http://hg.netbeans.org/release61_fixes/file/89605a6598db/tomcat5/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisual.java
462 if (!new File(homeDir, "bin/bootstrap.jar").exists()) {
// NOI18N
463 errorMessage =
NbBundle.getMessage(InstallPanelVisual.class, "MSG_InvalidHomeDir");
464 return false;
465 }
466
467 // check the lib directory
468 File libDir =
TomcatVersion.TOMCAT_60.equals(tomcatVersion)
469 ? new File(homeDir, "lib") // NOI18N
470 : new File(homeDir, "common" + File.separator +
"lib"); // NOI18N
471 if (!(libDir.exists() && libDir.isDirectory())) {
472 errorMessage =
NbBundle.getMessage(InstallPanelVisual.class, "MSG_InvalidHomeDir");
473 return false;
474 }

The tomcat plugin is checking whether the specified homedir has the file
bin/bootstrap.jar and whether lib directory exists. Can you manually
check if these conditions are indeed met in C:\apache-tomcat-6.0.16?
(One other thing: According to
http://wiki.netbeans.org/AddExternalTomcat, the directory should be
specified with a trailing "\" ; i don't think it matters but you can try
specifying 'C:\apache-tomcat-6.0.16\" in the dialog...)

regards,
karthik



fx5900 wrote:
Quote:
Hi i am following this link http://wiki.netbeans.org/AddExternalTomcat
http://wiki.netbeans.org/AddExternalTomcat to add external tomcat server
nb
6.0. However, when i add the location of the Catalina folder which is
C:\apache-tomcat-6.0.16 i get a red error message saying The specified
Catalina Folder is not valid. This should be correct shouldn't it??? The
only difference is that the one on the page uses 5.5. Can sombody help
please.




--
View this message in context: http://www.nabble.com/Adding-Apache-Webserver-to-NB6-tp18020376p18038878.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo