Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Eclipse WTP with Tomcat 6 to do ssi
Eclipse WTP with Tomcat 6 to do ssi [message #199781] Sat, 15 September 2007 18:11 Go to next message
Eclipse UserFriend
Originally posted by: fieseMoep.gmx.net

Hi folks,

i'm new to eclipse and wtp. After i have developed a number of projecs
in a rather minimalistic way with standalone editor, debugger, local
webserver and hand made versioning. I wanted to try eclipse as an
integrated solution...

So i installed the "get it all"-package from the WTP website:
wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
It's working fine no problem here to be found.

Next i setup a existing project for testing. The project is a simple
DHtml website with makes use of ssi. At the point to select a sufficient
server for testing and debugging i was unsure. As the server makes no
use of any advanced serversided technologies, i first tried the standard
web server served by the eclipse installation. The website was served by
the server and displayed in firefox, but the ssi were not served, the
sourcecode of the website in the browser shows that.

Next i setup the same project with the template for dynamic website. And
downloaded and installed both in eclipse and standalone Apache tomcat 6.
I configured the tomcat to recognise ssi derectives using the howto on
the apache website
(http://tomcat.apache.org/tomcat-6.0-doc/ssi-howto.html). AND added
after several hours of fruitless searching and trying the context.xml to
the server -config in eclipse.

In the End with the same behavior the website is served, but the ssi
were not recognised. I tried both servlet and filter setting for the
ssi. On startup the server throws no exeptions in the console window.

Changes i made to the tomcat config files.

web.xml
uncommented: the invoker servlet
in turns uncommented: ssi servlet or ssi filter and corresponding mappings

context.xml
changed <server> to <Context reloadable="true" privileged="true">

server.xml
change values maxThreads to "150" and port to "80"

Now i don't know want to do next. How to test this to get a feedback
want is wrong and not only that is not working...

Anyone got a hint?

Greets

Jens




For all with the same Problem of secrurity issues with servlets on
startup try this (mind that this is possibly unsecure, only for developing)

Add the context.xml found in the conf folder in the Tomcat installation
folder to the server -config found in Eclipse in Project
Explorer/Servers/Tomcat v6...
Than edit the contect.xml, change:
<server>

to

<server privileged="true">
Re: Eclipse WTP with Tomcat 6 to do ssi [message #199904 is a reply to message #199781] Mon, 17 September 2007 17:01 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
I gave this a try with just the servlet. This amounted to:

1) Import the context.xml from the Tomcat 6.0.13 in to the "?-config"
directory under the Servers project in the workspace and add:

privileged="true"

to the <Context> element.

2) Uncomment the servlet declaration and mapping for the SSI servlet in
the web.xml in the "?-config" directory.

I was then able to create a simple test ".shtml" that used "#flastmod"
and it worked successfully.

If you remove the "privileged" attribute from the context.xml file, I
assume that the Tomcat server won't start due to a SecurityException.
If so, adding the "privileged" attribute back should complete enabling
of SSI. If it's not working at that point, there may be something else
that's going wrong. Your best bet may be to grab Tomcat source and try
to debug what's happening inside the SSI servlet or filter.

Cheers,
Larry

GmDerce76 wrote:
> Hi folks,
>
> i'm new to eclipse and wtp. After i have developed a number of projecs
> in a rather minimalistic way with standalone editor, debugger, local
> webserver and hand made versioning. I wanted to try eclipse as an
> integrated solution...
>
> So i installed the "get it all"-package from the WTP website:
> wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
> It's working fine no problem here to be found.
>
> Next i setup a existing project for testing. The project is a simple
> DHtml website with makes use of ssi. At the point to select a sufficient
> server for testing and debugging i was unsure. As the server makes no
> use of any advanced serversided technologies, i first tried the standard
> web server served by the eclipse installation. The website was served by
> the server and displayed in firefox, but the ssi were not served, the
> sourcecode of the website in the browser shows that.
>
> Next i setup the same project with the template for dynamic website. And
> downloaded and installed both in eclipse and standalone Apache tomcat 6.
> I configured the tomcat to recognise ssi derectives using the howto on
> the apache website
> (http://tomcat.apache.org/tomcat-6.0-doc/ssi-howto.html). AND added
> after several hours of fruitless searching and trying the context.xml to
> the server -config in eclipse.
>
> In the End with the same behavior the website is served, but the ssi
> were not recognised. I tried both servlet and filter setting for the
> ssi. On startup the server throws no exeptions in the console window.
>
> Changes i made to the tomcat config files.
>
> web.xml
> uncommented: the invoker servlet
> in turns uncommented: ssi servlet or ssi filter and corresponding mappings
>
> context.xml
> changed <server> to <Context reloadable="true" privileged="true">
>
> server.xml
> change values maxThreads to "150" and port to "80"
>
> Now i don't know want to do next. How to test this to get a feedback
> want is wrong and not only that is not working...
>
> Anyone got a hint?
>
> Greets
>
> Jens
>
>
>
>
> For all with the same Problem of secrurity issues with servlets on
> startup try this (mind that this is possibly unsecure, only for developing)
>
> Add the context.xml found in the conf folder in the Tomcat installation
> folder to the server -config found in Eclipse in Project
> Explorer/Servers/Tomcat v6...
> Than edit the contect.xml, change:
> <server>
>
> to
>
> <server privileged="true">
>
Solved: Re: Eclipse WTP with Tomcat 6 to do ssi [message #199924 is a reply to message #199904] Mon, 17 September 2007 20:40 Go to previous message
Eclipse UserFriend
Originally posted by: fieseMoep.gmx.net

Thanks Larry,
that did it!

So everybody with the same problem try Larrys solution it works.

A Hint: Try it with a default installation of tomcat and a freshly
installed server runtime in Eclipse for unwanted behavior.

Greets

Jens



Larry Isaacs schrieb:
> I gave this a try with just the servlet. This amounted to:
>
> 1) Import the context.xml from the Tomcat 6.0.13 in to the "?-config"
> directory under the Servers project in the workspace and add:
>
> privileged="true"
>
> to the <Context> element.
>
> 2) Uncomment the servlet declaration and mapping for the SSI servlet in
> the web.xml in the "?-config" directory.
>
> I was then able to create a simple test ".shtml" that used "#flastmod"
> and it worked successfully.
>
> If you remove the "privileged" attribute from the context.xml file, I
> assume that the Tomcat server won't start due to a SecurityException. If
> so, adding the "privileged" attribute back should complete enabling of
> SSI. If it's not working at that point, there may be something else
> that's going wrong. Your best bet may be to grab Tomcat source and try
> to debug what's happening inside the SSI servlet or filter.
>
> Cheers,
> Larry
>
> GmDerce76 wrote:
>> Hi folks,
>>
>> i'm new to eclipse and wtp. After i have developed a number of projecs
>> in a rather minimalistic way with standalone editor, debugger, local
>> webserver and hand made versioning. I wanted to try eclipse as an
>> integrated solution...
>>
>> So i installed the "get it all"-package from the WTP website:
>> wtp-all-in-one-sdk-R-2.0-200706260303-win32.zip
>> It's working fine no problem here to be found.
>>
>> Next i setup a existing project for testing. The project is a simple
>> DHtml website with makes use of ssi. At the point to select a sufficient
>> server for testing and debugging i was unsure. As the server makes no
>> use of any advanced serversided technologies, i first tried the standard
>> web server served by the eclipse installation. The website was served by
>> the server and displayed in firefox, but the ssi were not served, the
>> sourcecode of the website in the browser shows that.
>>
>> Next i setup the same project with the template for dynamic website. And
>> downloaded and installed both in eclipse and standalone Apache tomcat 6.
>> I configured the tomcat to recognise ssi derectives using the howto on
>> the apache website
>> (http://tomcat.apache.org/tomcat-6.0-doc/ssi-howto.html). AND added
>> after several hours of fruitless searching and trying the context.xml to
>> the server -config in eclipse.
>>
>> In the End with the same behavior the website is served, but the ssi
>> were not recognised. I tried both servlet and filter setting for the
>> ssi. On startup the server throws no exeptions in the console window.
>>
>> Changes i made to the tomcat config files.
>>
>> web.xml
>> uncommented: the invoker servlet
>> in turns uncommented: ssi servlet or ssi filter and corresponding
>> mappings
>>
>> context.xml
>> changed <server> to <Context reloadable="true" privileged="true">
>>
>> server.xml
>> change values maxThreads to "150" and port to "80"
>>
>> Now i don't know want to do next. How to test this to get a feedback
>> want is wrong and not only that is not working...
>>
>> Anyone got a hint?
>>
>> Greets
>>
>> Jens
>>
>>
>>
>>
>> For all with the same Problem of secrurity issues with servlets on
>> startup try this (mind that this is possibly unsecure, only for
>> developing)
>>
>> Add the context.xml found in the conf folder in the Tomcat installation
>> folder to the server -config found in Eclipse in Project
>> Explorer/Servers/Tomcat v6...
>> Than edit the contect.xml, change:
>> <server>
>>
>> to
>>
>> <server privileged="true">
>>
Previous Topic:Problem adding WAS 6.0 Server
Next Topic:Eclipse treats inline ssi's as errors
Goto Forum:
  


Current Time: Sat Apr 20 01:22:06 GMT 2024

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

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

Back to the top