 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Bad class file [Closed]
Posted: Nov 05, 2004 - 02:20 PM
|
|
Registered Member


Joined: Apr 26, 2004
Posts: 16
|
|
Hi,
I am having some trouble with the JSP validator.
I am having the following line in my JSP:
| Code: | | <%@ page import="com.upsscs.rmadcp.presentation.actions.Constants" %> |
and the error message that I am receiving is:
| Code: | | cannot access com.upsscs.rmadcp.presentation.actions.Constants: bad class file: D:\dev\workspace\RmaThroughDcpWeb\src_web\WEB-INF\classes\com\upsscs\rmadcp\presentation\actions\Constants.class. NOTE: No JSP line number was avaliable so line 1 was used for the marker. |
I checked the class file - it's there. I have rebuilt it to no avail. Does anyone have a clue??? The whole project is successfully deployed in Tomcat without any problem. The JSP in particular works fine.
I am using MyEclipse version 3.8.2 and Eclipse version 3.0.1.
Thanks!
Franck |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 06, 2004 - 12:18 AM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23822
|
|
| Can you try cleaning the project and making sure that the class file is actually rebuilt? (check the timestamp)? I wonder why this would be happening... |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 06, 2004 - 12:22 AM
|
|
Moderator


Joined: May 06, 2003
Posts: 6688
|
|
| Can you please post all the information we request in the Posting Guidelines thread at the top of this forum? That will give us some context so that we can determine what the problem might be. Thanks. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2004 - 09:58 AM
|
|
Registered Member


Joined: Apr 26, 2004
Posts: 16
|
|
Hi,
Yes I have cleaned my classes folder and checked the timestamps. That should all be fine.
What operating system and version are you running?
Windows 2000 Professional
What Eclipse version and build id are you using? (Help > About Eclipse Platform)
Version: 3.0.1
Build id: 200409161125
- Was Eclipse freshly installed for MyEclipse?
No. I first deinstalled MyEclipse 3.7(.2?), then I upgraded first Eclipse from 3.0 to 3.0.1 and then I installed MyEclipse 3.8.2. I have put up my web project from scratch again.
- If not, was it upgraded to its current version using the update manager?
Yes, I used the update manager. I followed the instructions that were put on the site by support-scott on Sep 26, 2004 - 02:32 PM. (I don't know the exact link anymore).
- Are any other external plugins installed?
Yes
- How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
14 (among which a few duplicates 3.0 and 3.0.1 directories)
What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.8.2
What JDK version are you using to run Eclipse? (java -version)
1.4.2_04
What JDK version are you using to launch your application server?
1.4.2_04
What steps did you take that resulted in the issue?
This error did not occur in the 3.7 release of MyEclipse. After the upgrade it starts occurring. When I do a full clean (I even remove manually the classes directory under WEB_INF, the problem comes back after doing a rebuild within Eclipse
What application server are you using?
Tomcat. The application actually works fine.
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
Not any related to this problem
My system properties are:
| Code: | *** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=I200406251208
eclipse.commands=-os win32 -ws win32 -arch x86 -showsplash D:\eclipse30\eclipse.exe -showsplash 600 -exitdata D:\eclipse30\eclipse.exe -exitdata 134_88 -vm C:\WINNT\system32\javaw.exe
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1099906724232
eclipse.vm=C:\WINNT\system32\javaw.exe
eclipse.vmargs=-Xmx512M
-cp
D:\eclipse30\startup.jar
org.eclipse.core.launcher.Main
eof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
findbugs.home=/d:/eclipse30/plugins/edu.umd.cs.findbugs_0.8.1/
http.proxyHost=proxy.europe.ups.com
http.proxyPort=8080
http.proxySet=true
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=D:\eclipse30\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_04
java.io.tmpdir=C:\DOCUME~1\fdbruijn\LOCALS~1\Temp\
java.library.path=C:\WINNT\system32;.;C:\WINNT\system32;C:\WINNT;D:\oracle\ora81\bin;D:\oracle\ora81\Apache\Perl.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2004 - 10:11 AM
|
|
Registered Member


Joined: Apr 26, 2004
Posts: 16
|
|
Hi,
I have been able to solve the problem.
Although Eclipse was running with JDK 1.4.2_04, it was using the javaw.exe stored in the Windows directory (see my properties in my previous post).
I forced Eclipse to use the JDK in the installation directory through the -vm startup parameter, and the error does not appear anymore.
It could be that this has to do with the difference of a JRE compared to a JDK. A JRE does not have javac (compiler), while the JDK has. But I might be wrong.
Cheers,
Franck |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2004 - 02:07 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23822
|
|
Franck,
Thank you for the followup and running this down successfully. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 08, 2006 - 06:18 PM
|
|
Registered Member

Joined: Sep 08, 2006
Posts: 1
|
|
| A footnote: I received the message "No JSP line number was avaliable so line 1 was used for the marker" in a project I was working on. It turned out that there was a conflict with Quick Test Pro software installed on my machine. Uninstalling Quick Test Pro solved the problem. |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |
|