RE: [newbie] Unable to find a javac compiler;

2008-05-11 Thread sakari . aaltonen

Lainaus Caldarale, Charles R [EMAIL PROTECTED]:


As Hassan suggested, look in your logs.  I just installed JSPWiki 2.6.2
on a Windows box without problem.  However, when I did the same on an
OpenSUSE system, the JSPWiki webapp died with SEVERE: Error
filterStart and a couple of NullPointerExceptions.  Looks a bit buggy
to me.



One problem solved, or, at least I get to the JSPWiki Installer page now.

What finally worked was restarting Tomcat (no, I don't know why.) That  
is, after putting JSPWiki.war into $CATALINA_HOME/webapps, I shutdown,  
then started, Tomcat. Then, browsing to  
http://localhost:8080/JSPWiki/Install.jsp had the intended result.



Sakari Aaltonen   (OpenSUSE 10.3, Tomcat 6.0.16, JSPWiki 2.6.2)





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [newbie] Unable to find a javac compiler;

2008-05-11 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 What finally worked was restarting Tomcat (no, I don't know why.)

Hmmm - that doesn't work for me on OpenSUSE.  I'm still getting this
error at startup:

May 11, 2008 12:49:55 PM org.apache.catalina.core.StandardContext
filterStart
SEVERE: Exception starting filter WikiServletFilter
com.ecyrd.jspwiki.InternalWikiException: No wiki engine, check logs.
at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
at
com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:55)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:275)
   ...

But since yours is working, I guess we're done.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[newbie] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen
I would like to set up a Wiki and JSPWiki seems a likely candidate. So  
I am trying to get Tomcat 5.5 running. (The environment is Linux  
OpenSUSE 10.3.)


 I have got as far as to have the
   Sample Hello, World Application
servlet run. However, the JSP example always fails with

  Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK

However, JAVA_HOME looks all right (to me):
  [EMAIL PROTECTED]:/tmp ll $JAVA_HOME/lib
  total 28960
  -rw-r--r-- 1 root root 15153295 2007-03-16 12:01 ct.sym
  -rw-r--r-- 1 root root   145760 2007-09-22 01:43 dt.jar
  -rw-r--r-- 1 root root   206225 2007-09-22 01:43 htmlconverter.jar
  -rw-r--r-- 1 root root18381 2007-03-16 12:01 ir.idl
  -rw-r--r-- 1 root root   388392 2007-09-22 01:43 jconsole.jar
  -rwxr-xr-x 1 root root 7056 2007-03-16 12:01 jexec
  -rw-r--r-- 1 root root  429 2007-03-16 12:01 orb.idl
  -rw-r--r-- 1 root root  1504171 2007-09-22 01:43 sa-jdi.jar
  -rw-r--r-- 1 root root 12158340 2007-09-22 01:43 tools.jar
  [EMAIL PROTECTED]:/tmp

(There is also JDK_HOME; it is equal to JAVA_HOME.)

Both java and javac work fine from the command line:
  [EMAIL PROTECTED]:/tmp java -version
  java version 1.6.0_01
  Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
  Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
  [EMAIL PROTECTED]:/tmp javac -version
  javac 1.6.0_01
  [EMAIL PROTECTED]:/tmp


Why doesn't Tomcat find javac?


Thank you,
Sakari Aaltonen








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: [newbie] Unable to find a javac compiler;
 
 Why doesn't Tomcat find javac?

Good question, since Tomcat 5.5 doesn't use the javac from tools.jar,
unless you have specifically configured it to do so.  Have you changed
anything in conf/web.xml?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [newbie] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen

Quoting Caldarale, Charles R [EMAIL PROTECTED]:


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Subject: [newbie] Unable to find a javac compiler;

Why doesn't Tomcat find javac?


Good question, since Tomcat 5.5 doesn't use the javac from tools.jar,
unless you have specifically configured it to do so.  Have you changed
anything in conf/web.xml?

 - Chuck


No I haven't. I just took a first look at it, and the relevant section  
seems to be this:


servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

By relevant I mean that the section starts with
!-- The JSP page compiler and execution servlet, which is the mechanism  --
!-- used by Tomcat to support JSP pages.  Traditionally, this servlet--

What does it all mean?


Sakari Aaltonen




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 I just took a first look at it, and the 
 relevant section seems to be this:

The JSP servlet config looks normal.

Are you by any chance using the 3rd-party repackaged version of Tomcat
that came with your Linux distribution?  If so, throw it away, and
download and install a real one from tomcat.apache.org.  The 3rd-party
junk has caused numerous problems over the years.

You might as well use Tomcat 6.0 if you're just getting started.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Hassan Schroeder
On Fri, May 9, 2008 at 11:24 AM,  [EMAIL PROTECTED] wrote:

 Outstanding. However, I still don't understand what is going on with
 JSPWiki, the package I got into this Tomcat stuff for.

 this does not help much because when I, next, tell my browser to go to
 http://localhost:8080/JSPWiki/Install.jsp
 as suggested by the JSPWiki installation instructions, all I get is

 HTTP Status 404 - /JSPWiki/Install.jsp

You need to look at your logs to see what's going on...

What version of JSPWiki are you trying to install?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [newbie] Unable to find a javac compiler;

2008-05-09 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: [newbie] Unable to find a javac compiler;
 
 As if by magic, this seems to trigger a process by which
 the directory $CATALINA_HOME/webapps/JSPWiki is generated
 from JSPWiki.war.  

It's not magic, it's autodeployment.

 http://localhost:8080/JSPWiki/Install.jsp
 as suggested by the JSPWiki installation instructions, all I get is
   HTTP Status 404 - /JSPWiki/Install.jsp

As Hassan suggested, look in your logs.  I just installed JSPWiki 2.6.2
on a Windows box without problem.  However, when I did the same on an
OpenSUSE system, the JSPWiki webapp died with SEVERE: Error
filterStart and a couple of NullPointerExceptions.  Looks a bit buggy
to me.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [newbie] Unable to find a javac compiler;

2008-05-09 Thread sakari . aaltonen

Quoting Hassan Schroeder [EMAIL PROTECTED]:


On Fri, May 9, 2008 at 11:24 AM,  [EMAIL PROTECTED] wrote:


. when I, next, tell my browser to go to
http://localhost:8080/JSPWiki/Install.jsp
as suggested by the JSPWiki installation instructions, all I get is

HTTP Status 404 - /JSPWiki/Install.jsp


You need to look at your logs to see what's going on...

What version of JSPWiki are you trying to install?


The JSPWiki version is 2.6.2. Here is an excerpt from Tomcat's log  
when I put JSPWiki.war in $CATALINA_HOME/webapps and, next, (try to)  
go to

http://localhost:8080/JSPWiki/Install.jsp


10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO:  Assigning new engine to 104184
10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO: No jspwiki.propertyfile defined for this context, using default  
from /WEB-INF/jspwiki.properties

10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO: Loading cascading properties...
10-May-2008 07:22:46 org.apache.catalina.core.ApplicationContext log
INFO:  No cascading properties defined for this context
10-May-2008 07:22:49 org.apache.catalina.core.ApplicationContext log
INFO: JSPWiki: Unable to load and setup properties from  
jspwiki.properties. Failed to start managers: Page directory does not  
exist

10-May-2008 07:22:49 org.apache.catalina.core.ApplicationContext log
INFO: ERROR: Failed to create a Wiki engine: JSPWiki: Unable to load  
and setup properties from jspwiki.properties. Failed to start  
managers: Page directory does not exist

10-May-2008 07:22:49 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter WikiJSPFilter
com.ecyrd.jspwiki.InternalWikiException: No wiki engine, check logs.
at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
at  
com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:55)
at  
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at  
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at  
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)

###

The ERROR: Failed to create a Wiki engine looks fatal. But is this a  
JSPWiki problem or a Tomcat one? Perhaps I should stop bothering you  
people and look for help on a  JSPWiki-related site...



Sakari Aaltonen





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]