This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Tomcat and the fly likes  Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark " Unable to compile class for JSP" Watch " Unable to compile class for JSP" New topic
Author

Unable to compile class for JSP

Rizvan Asgarov
Ranch Hand

Joined: Jan 07, 2009
Posts: 443

Hi ranchers,

After updating the project changes i compiled the project as always. Then i took the war file and run it in Tomcat. But the project did not work when I try to log on. So looking at logs, i saw the following errors:

An error occurred at line: 9 in the generated java file
Only a type can be imported. xxx.config.MyConstantKeys resolves to a package

An error occurred at line: 5 in the jsp file: /pro/include/userarea-ext.jsp
MyConstantKeys.X_MENU_DICTIONARY cannot be resolved to a type
2: <%@ include file="../../share/include/taglibs.jsp" %>
3: <table id="Table_01" border="0" >
4: <script>
5: <app:fhnHorizontalMenu
6: property="<%=MyConstantKeys.X_MENU_DICTIONARY%>"
7: columnOptions="nowrap"/>
8: domMenu_settings.set('domMenu_main', new Hash(


Stacktrace:
2011-08-05 15:09:55,833 [TP-Processor3] ERROR CharsetFilter - javax.servlet.ServletException: Unable to compile class for JSP:


But after doing the rebuild, the program worked without error. But I'm a bit confused. Because most of the time it does not need to rebuid. Any thoughts???

PS: i use struts 1.x, intelliJIDEA 10 and apache-tomcat-5.5.26
Thanks in advance,
Rizvan


"Half of the science is to ask question"
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unable to compile class for JSP
 
Similar Threads
Error while exporting to PDF using Jasper Report
unable to create an instance of my java bean
The method setAttribute(String, Object) in the type HttpSession is not applicable for
bean compilation problem
Multiple forms in a single JSP page