|
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #740347 is a reply to message #740126] |
Tue, 18 October 2011 12:10 |
|
On 2011.10.18 1:26, Moulii wrote:
> Hi,
>
> I am new to Ubuntu and Eclipse as well. I have been trying to install
> Eclipse Helios JEE on Ubuntu 11.04. I tried installing using tarball but
> it wont work. Even tried extracting in the /usr/ folder but of no use!
> Also tried adding bin files to overcome Java bug(read this in a forum),
> yet no good.
>
> I need to install and start working on my JSP project. It would be
> really helpful if some could help me out!
>
> Thanks in advance
While you can install Eclipse anywhere, it's a personal tool--why not
install it locally, on a path like /home/moulii/eclipse?
At http://www.javahotchocolate.com/tutorials/eclipse-summary.html,
you'll find my experiences installing an Eclipse-centric toolstack.
|
|
|
|
|
|
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #741264 is a reply to message #741132] |
Wed, 19 October 2011 10:55 |
|
On 2011.10.19 1:55, Moulii wrote:
> Problem Once Again :(
No problem. I distinctly remember being there myself and I still make
mistakes and even give stupid answers in the forum. I hope I can help
anyway.
> I tried with Hello World project. It worked fine. But when I tried a new
> Dynamic Web Project I am not getting an output except HTTP Status 404 -
> /SecondJsp/
>
> I have installed jdk and its in the path /usr/lib/jvm/java-6-sun-1.6.0.26
>
> Installed Tomcat 7 and its in path /usr/local/Tomcat7
Some find Tomcat 7 a little tricky to use. I don't, but you might try
using Tomcat 6 instead.
> Have set the environmental variables JAVA_HOME and CATALINA_HOME already.
> Also set windows -> Preference -> Runtime Environment -> Server -> set
> the path to tomcat (/usr/local/Tomcat7)
Don't do this. Follow the summary I gave you and consume Tomcat from
within Eclipse. In particular, download your own copy of Tomcat
privately and wire Eclipse up to it. Down the road, when you feel more
comfortable with Tomcat, you can mess with WAR deployment and remote
debugging.
> When I give Run on server,
>
> I get this message on the console
>
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Most get this message. You can just ignore it.
> WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
> to 'org.eclipse.jst.jee.server:HelloWorldJsp' did not find a matching
> property.
>
> And in //localhost:808/Second/,
>
> HTTP Status 404 - /SecondJsp/
>
> type Status report
>
> message /SecondJsp/
>
> description The requested resource (/SecondJsp/) is not available.
>
> Apache Tomcat/7.0.12
>
> *** Read many tutorials and they have give my Tomcat hasn't been
> deployed properly. I tired many ways to do that. But of no use.
Yeah, I get this. It was that way for me at first.
This forum is for general, newcomer questions about Eclipse. For Dynamic
Web Projects, you should ask in the Eclipse web tools forum.
Part of the answer here (most of it for a newcomer) is consuming Tomcat
from within Eclipse and letting Eclipse write your web.xml file. This
file is the "cookie jar" of web applications. If you don't get that
right (and it's pretty easy to screw up), you'll never get past 404s.
I have a very complete tutorial on starting out in Eclipse with Tomcat
and JSPs. It's a little old (written on Europa, but updated for Galileo
and Helios), but I'll bet it still works with Indigo. You're welcome to
ask questions directly or, if you think your question is of general
interest, post to this or the Eclipse web tools forum.
http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html
Russ
|
|
|
Powered by
FUDForum. Page generated in 0.05327 seconds