Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Help system Jetty problems
Help system Jetty problems [message #474309] Tue, 02 September 2008 11:18 Go to next message
Eclipse UserFriend
Hi, I'm looking for a little assistance getting the Eclipse Help System to
work with my RCP.

I have all the required plug-ins set up and the help system works in my
RCP on my machine fine. However having tried it on another machine, it
does not work and shows the following error:
-------------------------------
HTTP ERROR: 500
Unable to compile class for JSP
RequestURI=/help/index.jsp

Powered by Jetty://
-------------------------------


After a bit of investigation, I've discovered this is because the other
machine does not have a JDK installed, and therefore cannot find the
required tools.jar.

This link
( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
suggests to add tools.jar to the build path of the project.

My application is made up of a number of features and plugins, so there is
a help feature which holds all the dependencies (such as jetty) and a help
plugin which is really just the help pages (it was created using
Instantiations RCP Developer). I tried adding tools.jar to both the
feature and plugin but neither solved the problem.

Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
how can this be done?

Does anyone have any help or suggestions?

By the way, I originally posted this in eclipse.platform.rcp (haven't used
this eclipse.platform.ua group before), but received no replies.

Cheers
Daniel
Re: Help system Jetty problems [message #474310 is a reply to message #474309] Tue, 02 September 2008 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam_kowalskilee.gmail.com

Hi Daniel,

Which version of Eclipse are you using?

While I cannot say for sure why you are getting that error, here are
some things that I'm aware of:
- Based on my experience in another area, it is Ant that looks for
tools.jar. And Ant wants tools.jar because Ant thinks that it might be
called upon to compile something, and so it checks for the presence of
the JDK and tools.jar.

- The Eclipse help system used to have the org.apache.ant plug-in as a
required dependency; however, as of more recent Eclipse versions, that
dependency was changed to Optional.

You might check your RCP project and see if you're setting some
requirement to include all dependencies, whether or not the
org.eclipse.help.* plug-ins have them as optional. If you're pulling in
the org.apache.ant plug-in for the help system only, check whether you
can specify appropriate settings so that the dependency on Ant is
optional. Then the help system won't look for it, and Ant won't look for
tools.jar.

I suspect that the error you're getting is somehow related to Ant's
optional relationship to the org.eclipse.help.* plug-ins. I don't have
any more details to help you pinpoint the specific issue with your RCP,
but I hope this gives you some place to start investigating.

Sincerely,
Lee Anne


Daniel MacDonald wrote:
> Hi, I'm looking for a little assistance getting the Eclipse Help System
> to work with my RCP.
>
> I have all the required plug-ins set up and the help system works in my
> RCP on my machine fine. However having tried it on another machine, it
> does not work and shows the following error:
> -------------------------------
> HTTP ERROR: 500
> Unable to compile class for JSP
> RequestURI=/help/index.jsp
>
> Powered by Jetty://
> -------------------------------
>
>
> After a bit of investigation, I've discovered this is because the other
> machine does not have a JDK installed, and therefore cannot find the
> required tools.jar.
>
> This link
> ( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
> suggests to add tools.jar to the build path of the project.
>
> My application is made up of a number of features and plugins, so there
> is a help feature which holds all the dependencies (such as jetty) and a
> help plugin which is really just the help pages (it was created using
> Instantiations RCP Developer). I tried adding tools.jar to both the
> feature and plugin but neither solved the problem.
>
> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
> how can this be done?
>
> Does anyone have any help or suggestions?
>
> By the way, I originally posted this in eclipse.platform.rcp (haven't
> used this eclipse.platform.ua group before), but received no replies.
>
> Cheers
> Daniel
>
Re: Help system Jetty problems [message #474311 is a reply to message #474309] Tue, 02 September 2008 12:21 Go to previous messageGo to next message
Eclipse UserFriend
I see three possibilities:

1. No JDK is found buy the launcher
2. A JDK is found but it is a minimal jdk or of a version lower than
1.4, which would mean that it does not have all of the classes needed
the help server.
3. The RCP app is finding the JDK but the jsp compiler is not.

Does the rest of the application work fine? If so that would rule out
possibility #1. On the other hand if the system does not have a JDK
installed you will need to install one. Eclipse does not have JREs
available for download (I believe we don't have a licensing agreement
from any of the JRE writers) so you will need to get the JRE from
somewhere other than eclipse.org and make sure that it is one of the
JREs which is in the list of JREs which Eclipse is known to work on.

Do you see any messages in the log? It seems that this might be
unrelated to the JRE and could be caused by some other missing component.

Daniel MacDonald wrote:
> Hi, I'm looking for a little assistance getting the Eclipse Help System
> to work with my RCP.
>
> I have all the required plug-ins set up and the help system works in my
> RCP on my machine fine. However having tried it on another machine, it
> does not work and shows the following error:
> -------------------------------
> HTTP ERROR: 500
> Unable to compile class for JSP
> RequestURI=/help/index.jsp
>
> Powered by Jetty://
> -------------------------------
>
>
> After a bit of investigation, I've discovered this is because the other
> machine does not have a JDK installed, and therefore cannot find the
> required tools.jar.
>
> This link
> ( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
> suggests to add tools.jar to the build path of the project.
>
> My application is made up of a number of features and plugins, so there
> is a help feature which holds all the dependencies (such as jetty) and a
> help plugin which is really just the help pages (it was created using
> Instantiations RCP Developer). I tried adding tools.jar to both the
> feature and plugin but neither solved the problem.
>
> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
> how can this be done?
>
> Does anyone have any help or suggestions?
>
> By the way, I originally posted this in eclipse.platform.rcp (haven't
> used this eclipse.platform.ua group before), but received no replies.
>
> Cheers
> Daniel
>
Re: Help system Jetty problems [message #474314 is a reply to message #474310] Wed, 03 September 2008 05:45 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the replies.

--

Lee Anne:

I'm using Eclipse 3.3

I am indeed just using Ant for the help system but, and my understanding
of the help system is a little hazy, does it not require it in order to
compile the internal JSP files?

I couldn't see any place to set the Ant dependency to optional - I've
basically got it (and the help plugins) included in the list of plugins in
my help feature. Where might this be set? Simply removing Ant from this
list so the plugin isn't included in the build didn't help.

--

Chris Goldthorpe:

I should have explained the set up a little better. There is no JDK on the
systems which the RCP will be installed on. There may not be a JRE either.

We supply JRE 6 with the installation, which is picked up by the RCP
(can't remember where the Eclipse article is, but a folder called 'jre' in
the location the app.exe is will mean it is picked up).

The rest of the application works correctly, and no errors are written in
the log. The help works correctly on my development machine (which has a
JDK installed and JAVA_HOME set to point to that JDK), so I'm pretty sure
it must be to do with the lack of a JDK.

--

I've tried dropping tools.jar into the jre\lib folder, and also supplying
a JDK instead of a JRE (though still with the same top-level name of
'jre'), but neither worked.

I still think it's all to do with tools.jar and the classpath, but am
unsure on how to achieve this.

Any thoughts?

Cheers
Danny

-----------------

Lee Anne wrote:

> Hi Daniel,

> Which version of Eclipse are you using?

> While I cannot say for sure why you are getting that error, here are
> some things that I'm aware of:
> - Based on my experience in another area, it is Ant that looks for
> tools.jar. And Ant wants tools.jar because Ant thinks that it might be
> called upon to compile something, and so it checks for the presence of
> the JDK and tools.jar.

> - The Eclipse help system used to have the org.apache.ant plug-in as a
> required dependency; however, as of more recent Eclipse versions, that
> dependency was changed to Optional.

> You might check your RCP project and see if you're setting some
> requirement to include all dependencies, whether or not the
> org.eclipse.help.* plug-ins have them as optional. If you're pulling in
> the org.apache.ant plug-in for the help system only, check whether you
> can specify appropriate settings so that the dependency on Ant is
> optional. Then the help system won't look for it, and Ant won't look for
> tools.jar.

> I suspect that the error you're getting is somehow related to Ant's
> optional relationship to the org.eclipse.help.* plug-ins. I don't have
> any more details to help you pinpoint the specific issue with your RCP,
> but I hope this gives you some place to start investigating.

> Sincerely,
> Lee Anne


> Daniel MacDonald wrote:
>> Hi, I'm looking for a little assistance getting the Eclipse Help System
>> to work with my RCP.
>>
>> I have all the required plug-ins set up and the help system works in my
>> RCP on my machine fine. However having tried it on another machine, it
>> does not work and shows the following error:
>> -------------------------------
>> HTTP ERROR: 500
>> Unable to compile class for JSP
>> RequestURI=/help/index.jsp
>>
>> Powered by Jetty://
>> -------------------------------
>>
>>
>> After a bit of investigation, I've discovered this is because the other
>> machine does not have a JDK installed, and therefore cannot find the
>> required tools.jar.
>>
>> This link
>>
( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
>> suggests to add tools.jar to the build path of the project.
>>
>> My application is made up of a number of features and plugins, so there
>> is a help feature which holds all the dependencies (such as jetty) and a
>> help plugin which is really just the help pages (it was created using
>> Instantiations RCP Developer). I tried adding tools.jar to both the
>> feature and plugin but neither solved the problem.
>>
>> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
>> how can this be done?
>>
>> Does anyone have any help or suggestions?
>>
>> By the way, I originally posted this in eclipse.platform.rcp (haven't
>> used this eclipse.platform.ua group before), but received no replies.
>>
>> Cheers
>> Daniel
>>
Re: Help system Jetty problems [message #474315 is a reply to message #474314] Wed, 03 September 2008 07:19 Go to previous message
Eclipse UserFriend
Ah I've made a bit of a breakthrough and it looks like my diagnosis was
wrong.

The problem is that the application is run from different machines which
point to a server location, i.e. \\test_server\my_app\my_app.exe

It appears this path is causing problems, and the following error is
written to the log (I know I said there were no errors but somehow I made
a mistake in my log analysis...):

java.io.FileNotFoundException:
\my_app\configuration\org.eclipse.osgi\bundles\45\data\jetty work\pid_2070971114\proxytemp\hc_33066941\org\apache\jsp\ind ex_jsp.java
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:140)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 5)
....

So the server name part is just getting stripped off.

This is all internal code which handles this, any ideas on how this could
be fixed?

Cheers
Daniel

Daniel MacDonald wrote:


> Thanks for the replies.

> --

> Lee Anne:

> I'm using Eclipse 3.3

> I am indeed just using Ant for the help system but, and my understanding
> of the help system is a little hazy, does it not require it in order to
> compile the internal JSP files?

> I couldn't see any place to set the Ant dependency to optional - I've
> basically got it (and the help plugins) included in the list of plugins in
> my help feature. Where might this be set? Simply removing Ant from this
> list so the plugin isn't included in the build didn't help.

> --

> Chris Goldthorpe:

> I should have explained the set up a little better. There is no JDK on the
> systems which the RCP will be installed on. There may not be a JRE either.

> We supply JRE 6 with the installation, which is picked up by the RCP
> (can't remember where the Eclipse article is, but a folder called 'jre' in
> the location the app.exe is will mean it is picked up).

> The rest of the application works correctly, and no errors are written in
> the log. The help works correctly on my development machine (which has a
> JDK installed and JAVA_HOME set to point to that JDK), so I'm pretty sure
> it must be to do with the lack of a JDK.

> --

> I've tried dropping tools.jar into the jrelib folder, and also supplying
> a JDK instead of a JRE (though still with the same top-level name of
> 'jre'), but neither worked.

> I still think it's all to do with tools.jar and the classpath, but am
> unsure on how to achieve this.

> Any thoughts?

> Cheers
> Daniel

> -----------------

> Lee Anne wrote:

>> Hi Daniel,

>> Which version of Eclipse are you using?

>> While I cannot say for sure why you are getting that error, here are
>> some things that I'm aware of:
>> - Based on my experience in another area, it is Ant that looks for
>> tools.jar. And Ant wants tools.jar because Ant thinks that it might be
>> called upon to compile something, and so it checks for the presence of
>> the JDK and tools.jar.

>> - The Eclipse help system used to have the org.apache.ant plug-in as a
>> required dependency; however, as of more recent Eclipse versions, that
>> dependency was changed to Optional.

>> You might check your RCP project and see if you're setting some
>> requirement to include all dependencies, whether or not the
>> org.eclipse.help.* plug-ins have them as optional. If you're pulling in
>> the org.apache.ant plug-in for the help system only, check whether you
>> can specify appropriate settings so that the dependency on Ant is
>> optional. Then the help system won't look for it, and Ant won't look for
>> tools.jar.

>> I suspect that the error you're getting is somehow related to Ant's
>> optional relationship to the org.eclipse.help.* plug-ins. I don't have
>> any more details to help you pinpoint the specific issue with your RCP,
>> but I hope this gives you some place to start investigating.

>> Sincerely,
>> Lee Anne


>> Daniel MacDonald wrote:
>>> Hi, I'm looking for a little assistance getting the Eclipse Help System
>>> to work with my RCP.
>>>
>>> I have all the required plug-ins set up and the help system works in my
>>> RCP on my machine fine. However having tried it on another machine, it
>>> does not work and shows the following error:
>>> -------------------------------
>>> HTTP ERROR: 500
>>> Unable to compile class for JSP
>>> RequestURI=/help/index.jsp
>>>
>>> Powered by Jetty://
>>> -------------------------------
>>>
>>>
>>> After a bit of investigation, I've discovered this is because the other
>>> machine does not have a JDK installed, and therefore cannot find the
>>> required tools.jar.
>>>
>>> This link
>>>
>
( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
>>> suggests to add tools.jar to the build path of the project.
>>>
>>> My application is made up of a number of features and plugins, so there
>>> is a help feature which holds all the dependencies (such as jetty) and a
>>> help plugin which is really just the help pages (it was created using
>>> Instantiations RCP Developer). I tried adding tools.jar to both the
>>> feature and plugin but neither solved the problem.
>>>
>>> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
>>> how can this be done?
>>>
>>> Does anyone have any help or suggestions?
>>>
>>> By the way, I originally posted this in eclipse.platform.rcp (haven't
>>> used this eclipse.platform.ua group before), but received no replies.
>>>
>>> Cheers
>>> Daniel
>>>
Re: Help system Jetty problems [message #619470 is a reply to message #474309] Tue, 02 September 2008 12:20 Go to previous message
Eclipse UserFriend
Originally posted by: nospam_kowalskilee.gmail.com

Hi Daniel,

Which version of Eclipse are you using?

While I cannot say for sure why you are getting that error, here are
some things that I'm aware of:
- Based on my experience in another area, it is Ant that looks for
tools.jar. And Ant wants tools.jar because Ant thinks that it might be
called upon to compile something, and so it checks for the presence of
the JDK and tools.jar.

- The Eclipse help system used to have the org.apache.ant plug-in as a
required dependency; however, as of more recent Eclipse versions, that
dependency was changed to Optional.

You might check your RCP project and see if you're setting some
requirement to include all dependencies, whether or not the
org.eclipse.help.* plug-ins have them as optional. If you're pulling in
the org.apache.ant plug-in for the help system only, check whether you
can specify appropriate settings so that the dependency on Ant is
optional. Then the help system won't look for it, and Ant won't look for
tools.jar.

I suspect that the error you're getting is somehow related to Ant's
optional relationship to the org.eclipse.help.* plug-ins. I don't have
any more details to help you pinpoint the specific issue with your RCP,
but I hope this gives you some place to start investigating.

Sincerely,
Lee Anne


Daniel MacDonald wrote:
> Hi, I'm looking for a little assistance getting the Eclipse Help System
> to work with my RCP.
>
> I have all the required plug-ins set up and the help system works in my
> RCP on my machine fine. However having tried it on another machine, it
> does not work and shows the following error:
> -------------------------------
> HTTP ERROR: 500
> Unable to compile class for JSP
> RequestURI=/help/index.jsp
>
> Powered by Jetty://
> -------------------------------
>
>
> After a bit of investigation, I've discovered this is because the other
> machine does not have a JDK installed, and therefore cannot find the
> required tools.jar.
>
> This link
> ( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
> suggests to add tools.jar to the build path of the project.
>
> My application is made up of a number of features and plugins, so there
> is a help feature which holds all the dependencies (such as jetty) and a
> help plugin which is really just the help pages (it was created using
> Instantiations RCP Developer). I tried adding tools.jar to both the
> feature and plugin but neither solved the problem.
>
> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
> how can this be done?
>
> Does anyone have any help or suggestions?
>
> By the way, I originally posted this in eclipse.platform.rcp (haven't
> used this eclipse.platform.ua group before), but received no replies.
>
> Cheers
> Daniel
>
Re: Help system Jetty problems [message #619472 is a reply to message #474309] Tue, 02 September 2008 12:21 Go to previous message
Eclipse UserFriend
I see three possibilities:

1. No JDK is found buy the launcher
2. A JDK is found but it is a minimal jdk or of a version lower than
1.4, which would mean that it does not have all of the classes needed
the help server.
3. The RCP app is finding the JDK but the jsp compiler is not.

Does the rest of the application work fine? If so that would rule out
possibility #1. On the other hand if the system does not have a JDK
installed you will need to install one. Eclipse does not have JREs
available for download (I believe we don't have a licensing agreement
from any of the JRE writers) so you will need to get the JRE from
somewhere other than eclipse.org and make sure that it is one of the
JREs which is in the list of JREs which Eclipse is known to work on.

Do you see any messages in the log? It seems that this might be
unrelated to the JRE and could be caused by some other missing component.

Daniel MacDonald wrote:
> Hi, I'm looking for a little assistance getting the Eclipse Help System
> to work with my RCP.
>
> I have all the required plug-ins set up and the help system works in my
> RCP on my machine fine. However having tried it on another machine, it
> does not work and shows the following error:
> -------------------------------
> HTTP ERROR: 500
> Unable to compile class for JSP
> RequestURI=/help/index.jsp
>
> Powered by Jetty://
> -------------------------------
>
>
> After a bit of investigation, I've discovered this is because the other
> machine does not have a JDK installed, and therefore cannot find the
> required tools.jar.
>
> This link
> ( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
> suggests to add tools.jar to the build path of the project.
>
> My application is made up of a number of features and plugins, so there
> is a help feature which holds all the dependencies (such as jetty) and a
> help plugin which is really just the help pages (it was created using
> Instantiations RCP Developer). I tried adding tools.jar to both the
> feature and plugin but neither solved the problem.
>
> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
> how can this be done?
>
> Does anyone have any help or suggestions?
>
> By the way, I originally posted this in eclipse.platform.rcp (haven't
> used this eclipse.platform.ua group before), but received no replies.
>
> Cheers
> Daniel
>
Re: Help system Jetty problems [message #619477 is a reply to message #474310] Wed, 03 September 2008 05:45 Go to previous message
Eclipse UserFriend
Thanks for the replies.

--

Lee Anne:

I'm using Eclipse 3.3

I am indeed just using Ant for the help system but, and my understanding
of the help system is a little hazy, does it not require it in order to
compile the internal JSP files?

I couldn't see any place to set the Ant dependency to optional - I've
basically got it (and the help plugins) included in the list of plugins in
my help feature. Where might this be set? Simply removing Ant from this
list so the plugin isn't included in the build didn't help.

--

Chris Goldthorpe:

I should have explained the set up a little better. There is no JDK on the
systems which the RCP will be installed on. There may not be a JRE either.

We supply JRE 6 with the installation, which is picked up by the RCP
(can't remember where the Eclipse article is, but a folder called 'jre' in
the location the app.exe is will mean it is picked up).

The rest of the application works correctly, and no errors are written in
the log. The help works correctly on my development machine (which has a
JDK installed and JAVA_HOME set to point to that JDK), so I'm pretty sure
it must be to do with the lack of a JDK.

--

I've tried dropping tools.jar into the jre\lib folder, and also supplying
a JDK instead of a JRE (though still with the same top-level name of
'jre'), but neither worked.

I still think it's all to do with tools.jar and the classpath, but am
unsure on how to achieve this.

Any thoughts?

Cheers
Danny

-----------------

Lee Anne wrote:

> Hi Daniel,

> Which version of Eclipse are you using?

> While I cannot say for sure why you are getting that error, here are
> some things that I'm aware of:
> - Based on my experience in another area, it is Ant that looks for
> tools.jar. And Ant wants tools.jar because Ant thinks that it might be
> called upon to compile something, and so it checks for the presence of
> the JDK and tools.jar.

> - The Eclipse help system used to have the org.apache.ant plug-in as a
> required dependency; however, as of more recent Eclipse versions, that
> dependency was changed to Optional.

> You might check your RCP project and see if you're setting some
> requirement to include all dependencies, whether or not the
> org.eclipse.help.* plug-ins have them as optional. If you're pulling in
> the org.apache.ant plug-in for the help system only, check whether you
> can specify appropriate settings so that the dependency on Ant is
> optional. Then the help system won't look for it, and Ant won't look for
> tools.jar.

> I suspect that the error you're getting is somehow related to Ant's
> optional relationship to the org.eclipse.help.* plug-ins. I don't have
> any more details to help you pinpoint the specific issue with your RCP,
> but I hope this gives you some place to start investigating.

> Sincerely,
> Lee Anne


> Daniel MacDonald wrote:
>> Hi, I'm looking for a little assistance getting the Eclipse Help System
>> to work with my RCP.
>>
>> I have all the required plug-ins set up and the help system works in my
>> RCP on my machine fine. However having tried it on another machine, it
>> does not work and shows the following error:
>> -------------------------------
>> HTTP ERROR: 500
>> Unable to compile class for JSP
>> RequestURI=/help/index.jsp
>>
>> Powered by Jetty://
>> -------------------------------
>>
>>
>> After a bit of investigation, I've discovered this is because the other
>> machine does not have a JDK installed, and therefore cannot find the
>> required tools.jar.
>>
>> This link
>>
( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
>> suggests to add tools.jar to the build path of the project.
>>
>> My application is made up of a number of features and plugins, so there
>> is a help feature which holds all the dependencies (such as jetty) and a
>> help plugin which is really just the help pages (it was created using
>> Instantiations RCP Developer). I tried adding tools.jar to both the
>> feature and plugin but neither solved the problem.
>>
>> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
>> how can this be done?
>>
>> Does anyone have any help or suggestions?
>>
>> By the way, I originally posted this in eclipse.platform.rcp (haven't
>> used this eclipse.platform.ua group before), but received no replies.
>>
>> Cheers
>> Daniel
>>
Re: Help system Jetty problems [message #619479 is a reply to message #474314] Wed, 03 September 2008 07:19 Go to previous message
Eclipse UserFriend
Ah I've made a bit of a breakthrough and it looks like my diagnosis was
wrong.

The problem is that the application is run from different machines which
point to a server location, i.e. \\test_server\my_app\my_app.exe

It appears this path is causing problems, and the following error is
written to the log (I know I said there were no errors but somehow I made
a mistake in my log analysis...):

java.io.FileNotFoundException:
\my_app\configuration\org.eclipse.osgi\bundles\45\data\jetty work\pid_2070971114\proxytemp\hc_33066941\org\apache\jsp\ind ex_jsp.java
(The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:140)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 5)
....

So the server name part is just getting stripped off.

This is all internal code which handles this, any ideas on how this could
be fixed?

Cheers
Daniel

Daniel MacDonald wrote:


> Thanks for the replies.

> --

> Lee Anne:

> I'm using Eclipse 3.3

> I am indeed just using Ant for the help system but, and my understanding
> of the help system is a little hazy, does it not require it in order to
> compile the internal JSP files?

> I couldn't see any place to set the Ant dependency to optional - I've
> basically got it (and the help plugins) included in the list of plugins in
> my help feature. Where might this be set? Simply removing Ant from this
> list so the plugin isn't included in the build didn't help.

> --

> Chris Goldthorpe:

> I should have explained the set up a little better. There is no JDK on the
> systems which the RCP will be installed on. There may not be a JRE either.

> We supply JRE 6 with the installation, which is picked up by the RCP
> (can't remember where the Eclipse article is, but a folder called 'jre' in
> the location the app.exe is will mean it is picked up).

> The rest of the application works correctly, and no errors are written in
> the log. The help works correctly on my development machine (which has a
> JDK installed and JAVA_HOME set to point to that JDK), so I'm pretty sure
> it must be to do with the lack of a JDK.

> --

> I've tried dropping tools.jar into the jrelib folder, and also supplying
> a JDK instead of a JRE (though still with the same top-level name of
> 'jre'), but neither worked.

> I still think it's all to do with tools.jar and the classpath, but am
> unsure on how to achieve this.

> Any thoughts?

> Cheers
> Daniel

> -----------------

> Lee Anne wrote:

>> Hi Daniel,

>> Which version of Eclipse are you using?

>> While I cannot say for sure why you are getting that error, here are
>> some things that I'm aware of:
>> - Based on my experience in another area, it is Ant that looks for
>> tools.jar. And Ant wants tools.jar because Ant thinks that it might be
>> called upon to compile something, and so it checks for the presence of
>> the JDK and tools.jar.

>> - The Eclipse help system used to have the org.apache.ant plug-in as a
>> required dependency; however, as of more recent Eclipse versions, that
>> dependency was changed to Optional.

>> You might check your RCP project and see if you're setting some
>> requirement to include all dependencies, whether or not the
>> org.eclipse.help.* plug-ins have them as optional. If you're pulling in
>> the org.apache.ant plug-in for the help system only, check whether you
>> can specify appropriate settings so that the dependency on Ant is
>> optional. Then the help system won't look for it, and Ant won't look for
>> tools.jar.

>> I suspect that the error you're getting is somehow related to Ant's
>> optional relationship to the org.eclipse.help.* plug-ins. I don't have
>> any more details to help you pinpoint the specific issue with your RCP,
>> but I hope this gives you some place to start investigating.

>> Sincerely,
>> Lee Anne


>> Daniel MacDonald wrote:
>>> Hi, I'm looking for a little assistance getting the Eclipse Help System
>>> to work with my RCP.
>>>
>>> I have all the required plug-ins set up and the help system works in my
>>> RCP on my machine fine. However having tried it on another machine, it
>>> does not work and shows the following error:
>>> -------------------------------
>>> HTTP ERROR: 500
>>> Unable to compile class for JSP
>>> RequestURI=/help/index.jsp
>>>
>>> Powered by Jetty://
>>> -------------------------------
>>>
>>>
>>> After a bit of investigation, I've discovered this is because the other
>>> machine does not have a JDK installed, and therefore cannot find the
>>> required tools.jar.
>>>
>>> This link
>>>
>
( http://henneberke.wordpress.com/2007/08/25/unable-to-compile -class-for-jsp/)
>>> suggests to add tools.jar to the build path of the project.
>>>
>>> My application is made up of a number of features and plugins, so there
>>> is a help feature which holds all the dependencies (such as jetty) and a
>>> help plugin which is really just the help pages (it was created using
>>> Instantiations RCP Developer). I tried adding tools.jar to both the
>>> feature and plugin but neither solved the problem.
>>>
>>> Would it help to add tools.jar as an argument in <myapp>.ini, and if so,
>>> how can this be done?
>>>
>>> Does anyone have any help or suggestions?
>>>
>>> By the way, I originally posted this in eclipse.platform.rcp (haven't
>>> used this eclipse.platform.ua group before), but received no replies.
>>>
>>> Cheers
>>> Daniel
>>>
Previous Topic:Contributing to root Welcome page
Next Topic:Link to URL from Universal Welcome
Goto Forum:
  


Current Time: Sat May 17 18:29:32 EDT 2025

Powered by FUDForum. Page generated in 0.04286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top