Problem in compiling jsp file
Hi,
i am using tomcat 4.12 and jdk 1.4.
My login page contains 3 frames. after succesful login into ur application, 7 frames are getting called.
i have called a jsp page for each frame.
sometimes while accessing my application, i am getting jasper exception like cannot resolve symbol....
for example
D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\sample\web\helpdesklogin_jsp.java:404: cannot resolve symbol
symbol : method --ite (java.lang.String)
location: class javax.servlet.jsp.JspWriter
out.write("<tr bgcolor=\"ffffff\">\r\n ");
i do not understand the what is the problem here....
likewise i am getting jasper exception. but it is not frequently occured in the frame.
is there any relation with autoflush page directive attribute...?
if it then should i increase default buffer size ?
Reply please
Thanks
Your helpdesklogin.jsp file has a compilation error. It's hard to tell, but it looks like you mis-typed out.write() somewhere.
- Saish
Similar Messages
-
Problem in compiling j2me file
Hello friends,
friends my problem in compiling j2me file..
when i compile my j2me file through WTK2.2 (toolkit)
then it creates extra file including j2me" .class" file..
for example if my j2me file is "aman.java" and when i compile it
then it will covert into "aman.class" file but it creates one more file like "aman1$.class" ..plz help me to get out of this problem..coz its increase my j2me file size..
thanks
AmanThat is an inner class in aman.java that you are seeing there.
If you use inner anonymous classes, for example;
public class MyMIDlet extends MIDlet {
// code for the MIDlet
// Anonymous inner class
setCommandListener(new CommandListener() {
public void commandAction(Command c, Displayable d) {
// implementation;
// may access MyMIDlet's private fields
}then the command listener you create will become another class named MyMIDlet$1.class.
In this example you can get rid of the inner class by making one of the existing classes implement that CommandListener interface:
public class MyMIDlet extends MIDlet implmements CommandListener {
public void commandAction(Command c, Displayable d) {
// implementation;
// may access MyMIDlet's private fields
// code for the MIDlet
// Instead of the anonymous inner class, we can now use MyMIDlet since it
// implements CommandListener
setCommandListener(this);
// etc. etc. etc.
}shmoove -
Using jikes to compile jsp files
Hello !
Where can i find a easy installation about jikes/WLS 6.0 sp6
to compile jsp files ?
Regards,
jsanza
just change the compile command for 6.x in weblogic.xml
kumar.
"jsanza" <[email protected]> wrote in message
news:3b814a50$[email protected]..
>
> Hello !
>
> Where can i find a easy installation about jikes/WLS 6.0 sp6
> to compile jsp files ?
>
> Regards,
>
> jsanza
>
-
Compile jsp file for long time
Hi All,
I'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
Below is the log file,
enumerating jsps...13577
updating dependency...13
parsing jsp...13
writing deplist...13577
initializing compilation:
eliminating children...10257 (-3320)
searching uncompiled...13 (10 were stale)
translating and compiling:
searching untranslated...13
translating jsps...
Please advise.
Thanks,
KevinI'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
Below is the log file,What is the command you use to compile JSP file?
It is normal for compiling JSP files to run for more than 1 hour, which depends on the hardware resources you have. So, I would suggest you wait and see if the job completes successfully.
Thanks,
Hussein -
Problems placing compiled jsp in the right directory
I have problems placing compiled jsp in the right directory.
- My document root is weblogic/myserver/public_html
- My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
- My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
- When weblogic compiles my jsp it places them in
weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
Now I want to compile ram1.jsp and place it in above directory. I tried the
following but it does not place class correct.
1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
**** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
2: java weblogic.jspc -d
C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
ass
What am I doing wrong ?
cheers Per
I would try this...
cd public_html
java weblogic.jspc -prefix compiled_jsp ram/jsp/ram1.jsp
I'm not sure if -prefix is the exact option - something like that - maybe package_prefix.
As always, things work better/easier when you leave things at the default value
(jsp_servlet).
Mike
"Per Lovdinger" <[email protected]> wrote:
>I have problems placing compiled jsp in the right directory.
>
>- My document root is weblogic/myserver/public_html
>- My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
>- My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
>
>- When weblogic compiles my jsp it places them in
>weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
>
>Now I want to compile ram1.jsp and place it in above directory. I tried
>the
>following but it does not place class correct.
>
>1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
>**** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
>
>2: java weblogic.jspc -d
>C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
>****
>C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
>ass
>
>What am I doing wrong ?
>
>cheers Per
>
>
-
Do not compile .jsp files
Hello,
Somebody nows how can I compile only .java file into my project of Oracle JDeveloper 10g (9.0.5.1)? I don't want compile .jsp files...
Regards,
Renato Milan dos SantosPlease refer to a previous post.
JSP compilation - how to disable -
I am using ant to precompile my jsp files which contains struts taglibs but it is giving an error
[jasperc] error:org.apache.jasper.JasperException: Error compiling \attendance\AllPendingAuthentication.jsp
[jasperc] at org.apache.jasper.JspC.processFile(JspC.java:543)
[jasperc] at org.apache.jasper.JspC.execute(JspC.java:748)
[jasperc] at org.apache.jasper.JspC.main(JspC.java:770)
what i need to do to come out of this??You can load the JSP in the browser and add a jsp_precompile parameter, something like:
http://yourwebsite.com/yourwebpage.jsp?jsp_precompile
Any mistakes will end up being displayed in the browser, but the JSP will never get executed should it contain no programming mistakes. -
I am unable to compile my jsp file whan they are kept in public_html?I have javac in d:\jdk1.2\bin.I installed my weblogic in d:\weblogic.Any help in this regard is very highly apriciated.I really need it very badly.
add C:\Tomcat\webapps\examples\WEB-INF\classes to your classpath.
You can do this through the control panel or by:
set CLASSPATH=%CLASSPATH%;C:\Tomcat\webapps\examples\WEB-INF\classes -
Problem in compiling JSP(JSPG0059E)
Hi
I have 2 JSPs navleft.jsp and navSupplier.JSP
In my navLeft scrpitlet I have
boolean disputeSubLinks = PppNavigator.openDisputeSubLinks(amtAction);
and in navSupplier.JSP i use this value
<% if (disputeSubLinks) { %>
<%@ include file="navSupplierDisputeSubLinks.jsp" %>
<% } %>
the problem is quite crazy if the D in disputeSubLinks is in caps it compiles and if I make it small at both places it throws an exception
Kindly can anybody help??
I am putting the stack trace here:
Error Message: JSPG0059E: Unable to compile class for JSP
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.NumberFormatException: H
at java.lang.Integer.parseInt(Integer.java:406)
at java.lang.Integer.parseInt(Integer.java:455)
at org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:244)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at financing.framework.controller.MainServlet.service(MainServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.webapp.InvokerServlet.service(InvokerServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)Hi
I found something vague tell me if i am correct??
The problem in my .java of the JSP was that I had missed changing the name of the variable at one place and my javac gives an error something like this.
test.java:5: cannot resolve symbol
symbol : variable i
location: class test
i=4;
^
1 error
I think the jasper compiler tries to get the line numbers in the errors given by javac to map it to appropriate line numbers in .jsp file.This line number is found betn 2 colons(eg 5 above).But this missing variable causes 2 more lines to be printed with colons.Can it be the problem??
Thanks -
Not able to compile JSP files in MII
Hi All,
I am trying to execute the JSP file by connecting to SQL Server but its not getting compiled. Any prerequsite to be enabled or to be installed to compile the .JSP files.
Error as below :-
Error stream
contains:"E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:16:
'class' or 'interface' expected
import javax.servlet.*;
^
E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:17:
'class' or 'interface' expected
import javax.servlet.http.*;
^
E:\usr\sap\MID\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\work\JEE_jsp_CM_Examples_20_12_2e_2_MDO_Persistent_AsynchronousDataBuffer_Test_5783350_1401019803876_1401019809725.java:18:
'class' or 'interface' expected
import javax.servlet.jsp.*;
^
3
errors
at
com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:187)
at
com.sap.engine.services.servlets_jsp.server.jsp.JavaCompiler.compileExternal(JavaCompiler.java:100)I myself fixed the problem.It was the problem with J2SE version.I had J2SE 1.3.But the J2EE beat2 supports only J2SE 1.3.1.So guys if any one of u is trying J2EE beta2 pls check with J2SE version u have.It has to be J2SE 1.3.1.I almost wasted 3 days in figuring out that.
-
Problem while compiling 'dll' files in Form Server..Urgent
Hi!
I'm trying to compile the library(dll) in form server and getting a message that "can not open that file".At the same time able to compile 'fmb' files which is in the same directory.
Could you please help me?
Thank you,
DenishI am also working on Forte. Forte has an inbuilt Tomcat. You dont need to copy any files to any where in the file mount system. You need to specify the External / Internal Browser settings, So that when you try to execute it, the .jsp file can be displayed in the browser. I havent faced any problem as you said.
Uma
http://www.javagalaxy.com -
How to Compile Jsp File in Class File , Protect my JSP from outworld
Hello Friends
My name is chandra prakash, I'm new for u. I've develop a web based software completely in JSP, some files are also written in Java Script. This software have aprox. 40 files --> 30 in JSP + 2 in Java Script + 8 image files .
Each JSP calls another. and run this on 58 clints machine simultaneusly. we used Oracle 9iAS as back end and Oracle9iAS web Server . Where we found less clients like 20-30 we use Tomcat 5.0 web server .Sir problem is this we don't wan't to leave our jsp source code on server.
Is any method or third party tool by which we can convert our JSP source file in CLASS file as like real class files provide by javac.
For this perpose we make a folder and put all files in it. Create a context on Tomcat for this folder.Create a data source for this in tomcat. Bcase this program uses Data source and connect many times to database & fetches many type of data from database. We use servlet files of tomcat for this context in WORK folder of Tomcat. and after that rename our Source file Folder. and again run our program through batch file i'm strange program runs 2-3 steps, after few times it start producing errors.
Sir do u hava work on this field can u help me to protect this JSP source code.
I've Use Jikes.com compiler but not get any succes, It may be i'm not using correctly .
Pls sir give me any suggesition.
Chandra prakash1. Highlight your web project or the individual file
2. Right click
3. Select Rebuild to build all jsp files or Make to rebuilt only changed files -
Problem while compiling JSP in FORTE
Hello Friends,
I am using Fore for Java 4 Community Edition, I have created a web module. I am using internal tomcat 4.0 server. When I request for a JSP which has a bean or a class file stored in the WEB-INF\classes folder either using useBean tag or if try to create an object of that class, I get compilation error as forte is not including those classes in its classpath. But when I deploy the same application on external tomcat, it works fine. Even after I mount the classes folder in the project, it doesn't solve the purpose. Please help me to get rid of this problem. My directory structure is as follows.
root - jsp and html files
root\WEB-INF\web.xml
root\WEB-INF\classes - all class files
root\WEB-INF\lib - lib jarsI am also working on Forte. Forte has an inbuilt Tomcat. You dont need to copy any files to any where in the file mount system. You need to specify the External / Internal Browser settings, So that when you try to execute it, the .jsp file can be displayed in the browser. I havent faced any problem as you said.
Uma
http://www.javagalaxy.com -
Error while compiling JSP file from glassfish server
Hello, I have created a single page with only one text box using Netbeans and Visual Web Pack and deployed it on to Glassfish Build44 server. Deployed okay. But when I try to open the page I get the following error. But the same project when I create on studio creator and deploy to Sun java App Server that comes with creator, it works fine. Any help would be really useful.
Error:
ApplicationDispatcher[MAReports] PWC1231: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /Page1.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression.
I have tried 2 diff version of jdk1.5.0_06 and jdk1.5.0_12. No use. It is all running under win env. I saw couple google hits on this error. But no real solution that I could see.
Thanks in Advance.Hi,
I had the same problem i think:
PWC1406: Servlet.service() for servlet Faces Servlet threw exception com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /login.jsp(5,60) PWC6341: According to the TLD, deferred-value is specified for the attribute id of the tag handler com.sun.webui.jsf.component.PageTag, but the argument for the setter method is not a javax.el.ValueExpression at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559) at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290) at .............
I work on GlassFish v2 running on ubuntu server, I develop from netbeans 5.5.1 on windows xp.
I resolved the problems in the war file of my application, the lib directory as some library missing, and some seem do not work correctely. I dont know precicely the problemes. but i resolve it copynig and past lib directory from another working project.
The problemes seem to be in the war lib this what i can tell.
sorry for my english
Regards, and good job!!! -
Ergent problem with the jsp file access in tomcat. HELP...
I use tomcat as my server, I have one JSP file located in :
webapps\abc\war\WEB-INF\jsp\index.jsp
You see my project name is abc, I want to access the index.jsp file, I define another jsp file in the path: webapps\abc callled outside.jsp. I want to use outside.jsp to invoke the index.jsp.
Inside outside.jsp it is :
<html>
<head>
<title>index</title>
</head>
<body>
<%@ include file="war/WEB-INF/jsp/index.jsp" %/>
</body>
</html>
When I open the browser, and access, http://localhost:8080/abc/outside.jsp , the content of index.jsp was shown as expect. But, all the link pages of the index.jsp can not shown (PS: the link pages is located in the same path as index.jsp, they are all jsp files). I guess the problem may be that the <%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file. Is there any method to make all the link pages of index.jsp can be shown when call from outside.jsp???HELP
Message was edited by:
Mellon
Message was edited by:
MellonI don't know why your links can't be shown, but I can tell you that your suspect:
I guess the problem may be that the <%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file.is wrong, because included jsp is dynamic, not static.
Maybe you are looking for
-
Ability to duplicate objects in transaction tab
I am using Solution Manager 3.2. I am building "worksteps" (sequecing transactions and programs) in to the transaction tab at the business process step level. Currently, if I attempt to add an object (transaction or program) more that once, I get th
-
Error in Checking in & storing files
Hi All, I have created an RFC that creates DMS document using BAPI_DOCUMENT_CREATE2. CALL FUNCTION 'BAPI_DOCUMENT_CREATE2' EXPORTING DOCUMENTDATA = BAPI_DOC_DRAW2 PF_FTP_DEST = 'SAPFTPA' PF_HTTP_DEST
-
Can I run OS X 10.6 on the latest Mac Mini?
I am in the middle of a Digidesign Protools ver. 8.05 audio project running on a Mac Mini (2007 vintage) and it has become less than reliable (Combo drive has died, sometimes no 'chimes' and just grey screen... doesn't boot). I am looking to replace
-
Exporting to Dedicated Encoder
I am researching the possibility of changing my groups editing workflow. Right now we are doing almost all of our editing on one machine. As more projects come in we are having trouble with only having the one high end machine. The other issue is tha
-
ACE Module support loadbalance rmi, ajp, jms, etc?
Hello, Do you know if ACE Module support balance the follow protocols: 1. rmis 2. ajp 3. jms 4. IIOP 5. CORBA 6. IIOPS I know that ACE module support http, https and tcp/udp port. Best Regards