For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 9 replies, 4 voices, and was last updated 21 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
wseubertMemberI’m new to MyEclipse so I’m guessing I screwed something up.
I’m walking through the Web Development Tutorial and I’m having a problem in step 5. The line
<% out.println(“Hello World”); XXX%>
is not generating an error in the workbench. When I deploy it I get an exception from TomCat. If I remove the erroneos XXX and deply it, TomCat likes it.I am using version 3.0.0 of Eclipse, 3.8.1 of MyEclipse, TomCat 5.0.28, and j2sdk1.4.2_05. I downloaded the sdk from the J2ME site not the J2EE site. My PC is running XP.
Any quesses as to what I might have screwed up? If you need more info, just let me know.
Thanks
September 10, 2004 at 8:01 am #214944
snpeMemberupgrade to fix 3
check that JSP validation on
add j2ee 1.4 librariesregards
September 10, 2004 at 8:37 am #214948
Riyad KallaMemberwseubert,
In addition to snpe’s suggestions we also need to make sure that “javac.exe” is in your system PATH environment variable because ME uses it to compile the JSP pages in order to validate them. If on Windows you can check this by dropping to a console and type “javac”, if nothing happens you can edit your system PATH and add to it your JDK’s bin directory and then open a new console (has to be a new one) and try again… also typing “echo %PATH%” will let you see the current path.Once this is done make sure JSP validation is on in MyEclipse (Window > Preferences > MyEclipse > Validation > JSP Validation).
September 10, 2004 at 8:38 am #214949
Scott AndersonParticipantTo see if the version of MyEclipse you’re running already has the 3rd quickfix installed please look at the build id at Window > Preferences > MyEclipse. The Buid Id should be 3.8.1+QF20040825. If it’s not, you’ll need to install the quick fix as explained here:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.htmlAlso, to see JSP errors in the Problems View, please check the filter settings on the view and be sure that all the errors that begin with MyEclipse are checked. The filters are accessed from the Problems View’s toolbar.
September 10, 2004 at 9:52 am #214961
wseubertMemberI verified my build is 3.8.1+QF20040825.
In my filters, I have everything checked.
Validation is turned on.
Typing javac on the command line didn’t do anything before, I added it my path now and typing javac does something now.I closed and reopened Eclipse and now I get the error.
Instead of getting it on the actual line that has the error, I get it at the end of the line. Is this what I should expect?
snpe suggested that I need the j2ee 1.4 libraries. Do I really need them?
September 10, 2004 at 10:15 am #214970
Riyad KallaMemberWhat does the page look like? What is the error? Where is it marked?
You will need the J2EE libraries OR the servlet/jsp API implementations from your application server in order for the JSP pages to compile correctly and all that fancy stuff.
September 10, 2004 at 2:25 pm #214995
wseubertMemberThe error is the correct error:
Severity Description Resource In Folder Location Creation Time
2 ‘;’ expected: out.write(“\r\n \r\n </body>\r\n</html>\r\n”); HelloWorld.jsp HelloWorldJSP/WebRoot line 33 September 10, 2004 2:22:39 PMIt just shows on the blank line after </html>
The offending code is:
<body>
This is my JSP page. <br><% out.println(“Hello World”); xxx%>
</body>
</html>[/img]September 10, 2004 at 3:23 pm #214998
Riyad KallaMemberIt depends on the code the compiler is creating with how its mapped back to the original file, that sounds like normal behavior to me.
September 12, 2004 at 1:19 pm #215045
wseubertMemberThe only reason I didnt think it wasn’t normal behavior is it doesn’t match up with what’s shown in the tutorial. If that’s normal behavior it would be a good thing to update the tutorial.
Thanks for all your help
September 12, 2004 at 2:21 pm #215047
Riyad KallaMemberThank you for the additional information, yes we do need to update that tutorial and add some more.
-
AuthorPosts
