MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
pbh001
Post subject: JSP errors not showing the same way as in tutorial [Closed]  PostPosted: Oct 20, 2004 - 01:16 AM
Veteran Member
Veteran Member


Joined: Apr 09, 2004
Posts: 14

Error indicator on right shows, but not red X on left. Also no error shows on the problems window or on the file in the package explorer.


Any ideas why?

Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 20, 2004 - 04:48 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Brian,
For errors on the left and in the problem view you need a few things:

1) Make sure javac.exe is in your system path, the JSP Validator runs this to compile the page for validation results.
2) Hit the down arrow in your problem view (top right) and go to Filters... and hit Select All and OK to make sure to see all errors.
**3) Errors in the right are reconciler (real-time) errors, they are not the same as validation (compiler) errors.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pbh001
Post subject:   PostPosted: Oct 21, 2004 - 02:51 AM
Veteran Member
Veteran Member


Joined: Apr 09, 2004
Posts: 14

Ok I must still have something wrong.

I downloaded the latest JDK, the latest eclipse, and the latest myeclipse and installed everything per instructions.

This is my class path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;"E:\j2sdk1.4.2_06\bin";"E:\Program Files\Symantec\Norton Ghost 2003\";C:\Program Files\ATI Technologies\ATI Control Panel

1) I can run javac from the dos prompt from any directory, so I know the path is correct.
2) I verfied that all check boxes are marked

This is the code that should produce an error:
<% out.println("Hello World") %> //notice the missing semi-colon.

When I right click on the file and say validate jsp, it shows jsp as being valid.

Here is the contents of my configuration detail if it helps
*** Date: 10/20/04 8:51 PM

*** Platform Details:

*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M200409161125
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
E:\eclipse3.0.1\eclipse\eclipse.exe -showsplash 600
-exitdata
E:\eclipse3.0.1\eclipse\eclipse.exe -exitdata 868_38
-vm
C:\WINDOWS\system32\javaw.exe

eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1098322744203
eclipse.vm=C:\WINDOWS\system32\javaw.exe
eclipse.vmargs=-cp
E:\eclipse3.0.1\eclipse\startup.jar
org.eclipse.core.launcher.Main

eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=E:\eclipse3.0.1\eclipse\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_06
java.io.tmpdir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;"E:\j2sdk1.4.2_06\bin";"E:\Program Files\Symantec\Norton Ghost 2003\";C:\Program Files\ATI Technologies\ATI Control Panel
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_06-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_06
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_06-b03


I can give you the rest of it if needed
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 21, 2004 - 02:55 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Hmm if you aren't seeing that marked as an error, check your log file in your workspace for exceptions related to javac.exe (workspace dir)\.metadata\.log is the location. Your setup looks fine otherwise.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pbh001
Post subject:   PostPosted: Oct 21, 2004 - 03:26 AM
Veteran Member
Veteran Member


Joined: Apr 09, 2004
Posts: 14

Here is the contents of the log:

!SESSION Oct 20, 2004 21:25:28.302 ---------------------------------------------
eclipse.buildId=M200409161125
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 20, 2004 21:25:28.302
!MESSAGE
Oct 20, 2004 9:25:28 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Javac exception
Error running javac.exe compiler
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:446)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateJSPActionDelegate.run(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: java.io.IOException: CreateProcess: javac.exe -classpath "E:\eclipse3.0.1\eclipse\startup.jar;E:\j2sdk1.4.2_06\jre\lib\rt.jar;E:\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;E:\j2sdk1.4.2_06\jre\lib\jsse.jar;E:\j2sdk1.4.2_06\jre\lib\jce.jar;E:\j2sdk1.4.2_06\jre\lib\charsets.jar;E:\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar;E:\j2sdk1.4.2_06\jre\lib\ext\ldapsec.jar;E:\j2sdk1.4.2_06\jre\lib\ext\localedata.jar;E:\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 21, 2004 - 05:42 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Well it looks like javac is definately the problem... if you open up a command prompt (Start > Run > "cmd") and go to say C:\Program Files and type "javac -version" what do you get?

Also did you make sure to restart Eclipse after putting javac in your path?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pbh001
Post subject:   PostPosted: Oct 21, 2004 - 10:35 PM
Veteran Member
Veteran Member


Joined: Apr 09, 2004
Posts: 14

C:\Program Files>java -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

C:\Program Files>

Brian

PS Thanks for you help Riyad!
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 21, 2004 - 10:38 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Actually not java, javac... The JRE installs itself to C:\windows when it runs so I wouldn't be surprised that "java" is in your path, but we want "javac.exe" in your path.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
pbh001
Post subject:   PostPosted: Oct 21, 2004 - 10:47 PM
Veteran Member
Veteran Member


Joined: Apr 09, 2004
Posts: 14

javac does not take a -version param. At least mine did not, so I thought "hmmm i bet he meant java".

Anyway I found this and tried it and it worked!

***************************************************
Susana,

First, I'm really glad you found the problem. Most developer's machines (mine included) contain a hodge-podge of JDK installations, and this can often cause problems.

I don't know what the 'null' file is, but I wouldn't worry about it. For future reference, you can specify exactly which VM Eclipse should launch with by modifying the alias you use to launch Eclipse and specifying the -vm argument like this:
eclipse -vm d:\jdks\jdk1.4.1_01\bin\javaw

That will prevent Eclipse from rooting around your system looking for a compatable JDK.

--Scott
MyEclipse Support
************************************************


Now my question is how can I figure out what jdk it is finding when I did not give it the -vm E:\j2sdk1.4.2_06\bin\javaw

I would like to clean up the jre or old sdk or what ever was causing the problem!

Thanks Riyad

Brian
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 21, 2004 - 10:56 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Quote:
javac does not take a -version param. At least mine did not, so I thought "hmmm i bet he meant java".

I'm sorry, you had the right interpretation of this.

You can remove the -vm arg and start Eclipse back up then go to Help > About > Configuration details and it will give all the JRE/JDK details.

And it looks like you already did that in the first part fo the post and the info was:
Quote:
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_06
java.io.tmpdir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;"E:\j2sdk1.4.2_06\bin";"E:\Program Files\Symantec\Norton Ghost 2003\";C:\Program Files\ATI Technologies\ATI Control Panel
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_06-b03


So it looked like it was picking up the right version, but it was using the JRE install in C:\Program Files, not the JDK install which you are pointing to now with the -vm argument, so it wasn't able to find javac.exe before, now it is.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits