HELP!: JSP compile options ignored
Can anyone tell me why my JSP compile settings in weblogic.properties
get ignored?
I've got the following settings in the weblogic.properties:
===============================================
<SNIP>
weblogic.httpd.register.*.jsp=\
weblogic.servlet.JSPServlet
weblogic.httpd.initArgs.*.jsp=\
keepgenerated=true,\
pageCheckSeconds=1,\
compileCommand=/usr/java1.2/bin/javac,\
workingDir=/export/home/weblogic/webapps/fooapp/WEB-INF,\
verbose=false
weblogic.httpd.defaultWebApp=/export/home/weblogic/webapps/fooapp
<SNIP>
===============================================
When I run weblogic, and request a JSP I see the following on the console:
===============================================
<SNIP>
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp: init
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param verbose initialized to: true
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param packagePrefix initialized to: jsp_servlet
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param compileCommand initialized to: javac
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param srcCompiler initialized to weblogic.jspc
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param superclass initialized to null
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param workingDir initialized to:
/export/home/weblogic/webapps/fooapp/_tmp_war
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
param pageCheckSeconds initialized to: 1
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
initialization complete
Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
pageCheckSeconds over-ruled in JSPServlet to : 1
<SNIP>
===============================================
Notice that none of my settings made it in!
Any help appreciated.
James
James
I'm not sure why the properties don't get set from your weblogic.properties
file definitions, but try adding <context-param> definitions for the
weblogic properties in question to your web.xml file. Below is a code
snippet of an example of some properties that we added to our web.xml file.
The <context-param> definitions should be added in front of your <servlet>
definitions. See the BEA online documentation for Developing a Web
Application at
http://www.weblogic.com/docs51/classdocs/webappguide.html#createdd for a
description of the context parameter property names..
<context-param>
<param-name>weblogic.jsp.compileCommand</param-name>
<param-value>/jdk1.2.2/bin/javac.exe</param-value>
</context-param>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<!-- compileCommand initArg to JSPServlet -->
<context-param>
<param-name>weblogic.jsp.compileCommand</param-name>
<param-value>javac</param-value>
</context-param>
<!-- verbose initArg to JSPServlet -->
<context-param>
<param-name>weblogic.jsp.verbose</param-name>
<param-value>true</param-value>
</context-param>
<!-- packagePrefix initArg to JSPServlet -->
<context-param>
<param-name>weblogic.jsp.packagePrefix</param-name>
<param-value>jsp_servlet</param-value>
</context-param>
<!-- keepgenerated initArg to JSPServlet -->
<context-param>
<param-name>weblogic.jsp.keepgenerated</param-name>
<param-value>true</param-value>
</context-param>
<!-- pageCheckSeconds initArg to JSPServlet -->
<context-param>
<param-name>weblogic.jsp.pageCheckSeconds</param-name>
<param-value>1</param-value>
</context-param>
John J. Feigal Voice (651)766-8787 (main)
Sr. Technical Consultant (651)766-7249 (direct)
Ensodex, Inc. Fax (651)766-8792
4105 N. Lexington Ave., Suite 150 email [email protected]
Arden Hills, MN 55126 WebSite http://www.ensodex.com
"James House" <[email protected]> wrote in message
news:[email protected]...
> Can anyone tell me why my JSP compile settings in weblogic.properties
> get ignored?
> I've got the following settings in the weblogic.properties:
>
> ===============================================
> <SNIP>
> weblogic.httpd.register.*.jsp=\
> weblogic.servlet.JSPServlet
> weblogic.httpd.initArgs.*.jsp=\
> keepgenerated=true,\
> pageCheckSeconds=1,\
> compileCommand=/usr/java1.2/bin/javac,\
> workingDir=/export/home/weblogic/webapps/fooapp/WEB-INF,\
> verbose=false
> weblogic.httpd.defaultWebApp=/export/home/weblogic/webapps/fooapp
> <SNIP>
> ===============================================
>
> When I run weblogic, and request a JSP I see the following on the console:
>
> ===============================================
> <SNIP>
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
init
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param verbose initialized to: true
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param packagePrefix initialized to: jsp_servlet
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param compileCommand initialized to: javac
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param srcCompiler initialized to weblogic.jspc
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param superclass initialized to null
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param workingDir initialized to:
> /export/home/weblogic/webapps/fooapp/_tmp_war
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> param pageCheckSeconds initialized to: 1
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> initialization complete
> Wed Nov 15 12:29:55 MST 2000:<I> <WebAppServletContext-General> *.jsp:
> ######
> ########
> ############
> ##############
> pageCheckSeconds over-ruled in JSPServlet to : 1
> ##############
> ############
> ########
> ######
> <SNIP>
> ===============================================
>
> Notice that none of my settings made it in!
> Any help appreciated.
>
> James
>
Similar Messages
-
My question is pretty simple, how do I turn of jsp pre-compilation in JDev?
thanks,Some notes on compiling JSPs with OJSPC and Ant:
OJSPC : File not found
success
Jan Vervecken -
All,
I am working with R12-iStore. As per metalink link note: 458338.1, I have enabled automatic JSP compilation. Bounced all services.
After logging into iStore then when I click on Profile link, blank page displayed.
ibeCAcpProfMenuHome.jsp -> This is the JSP file which is used for Profile page. This page exists in $OA_HTML & class file in $COMMON_TOP/_pages directory.
The above profile jsp page contains the following JSPs. These files are there in $OA_HTML directory but the classe files are not there in $COMMON_TOP/_pages directory.
1) ibeCZzpHeader.jsp
2) jtfincl.jsp
My question is , do I need to compile them to fix this issue even though auto JSP compilation option is enabled ?
is this auto compilation doesn't compile the pages while loading or accessing ??
Thanks,Hi Hussein,
I have checked the log file. It looks like , the bounce was proper.
Also, I have raised SR with ORacle Support.. lets hope we get some good solution.
================================================================================
04/03/09-16:10:34 :: adapcctl.sh version 120.6.12000000.4
04/03/09-16:10:34 :: adapcctl.sh: stopping OPMN managed OHS instance
opmnctl: stopping opmn managed processes...
04/03/09-16:10:36 :: adapcctl.sh: exiting with status 0
================================================================================
04/03/09-16:10:48 :: adapcctl.sh version 120.6.12000000.4
04/03/09-16:10:48 :: adapcctl.sh: starting OPMN if it is not running
opmnctl: opmn is already running.
04/03/09-16:10:48 :: adapcctl.sh: starting OPMN managed OHS instance
opmnctl: starting opmn managed processes...
04/03/09-16:10:51 :: adapcctl.sh: exiting with status 0
================================================================================ -
Hi,
Could someone please help on the above mentioned?
I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
<%@ page contentType="text/html;charset=UTF-8"%>
at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
Error: (0) sun.io.MalformedInputException.
Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
Warning: (0) ISO-8859-1 character set may not match project compiler setting.
C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
I do appreciate your help on this. Thank you.Here's some info one of the JSP Developers sent me:
1. HELP.....!!!!! Chinese jsp compilation problem.....
The customer is trying to parse a document generated by
Windows's notepad. When saved in UTF-8, the byte
order mark is saved too. We have a know bug that
JSP parser doesn't recognize Byte Order Mark. The
bug is : 1915285.
2. CHINESE CHARACTER ON JSP
. SQLPLUS depends on NLS_LANG setting. If you
check the windows registry, the default of NLS_LANG
depends on the OS. The user environment is Traditional
Chinese, so does NLS_LANG. If we set NLS_LANG
to .UTF8, SQLPLUS dumps the data in UTF8, however,
the command prompt will have problem displaying them.
. For JSP, as mentioned in a previous mail:
<%@ page contentType="text/html;charset=UTF-8" %> for all languages
<%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
<%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
. When you enter Chinese characters on a browser,
the data is automatically converted to page encoding
(UTF-8 in your case) before sent back to the server.
But your receiving servlet/JSP needs to have request
encoding set correctly.
I'm not sure about the JDeveloper environment,
but here is a simple JSP you may try to verify your
OC4J environment:
a. To set up the schema:
connect scott/tiger
create table tab01(col varchar2(100));
b. Edit the connect string in nls.jsp
c. Run the nls.jsp in oc4j instance.
<!-- nls.jsp -->
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
<HTML>
<HEAD>
<TITLE>Hello</TITLE></HEAD>
<BODY>
<%
request.setCharacterEncoding("UTF-8");
String sampledata="\u7D20";
String paramValue = request.getParameter("myparam");
String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
String user = "scott";
String passwd = "tiger";
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(connStr, user, passwd);
if (paramValue == null || paramValue.length() == 0) { %>
<FORM METHOD="GET">
Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
value="<%=sampledata%>" size=20>
<BR>
<INPUT TYPE="SUBMIT" value="Insert Data">
</FORM>
<%
selectData(conn, out);
else
%>
<H1> Insert Data: <%= paramValue %> </H1>
<br/>
<%
insertData(conn, paramValue);
%>
<a href="nls.jsp">back</a>
<%
%>
</BODY>
</HTML>
<%!
public void insertData(Connection aConn, String myval)
try {
PreparedStatement stmt = aConn.prepareStatement("insert into tab01
values(?)");
stmt.setString(1, myval);
stmt.executeUpdate();
aConn.close();
catch (SQLException e) {
e.printStackTrace();
public void selectData (Connection aConn, JspWriter out)
try {
Statement stmt = aConn.createStatement( );
ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
out.println("<H1>List of Data:</H1>");
while (r.next()) {
out.println(r.getString(1)+"<br/>");
aConn.close();
catch (SQLException e) {
e.printStackTrace();
catch (IOException e) {
e.printStackTrace();
%> -
My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please
Try a reset:
Hold the Sleep and Home button down for about 10 second until you see the Apple logo. -
Java compiler options with JSP
Is there any way to specify compiler options to use with the JSP compiler through weblogic.properties? I'd like to get the JSPs compiled with the -g option. Thanks.
Mike
How about add
J=-g
to "weblogic.httpd.initArgs.*.jsp"?
Jong
"Michael Gilbode" <[email protected]> wrote:
>
>Is there any way to specify compiler options to use with the JSP compiler through weblogic.properties? I'd like to get the JSPs compiled with the -g option. Thanks.
>
>Mike
-
Good Afternoon,
My database is acting up. It has come up with a JSP compile Error. This is the error it comes up with.
Compilation of 'C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java' failed:
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:357: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:358: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:359: illegal start of expression
(No more information available, probably caused by another error)
this is my code that it is trying to read:
/* compiled from JSP: /webclient/login/login.jsp
* This code was automatically generated at 5:51:57 PM on Jul 19, 2008
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
package jsp_servlet._webclient._login;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import psdi.util.*; //[ /webclient/login/login.jsp; Line: 1]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client
(if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's
implementation class (i.e., 'this')
* This code was automatically generated at 5:51:57 PM on Jul 19, 2008
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
* Copyright (c) 2008 by BEA Systems, Inc. All Rights Reserved.
public final class __login
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
//[ /webclient/common/constants.jsp; Line: 1]
static final String READ_ONLY_TAB_INDEX="-1"; //[
/webclient/common/constants.jsp; Line: 2]
static final String READ_ONLY_DEFAULT_FOCUS="false"; //[
/webclient/common/constants.jsp; Line: 3]
static String FIELD_FOCUS_COLOR="#F5F0D5"; //[
/webclient/common/constants.jsp; Line: 4]
static final String FIELD_FOCUS_READ_ONLY_COLOR="#CCC18E"; //[
/webclient/common/constants.jsp; Line: 5]
//common constants //[ /webclient/common/constants.jsp; Line: 6]
static final String IMAGE_PATH = "../webclient/images/"; //[
/webclient/common/constants.jsp; Line: 7]
static final String DESIGNER_IMAGE_PATH =
"../webclient/images/designer/"; //[ /webclient/common/constants.jsp; Line: 8]
//[ /webclient/common/constants.jsp; Line: 9]
//For "section", "sectionrow" and "sectioncol" controls //[
/webclient/common/constants.jsp; Line: 10]
static final String SECTION_HEADER_SUFFIX = "_header"; //[
/webclient/common/constants.jsp; Line: 11]
static final String SECTION_LABEL_SUFFIX = "_label"; //[
/webclient/common/constants.jsp; Line: 12]
static final String SECTION_CONTENT_SUFFIX = "_content"; //[
/webclient/common/constants.jsp; Line: 13]
static final String SECTION_TABLE_SUFFIX = "_table"; //[
/webclient/common/constants.jsp; Line: 14]
static final String SECTION_FOOTER_SUFFIX = "_footer"; //[
/webclient/common/constants.jsp; Line: 15]
//[ /webclient/common/constants.jsp; Line: 16]
//Default values for control properties //[
/webclient/common/constants.jsp; Line: 17]
//For table //[ /webclient/common/constants.jsp; Line: 18]
static final int CONST_TABLE_debug = 0; //[
/webclient/common/constants.jsp; Line: 19]
static final String
CONST_TABLE_PROPERTY_beanclass="psdi.webclient.system.beans.DataBean"; //[ /webclient/common/constants.jsp; Line: 20]
static final int CONST_TABLE_PROPERTY_maxrows = 1000; //[
/webclient/common/constants.jsp; Line: 21]
static final int CONST_TABLE_PROPERTY_rowsperpage = 50; //[
/webclient/common/constants.jsp; Line: 22]
static final int CONST_TABLE_PROPERTY_headerheight = 50; //[
/webclient/common/constants.jsp; Line: 23]
static final int CONST_TABLE_PROPERTY_rowheight = -1; //[
/webclient/common/constants.jsp; Line: 24]
static final String L_CONST_TABLE_PROPERTY_norowmsg = "No rows to
display."; //[ /webclient/common/constants.jsp; Line: 25]
static final String CONST_TABLE_PROPERTY_selectmode = "multiple"; //[
/webclient/common/constants.jsp; Line: 26]
static String CONST_TABLECOL_PROPERTY_headerlabel = null; //[
/webclient/common/constants.jsp; Line: 27]
//for tablecol //[ /webclient/common/constants.jsp; Line: 28]
static final String CONST_TABLECOL_PROPERTY_type = "data"; //[
/webclient/common/constants.jsp; Line: 29]
static final String CONST_TABLECOL_PROPERTY_VALUE_TRUE = "true"; //[
/webclient/common/constants.jsp; Line: 30]
static final String CONST_TABLECOL_CONTROL_PROPERTY_DEFAULT_ID =
"tAbLeCoL_fIeLd"; //[ /webclient/common/constants.jsp; Line: 31]
//For tablebody //[ /webclient/common/constants.jsp; Line: 32]
static final String CONST_TABLEBODY_PROPERTY_displayrowsperpage =
"11"; //[ /webclient/common/constants.jsp; Line: 33]
static final String L_CONST_TABLEBODY_PROPERTY_filterlabel =
"Filter"; //[ /webclient/common/constants.jsp; Line: 34]
//[ /webclient/common/constants.jsp; Line: 35]
//For "table" control //[ /webclient/common/constants.jsp; Line: 36]
static final String TABLE_TITLE_SUFFIX = "_title"; //[
/webclient/common/constants.jsp; Line: 37]
static final String TABLE_ICON_COLLAPSE_SUFFIX = "_icon_collapse";
//[ /webclient/common/constants.jsp; Line: 38]
static final String TABLE_CONTAINER_SUFFIX = "_container"; //[
/webclient/common/constants.jsp; Line: 39]
static final String TABLE_DOWNLOAD_SUFFIX = "_download"; //[
/webclient/common/constants.jsp; Line: 40]
static final String TABLE_HELP_SUFFIX = "_help"; //[
/webclient/common/constants.jsp; Line: 41]
static final String TABLE_HEADER_SUFFIX = "_header"; //[
/webclient/common/constants.jsp; Line: 42]
static final String TABLE_HEADER_ICON_PREVROW_ON_SUFFIX =
"_prevrow_on"; //[ /webclient/common/constants.jsp; Line: 43]
static final String TABLE_HEADER_ICON_PREVROW_OFF_SUFFIX =
"_prevrow_off"; //[ /webclient/common/constants.jsp; Line: 44]
static final String TABLE_HEADER_ICON_NEXTROW_ON_SUFFIX =
"_nextrow_on"; //[ /webclient/common/constants.jsp; Line: 45]
static final String TABLE_HEADER_ICON_NEXTROW_OFF_SUFFIX =
"_nextrow_off"; //[ /webclient/common/constants.jsp; Line: 46]
static final String TABLE_HEADER_ICON_PREVPAGE_ON_SUFFIX =
"_prevpage_on"; //[ /webclient/common/constants.jsp; Line: 47]
static final String TABLE_HEADER_ICON_PREVPAGE_OFF_SUFFIX =
"_prevpage_off"; //[ /webclient/common/constants.jsp; Line: 48]
static final String TABLE_HEADER_ICON_NEXTPAGE_ON_SUFFIX =
"_nextpage_on"; //[ /webclient/common/constants.jsp; Line: 49]
static final String TABLE_HEADER_ICON_NEXTPAGE_OFF_SUFFIX =
"_nextpage_off"; //[ /webclient/common/constants.jsp; Line: 50]
//static final String TABLE_FILTER_ICON_EXPAND =
"_filter_icon_expand"; //[ /webclient/common/constants.jsp; Line: 51]
//static final String TABLE_FILTER_ICON_COLLAPSE =
"_filter_icon_collapse"; //[ /webclient/common/constants.jsp; Line: 52]
static final String TABLE_FILTER_ACTIONS_SUFFIX = "_filter_actions";
//[ /webclient/common/constants.jsp; Line: 53]
static final String TABLE_FILTER_SUFFIX = "_filter"; //[
/webclient/common/constants.jsp; Line: 54]
static final String TABLE_CLEARFILTER_SUFFIX = "_clearfilter"; //[
/webclient/common/constants.jsp; Line: 55]
static final String TABLE_HEADER_ROW_SUFFIX = "_heder_row"; //[
/webclient/common/constants.jsp; Line: 56]
static final String TABLE_HEADER_LABEL_SUFFIX = "_heder_label"; //[
/webclient/common/constants.jsp; Line: 57]
static final String TABLE_CONTENT_HEADER_SUFFIX = "_content_header";
//[ /webclient/common/constants.jsp; Line: 58]
static final String TABLE_CONTENT_HEADER_RESIZE_SUFFIX =
"_content_header_resize"; //[ /webclient/common/constants.jsp; Line: 59]
static final String TABLE_CONTENT_SUFFIX = "_content"; //[
/webclient/common/constants.jsp; Line: 60]
static final String TABLE_CONTENT_TABLE = "_content_table"; //[
/webclient/common/constants.jsp; Line: 61]
static final String TABLE_NOROW_MSG_SUFFIX = "_norowmessage"; //[
/webclient/common/constants.jsp; Line: 62]
static final String TABLE_FILTER_ROW_SUFFIX = "_filter_content"; //[
/webclient/common/constants.jsp; Line: 63]
static final String TABLE_TEMPLATE_ROW_SUFFIX = "_template_content";
//[ /webclient/common/constants.jsp; Line: 64]
static final String TABLE_ROW_DETAILS_SUFFIX = "_rowdetails"; //[
/webclient/common/constants.jsp; Line: 65]
static final String TABLE_BUTTONS_SUFFIX = "_buttons"; //[
/webclient/common/constants.jsp; Line: 66]
//[ /webclient/common/constants.jsp; Line: 67]
static final long TABLE_EXPANDED = 1; //is the table expanded
(visible) //[ /webclient/common/constants.jsp; Line: 68]
static final long TABLE_AT_FIRST_PAGE = 2; //is the table at the
first page //[ /webclient/common/constants.jsp; Line: 69]
static final long TABLE_AT_LAST_PAGE = 4; //is the table at the
last page //[ /webclient/common/constants.jsp; Line: 70]
static final long TABLE_AT_FIRST_ROW = 8; //is the table at the
first row (of all possible rows) //[ /webclient/common/constants.jsp;
Line: 71]
static final long TABLE_AT_LAST_ROW = 16; //is the table at the
last row (of all possible rows) //[ /webclient/common/constants.jsp; Line:
72]
static final long TABLE_FILTER_EXPANDED = 32; //is the table's
filter row expanded (visible) //[ /webclient/common/constants.jsp; Line: 73]
static final long TABLE_DETAILS_EXPANDED = 64; //is the table's
details expanded (visible) //[ /webclient/common/constants.jsp; Line: 74]
static final long TABLE_ROW_CHANGED = 128; //has the table changed
rows //[ /webclient/common/constants.jsp; Line: 75]
static final long TABLE_FILTERED = 256; //has the table been
filtered //[ /webclient/common/constants.jsp; Line: 76]
static final long TABLE_REFRESH_FILTER = 512; //does the filter
inputs need to be refreshed //[ /webclient/common/constants.jsp; Line: 77]
static final long TABLE_REFRESH_ROW = 1024; //does the current row
need to be refreshed //[ /webclient/common/constants.jsp; Line: 78]
static final long TABLE_REFRESH_ALL_ROWS = 2048; //does all the
table's rows need to be refreshed //[ /webclient/common/constants.jsp;
Line: 79]
static final long TABLE_ALL_SELECTED = 4096; //are all the tables
rows selected //[ /webclient/common/constants.jsp; Line: 80]
static final long TABLE_START_EMPTY = 8192; //are all the tables
rows selected //[ /webclient/common/constants.jsp; Line: 81]
static final long TABLE_USE_SUBSELECT = 16384; //does the table use
sub select mode //[ /webclient/common/constants.jsp; Line: 82]
static final long TABLE_SUBSELECT_ON = 32768; //is sub select mode
on for the table //[ /webclient/common/constants.jsp; Line: 83]
//[ /webclient/common/constants.jsp; Line: 84]
static final long TABLECOL_NOT_SORTED = 0; //[
/webclient/common/constants.jsp; Line: 85]
static final long TABLECOL_SORTED_ASC = 1; //[
/webclient/common/constants.jsp; Line: 86]
static final long TABLECOL_SORTED_DESC = 2; //[
/webclient/common/constants.jsp; Line: 87]
//[ /webclient/common/constants.jsp; Line: 88]
static final int TABLECOL_FILTERABLE_WILDCARDSEARCH = 0; //[
/webclient/common/constants.jsp; Line: 89]
static final int TABLECOL_FILTERABLE_EXACTSEARCH = 1; //[
/webclient/common/constants.jsp; Line: 90]
static final int TABLECOL_FILTERABLE_TEXTSEARCH = 2; //[
/webclient/common/constants.jsp; Line: 91]
static final int TABLECOL_FILTERABLE_NONESEARCH = 3; //[
/webclient/common/constants.jsp; Line: 92]
//[ /webclient/common/constants.jsp; Line: 93]
//For tablecol control //[ /webclient/common/constants.jsp; Line:
94]
static final String TABLECOL_CONTROL_PROPERTY_CLONEDTYPE =
"clonedfor"; //[ /webclient/common/constants.jsp; Line: 95]
static final String TABLECOL_CONTROL_PROPERTY_VALUE_FOR_FILTER =
"filter"; //[ /webclient/common/constants.jsp; Line: 96]
static final String TABLECOL_CONTROL_PROPERTY_VALUE_FOR_DATA =
"datarows"; //[ /webclient/common/constants.jsp; Line: 97]
static final String TABLECOL_FILTER_SUFFIX = "_filter_container"; //[
/webclient/common/constants.jsp; Line: 98]
static final String TABLECOL_DATA_SUFFIX = "_data_row"; //[
/webclient/common/constants.jsp; Line: 99]
static final String TABLECOL_ROW_DETAILS_ICON_EXPAND = "_expand"; //[
/webclient/common/constants.jsp; Line: 100]
static final String TABLECOL_ROW_DETAILS_ICON_COLLAPSE = "_collapse";
//[ /webclient/common/constants.jsp; Line: 101]
static final String TABLECOL_SELECT_ROW_SUFFIX = "_select"; //[
/webclient/common/constants.jsp; Line: 102]
static final String TABLECOL_PROPERTY_ID = "id"; //[
/webclient/common/constants.jsp; Line: 103]
static final String TABLECOL_CONTROL_PROPERTY_ID_CLONED_SUFFIX =
"_clone"; //[ /webclient/common/constants.jsp; Line: 104]
static final String TABLECOL_CONTROL_PROPERTY_ID_FILTER_SUFFIX =
"_filter_clone"; //[ /webclient/common/constants.jsp; Line: 105]
static final String TABLECOL_PROPERTY_INPUT_ID_SUFFIX = "_input"; //[
/webclient/common/constants.jsp; Line: 106]
static final String TABLECOL_SELECTALL_ICON_SUFFIX = "_selectall";
//[ /webclient/common/constants.jsp; Line: 107]
//[ /webclient/common/constants.jsp; Line: 108]
static final String TABLEBUTTONS_SUFFIX = "_buttons"; //[
/webclient/common/constants.jsp; Line: 109]
static final String TABLEBUTTON_LABEL_SUFFIX = "_button_label"; //[
/webclient/common/constants.jsp; Line: 110]
//[ /webclient/common/constants.jsp; Line: 111]
static final int QUERY_NONE = -1; //[
/webclient/common/constants.jsp; Line: 112]
static final int QUERY_ALL = -2; //[ /webclient/common/constants.jsp;
Line: 113]
static final int QUERY_KEY = -3; //[ /webclient/common/constants.jsp;
Line: 114]
static final int QUERY_ALL_BOOKMARKS = -4; //[
/webclient/common/constants.jsp; Line: 115]
//[ /webclient/common/constants.jsp; Line: 116]
static final int EVENT_CONTINUE = 2; //[
/webclient/common/constants.jsp; Line: 117]
//[ /webclient/common/constants.jsp; Line: 118]
static final int CONTROL_PROPERTY_TRANSLATE_FLAG = 1; //[
/webclient/common/constants.jsp; Line: 119]
static final int CONTROL_PROPERTY_GLOBAL_FLAG = 2; //[
/webclient/common/constants.jsp; Line: 120]
static final int CONTROL_PROPERTY_DBPERSIST_FLAG = 4; //[
/webclient/common/constants.jsp; Line: 121]
//[ /webclient/common/constants.jsp; Line: 122]
//For DATE DATE_TIME type controls //[
/webclient/common/constants.jsp; Line: 123]
static final int DATE_TIME_TOKENNUM_DAY = 0; //[
/webclient/common/constants.jsp; Line: 124]
static final int DATE_TIME_TOKENNUM_MONTH = 1; //[
/webclient/common/constants.jsp; Line: 125]
static final int DATE_TIME_TOKENNUM_YEAR = 2; //[
/webclient/common/constants.jsp; Line: 126]
static final int DATE_TIME_TOKENNUM_HOUR = 3; //[
/webclient/common/constants.jsp; Line: 127]
static final int DATE_TIME_TOKENNUM_MINUTE = 4; //[
/webclient/common/constants.jsp; Line: 128]
static final int DATE_TIME_TOKENNUM_SECOND = 5; //[
/webclient/common/constants.jsp; Line: 129]
//[ /webclient/common/constants.jsp; Line: 130]
//[ /webclient/common/constants.jsp; Line: 131]
// StaleIndicator interface
public boolean _isStale() {
weblogic.servlet.jsp.StaleChecker sci
=(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/webclient/login/login.jsp",
1206722144000L, "8.1.4.0", "America/Chicago")) return true;
if (sci.isResourceStale("/webclient/common/constants.jsp",
1120751470000L, "8.1.4.0", "America/Chicago")) return true;
return false;
public static boolean
_staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/webclient/login/login.jsp",
1206722144000L, "8.1.4.0", "America/Chicago")) return true;
if (sci.isResourceStale("/webclient/common/constants.jsp",
1120751470000L, "8.1.4.0", "America/Chicago")) return true;
return false;
private static void _writeText(ServletResponse rsp, JspWriter out,
String block, byte[] blockBytes) throws IOException {
if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)) {
out.print(block);
} else {
((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);
private static boolean _hasEncodingChanged(ServletResponse rsp) {
if (_WL_ORIGINAL_ENCODING.equals(rsp.getCharacterEncoding())) {
return false;
return true;
private static boolean WLENCODED_BYTES_OK = true;
private static final String WLORIGINAL_ENCODING = "UTF-8";
private static byte[] _getBytes(String block) {
try {
return block.getBytes(_WL_ORIGINAL_ENCODING);
} catch (java.io.UnsupportedEncodingException u) {
WLENCODED_BYTES_OK = false;
return null;
private final static String wlblock0 = "���";
private final static byte[] wlblock0Bytes = getBytes(wl_block0);
private final static String wlblock1 = "<HTML><HEAD><TITLE>";
private final static byte[] wlblock1Bytes = getBytes(wl_block1);
private final static String wlblock2 = "</TITLE>\r<META
content=\"Evrsoft First Page\"
name=GENERATOR>\r<SCRIPT>\r\tif(window.top.document!=document)\r\t{\r\t\twindow.top.document.location=document.location;\r\t}\r</SCRIPT>\r\r<META
http-equiv=content-type content=\"text/html; charset=UTF-8\"><LINK
\rhref=\"../css/maximo.css\" type=text/css rel=stylesheet><LINK
href=\"css/login.css\" \rtype=text/css rel=stylesheet>\r<SCRIPT
language=JavaScript src=\"../javascript/library.js\"></SCRIPT>\r\r<SCRIPT
language=JavaScript src=\"../javascript/maximo.js\"></SCRIPT>\r</HEAD>\r<BODY
class=bgpage onkeydown=\"javascript:enterkey(); event.cancelBubble=true;\"
\rstyle=\"BACKGROUND-IMAGE: url(images/bg_login_template.jpg)\">\r<TABLE
class=welcometo cellSpacing=0 cellPadding=0 width=\"80%\" border=0>\r
<TBODY>\r <TR>\r <TD noWrap>";
private final static byte[] wlblock2Bytes = getBytes(wl_block2);
private final static String wlblock3 =
"</TD></TR></TBODY></TABLE>\r<TABLE class=releasestamp cellSpacing=0 cellPadding=0 width=\"80%\"
border=0>\r <TBODY>\r <TR>\r <TD><!-- release
--></TD></TR></TBODY></TABLE>\r<TABLE class=companylogo cellSpacing=0 cellPadding=0
border=0>\r <TBODY>\r <TR>\r <TD vAlign=top><IMG
src=\"images/companylogo.gif\"> </TD></TR></TBODY></TABLE>";
private final static byte[] wlblock3Bytes = getBytes(wl_block3);
private final static String wlblock4 = "\r<TABLE class=languagelist
cellSpacing=0 cellPadding=0 border=0>\r <TBODY>\r <TR>\r <TD
class=\"languagetext languageheader\" colSpan=5><IMG height=18 \r
src=\"images/login_icon_language.gif\" width=17 align=absBottom> ";
private final static byte[] wlblock4Bytes = getBytes(wl_block4);
private final static String wlblock5 = "</TD></TR>\r <TR>\r <TD
class=\"languagecolumn languagetext languagetable\">";
private final static byte[] wlblock5Bytes = getBytes(wl_block5);
private final static String wlblock6 = "</TD>\r <TD
class=\"languagecolumn languagetext\">";
private final static byte[] wlblock6Bytes = getBytes(wl_block6);
private final static String wlblock7 = "<A class=languages
\rhref=\"javascript: selectLang(\'";
private final static byte[] _wl_block7Bytes = _getBytes(_wl_block7);
private final static String _wl_block8 = "\')\">";
private final static byte[] wlblock8Bytes = getBytes(wl_block8);
private final static String wlblock9 = "</A><BR>";
private final static byte[] wlblock9Bytes = getBytes(wl_block9);
private final static String wlblock10 = "<SPAN
class=selectedlang>";
private final static byte[] wlblock10Bytes =
getBytes(wl_block10);
private final static String wlblock11 = "</SPAN><BR>";
private final static byte[] wlblock11Bytes =
getBytes(wl_block11);
private final static String wlblock12 =
"</TD></TR></TBODY></TABLE>";
private final static byte[] wlblock12Bytes =
getBytes(wl_block12);
private final static String wlblock13 = "\r<TABLE class=mainbgtable
cellSpacing=0 cellPadding=0 border=0>\r <TBODY>\r <TR>\r <TD>\r
<TABLE class=inputheader cellSpacing=0 cellPadding=0 border=0>\r
<FORM name=loginform action=\"";
private final static byte[] _wl_block13Bytes =
_getBytes(_wl_block13);
private final static String _wl_block14 = "\" method=post>\r
<TBODY>\r <TR>\r <TD>";
private final static byte[] wlblock14Bytes =
getBytes(wl_block14);
private final static String wlblock15 = "</TD>\r <TD
control=\"true\"><INPUT class=\"input_parts text inputfield\" \r
onactivate=textbox_onactivate(this); id=username \r
ondeactivate=\"textbox_ondeactivate(this.parentElement, this);\" \r
size=15 value=\"";
private final static byte[] _wl_block15Bytes =
_getBytes(_wl_block15);
private final static String _wl_block16 = "\" name=username
mxpart=\"textbox\"> </TD></TR>\r <TR>\r <TD>";
private final static byte[] wlblock16Bytes =
getBytes(wl_block16);
private final static String wlblock17 = "</TD>\r <TD
control=\"true\"><INPUT class=\"input_parts text inputfield\" \r
onactivate=textbox_onactivate(this); id=password \r
ondeactivate=\"textbox_ondeactivate(this.parentElement, this);\" \r
type=password size=15 name=password mxpart=\"textbox\"> </TD></TR>\r
<TR>\r <TD> </TD>";
private final static byte[] wlblock17Bytes =
getBytes(wl_block17);
private final static String wlblock18 = "\r <TD
class=pushbutton id=loginbtn control=\"true\" mxpart=\"control\" \r ";
private final static byte[] wlblock18Bytes =
getBytes(wl_block18);
private final static String wlblock19 = "</TD>\r
<TD><IMG height=20 src=\"images/buttonright.gif\" width=9 \r
mxpart=\"right\"></TD></TR></TBODY></TABLE><INPUT \r
id=loginbutton_hidden style=\"VISIBILITY: hidden; HEIGHT: 20px\" \r
type=image src=\"\" border=0 name=login_hidden> </TD></TR><INPUT
id=login \r type=hidden value=true name=login> <INPUT
id=langcode type=hidden \r value=\"";
private final static byte[] _wl_block19Bytes =
_getBytes(_wl_block19);
private final static String _wl_block20 = "\" name=langcode>
</FORM></TBODY></TABLE></TD></TR>\r <TR>\r <TD>\r <TABLE
class=newuserheader cellSpacing=0 cellPadding=0 border=0><!--\r\t<tr>\r <td
valign=\"bottom\"><img src=\"images/login_icon_newuser.gif\"
width=\"17\" height=\"18\" align=\"absmiddle\"> ";
private final static byte[] wlblock20Bytes =
getBytes(wl_block20);
private final static String wlblock21 = " <a
id=\"selfreglink\" href=\'javascript:selfreg()\'>";
private final static byte[] wlblock21Bytes =
getBytes(wl_block21);
private final static String wlblock22 = "</a></td>\r
</tr>\r\t<-->\r <TBODY></TBODY></TABLE>\r <TABLE cellSpacing=0
cellPadding=0 border=0>\r <TBODY>\r
<TR></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!-- leave image for scrolling purposes
-->\r<DIV style=\"LEFT: 835px; WIDTH: 10px; POSITION: absolute; TOP:
415px\"><BR></DIV>\r<SCRIPT language=JavaScript>\r<!--\rvar
FIELD_FOCUS_COLOR=\"";
private final static byte[] _wl_block22Bytes =
_getBytes(_wl_block22);
private final static String _wl_block23 = "\";\r\tfunction
selfreg()\r\t{\r\t\tshowWait();\r\t\tdocument.location = \'";
private final static byte[] wlblock23Bytes =
getBytes(wl_block23);
private final static String wlblock24 = "\';\r\t}\r\t\r\tfunction
showWait()\r\t{\r\t\tdocument.body.scroll=\"no\";\r\t\twait =
document.createElement(\"<div id=\'wait_img\' width=\'2000\' height=\'2000\'
class=\'loginwait\' oncontextmenu=\'event.returnValue=false;\'
style=\'background-image:url(../images/wait.gif);cursor:wait;display:none;\'></div>\");\r\t\tif(wait)\r\t\t{\r\t\t\t//window.resizeTo(1024,
768);\r\t\t\t//window.moveTo(0,0);\r\t\t\tdocument.body.insertAdjacentElement(\"BeforeEnd\",wait);\r\t\t\twait.style.height=wait.parentElement.scrollHeight+document.body.clientHeight;\r\t\t\twait.style.width=wait.parentElement.scrollWidth+document.body.clientWidth;\r\t\t\twait.style.cursor=\"wait\";\r\t\t\twait.filters(0).opacity=\"10\";\r\t\t\twait.style.display=\"inline\";\r\t\t\tdocument.body.scroll=\"no\";\r\t\t\twait.style.zIndex=\"1000\";\r\t\t\tdocument.body.onkeydown=noKeys;\r\t\t}\r\t\telse\r\t\t{\r\t\t\tdocument.body.scroll=\"auto\";\r\t\t\tdocument.body.onkeydown=\"\";\r\t\t}\r\t}\r\rfunction
noKeys()\r{\r\tevent.cancelBubble=true;\r\tevent.returnValue=false;\r\treturn
false;\r}\r\rfunction
toggleCheckBox(el)\r{\r\r\tif(event.propertyName!=\'checked\')\r\t\treturn\r\r\tcbInputField=event.srcElement\r\r\tcbImage=document.getElementById(cbInputField.id+\"_image\")\r\r\tif(cbInputField.checked)\r\t{\r\t\tcbImage.src=\"cb_checked.gif\"\r\t}\r\telse\r\t{\r\t\tcbImage.src=\"cb_unchecked.gif\"\r\t}\r\r}\r\r\rfunction
enterkey()\r{\r \tif(event.keyCode == 13
)\r\t{\r\t\tevent.returnValue=false;\r\t\tclickbutton();\r\t}\r}\r\rfunction
clickbutton()\r{\r\tshowWait();\r\tdocument.getElementById(\"loginbutton_hidden\").click();\r}\r\rfunction
selectLang(incode)\r{\r\tdocument.loginform.langcode.value=incode;\r\tvar
loginHidden = document.getElementById(\"login\");\r\tif (loginHidden !=
null)\r\t\tloginHidden.removeNode();\r\tdocument.loginform.submit();\r}\r\rfunction loginFormLoaded()\r{\r\tfocusField=\'username\';\r ";
private final static byte[] wlblock24Bytes =
getBytes(wl_block24);
private final static String wlblock25 = "\r \talert(\"";
private final static byte[] _wl_block25Bytes =
_getBytes(_wl_block25);
private final static String _wl_block26 = "\");\r
\tfocusField=\'username\';\r ";
private final static byte[] wlblock26Bytes =
getBytes(wl_block26);
private final static String wlblock27 = "\r\t\t\talert(\'";
private final static byte[] wlblock27Bytes =
getBytes(wl_block27);
private final static String wlblock28 = "\');\r\t";
private final static byte[] wlblock28Bytes =
getBytes(wl_block28);
private final static String wlblock29 = "\r\twindow.scrollTo(550,
850);\r if (focusField==\'username\' ||
document.loginform.username.value == \"\")\r
{\r\t\tdocument.loginform.username.focus();\r\t\tdocument.loginform.username.select();\r\t}\r\telse
\r\t{\r\t\tif(focusField==\'password\' || document.loginform.password.value ==
\"\")\r\t\t{\r\t\t\tdocument.loginform.password.focus();\r\t\t\tdocument.loginform.password.select();\r\t\t}\r\t\telse\r\t\t\tdocument.getElementById(\"loginlink\").focus();\r\t}\r}\r\rwindow.onload
= loginFormLoaded;\r-->\r</SCRIPT>\r</BODY></HTML>\r\r";
private final static byte[] wlblock29Bytes =
getBytes(wl_block29);
public void _jspService(javax.servlet.http.HttpServletRequest
request, javax.servlet.http.HttpServletResponse response) throws
java.io.IOException, javax.servlet.ServletException
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application =
config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext =
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 131072, true);
response.setHeader("Content-Type", "text/html; charset=UTF-8");
out = pageContext.getOut();
JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block
response.setContentType("text/html;charset=UTF-8");
writeText(response, out, wl_block0, wlblock0Bytes);
//INCLUDE /webclient/common/constants.jsp //[
/webclient/login/login.jsp; Line: 1]
request.setCharacterEncoding("UTF-8"); String url = new
java.net.URL(new java.net.URL(request.getRequestURL().toString()),
request.getContextPath()+"/ui/login").toString(); psdi.util.MXSession s =
psdi.webclient.system.controller.RequestHandler.getMXSession(session); if
(psdi.webclient.system.websession.WebAppEnv.useAppServerSecurity() ||
s.isConnected()) { response.sendRedirect(url); return; } MXException
loginException = (MXException)session.getAttribute("loginexception");
String userName = request.getParameter("username"); if(userName==null)
userName=""; String passWord = requesThe ( was in the code
Here is the exact error message I am getting:
Compilation of 'C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java' failed:
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:357: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:358: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:359: illegal start of expression
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:365: ';' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:366: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:368: '{' expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:370: expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:372: expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:374: expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:376: expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:378: expected
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: invalid method declaration; return type required
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: ')' expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:380: illegal start of type
probably occurred due to an error in /webclient/login/login.jsp line 1:
���<%--
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:392: expected
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:393: 'catch' without 'try'
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:307: 'try' without 'catch' or 'finally'
(No more information available, probably caused by another error)
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:404: '}' expected
(No more information available, probably caused by another error)
Full compiler error(s):
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:357: ')' expected
out.print(String.valueOf("control_events%" mxevent="clientevent: clickbutton();"
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:358: ')' expected
controltype="pushbutton">>
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:359: illegal start of expression
<TABLE id=loginbtn_table tabIndex=0 cellSpacing=0 cellPadding=0
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:365: ';' expected
<TD
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:366: <identifier> expected
class="text pushbuttonmiddle pushbuttonmiddleback pushbutton_default"
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:368: '{' expected
mxpart="middle"><%=labels[7])); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: invalid method declaration; return type required
writeText(response, out, wl_block19, wlblock19Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: <identifier> expected
writeText(response, out, wl_block19, wlblock19Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:369: ')' expected
writeText(response, out, wl_block19, wlblock19Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:370: <identifier> expected
out.print(String.valueOf(langcode)); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: invalid method declaration; return type required
writeText(response, out, wl_block20, wlblock20Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: <identifier> expected
writeText(response, out, wl_block20, wlblock20Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:371: ')' expected
writeText(response, out, wl_block20, wlblock20Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:372: <identifier> expected
out.print(String.valueOf(labels[4])); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: invalid method declaration; return type required
writeText(response, out, wl_block21, wlblock21Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: <identifier> expected
writeText(response, out, wl_block21, wlblock21Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:373: ')' expected
writeText(response, out, wl_block21, wlblock21Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:374: <identifier> expected
out.print(String.valueOf(labels[5])); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: invalid method declaration; return type required
writeText(response, out, wl_block22, wlblock22Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: <identifier> expected
writeText(response, out, wl_block22, wlblock22Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:375: ')' expected
writeText(response, out, wl_block22, wlblock22Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:376: <identifier> expected
out.print(String.valueOf( FIELD_FOCUS_COLOR )); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: invalid method declaration; return type required
writeText(response, out, wl_block23, wlblock23Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: <identifier> expected
writeText(response, out, wl_block23, wlblock23Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:377: ')' expected
writeText(response, out, wl_block23, wlblock23Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:378: <identifier> expected
out.print(String.valueOf(url + "?event=loadapp&value=selfreg&login=selfreg" + (langcode == null ? "" : "&langcode=" + langcode))); //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: invalid method declaration; return type required
writeText(response, out, wl_block24, wlblock24Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: <identifier> expected
writeText(response, out, wl_block24, wlblock24Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:379: ')' expected
writeText(response, out, wl_block24, wlblock24Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:380: illegal start of type
if (loginException != null) { //[ /webclient/login/login.jsp; Line: 1]
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:392: <identifier> expected
writeText(response, out, wl_block29, wlblock29Bytes);
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:393: 'catch' without 'try'
} catch (Throwable __ee) {
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:307: 'try' without 'catch' or 'finally'
try { // error page try block
^
C:\bea\user_projects\domains\cbrebnsf\.\MAXIMOSERVER\.wlnotdelete\extract\MAXIMOSERVER_maximo_maximo\jsp_servlet\_webclient\_login\__login.java:404: '}' expected
^
34 errors
Sat Jul 19 17:51:57 CDT 2008
I have the code that it is trying to read on the first message. This was working early this morning and then this afternoon it came up with the errors. Nothing was changed. -
Re: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
First, Matt is correct, the regular expression tool is perfect for general text
substitution situations, and as a completely independent tool its use is not
restricted to migration situations (or file types for that matter).
Second, I sympathize with the unfortunate trouble you are experiencing due to
Jasper's (perhaps more strict) compilation, but in what way did the iMT
automated translation contribute to these inconsistencies that you cited?
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
The iMT does not generate any OnClick or onClick clauses per se. In a
translation situation, the only way "OnClick" would have been introduced was if
it had been part of the pre-existing project's "extraHTML" (which was written
by the original customer and just passed through unchanged by the iMT) or if it
was added manually by the post-migration developer.
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be
similar to the OnClick situation described above?
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
Again, the content tag would never have been generated by the iMT. There was no
equivalent in the NetDynamics world, so any content tags in your code must have
been introduced by your developers manually. Its a shame that jasper is so
particular, but the iMT could not help you out here even if we wanted to. The
constants that are used by the iMT are defined in
com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can see, the
only situation of a closing tag with any space in it is
public static final String CLOSE_EMPTY_ELEMENT = " />";
But that should not cause the type of problem you are referring to.
Mike
----- Original Message -----
From: Matthew Stevens
Sent: Thursday, September 06, 2001 10:16 AM
Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
Others will chime in for sure...I would highly recommend the Regex Tool from
the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
posted to the group (even recently) on directions and advantages of creating
your own RULES (rules file) in XML for arbitary batch processing of source.
matt
-----Original Message-----
From: weiguo.wang@b...
[mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174144234026000079108238073194105057099246073154180137239239223019162">weiguo.wang@b...</a>]
Sent: Thursday, September 06, 2001 12:25 PM
Subject: [iPlanet-JATO] sp3 jsp compiler problem
Matt/Mike/Todd,
We are trying to migrate to sp3 right now, but have had a lot of
issues with the new jasper compiler.
The following workaround has been employed to solve the issues:
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
As I see it, we have two options to go about solving this problem:
1. Write a script which will iterate through all the jsp files and
call jspc on them. Fix the errors manually when jspc fails. Jspc will
flag the line number where an error occurs.
2. Write a utility which scans the jsp files and fix the errors when
they are encountered. We should define what's an error and how to
correct it. It's best if we combine this with solution 1 since we
might miss an error condition.
Actually, there might be another option, which is seeking help from
you guys since you have better understanding of JATO and iAS. Can you
do anything to help us?
We would be happy to hear your thoughts.
At last, I would like to suggest modifying the moko tool so that
these rules are enforced and the generated JSPs work with the new
compiler. This is for the benefit of any new migration projects.
Thanks a lot.
Weiguo
[email protected]
Choose from 1000s of job listings!
[email protected]
[Non-text portions of this message have been removed]Thanks a lot Matt and Mike for your prompt replies.
I agree completely that iMT doesn't introduce the inconsistencies.
About the three cases I mentioned, the third one happens only in
manually created JSPs. So it has nothing to do with iMT. The first
two are mainly due to the existing HTML code, as you rightly pointed
out.
The reason I made the suggestion is since we know that case 1 and 2
won't pass the japser compiler in sp3, we have to do something about
it. The best place to do this, in my mind, is iMT. Of course, there
might be some twists that make it impossible or difficult to do this
kind of case manipulation or attribute discard.
Weiguo
--- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
Weiguo,
First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent
tool its use is not restricted to migration situations (or file types
for that matter).
>
Second, I sympathize with the unfortunate trouble you are experiencing due to Jasper's (perhaps more strict) compilation, but
in what way did the iMT automated translation contribute to these
inconsistencies that you cited?
>
1. Changed the case of the tag attribute to be the same as what's
defined in tld.
example: changed OnClick to onClick
The iMT does not generate any OnClick or onClick clauses per se. In a translation situation, the only way "OnClick" would have been
introduced was if it had been part of the pre-existing
project's "extraHTML" (which was written by the original customer and
just passed through unchanged by the iMT) or if it was added manually
by the post-migration developer.
>
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be similar to the OnClick situation described above?
>
>
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
Again, the content tag would never have been generated by the iMT. There was no equivalent in the NetDynamics world, so any content tags
in your code must have been introduced by your developers manually.
Its a shame that jasper is so particular, but the iMT could not help
you out here even if we wanted to. The constants that are used by the
iMT are defined in
com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can
see, the only situation of a closing tag with any space in it is
public static final String CLOSE_EMPTY_ELEMENT = " />";
But that should not cause the type of problem you are referring to.
Mike
----- Original Message -----
From: Matthew Stevens
Sent: Thursday, September 06, 2001 10:16 AM
Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
Weiguo,
Others will chime in for sure...I would highly recommend the Regex Tool from
the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
posted to the group (even recently) on directions and advantages of creating
your own RULES (rules file) in XML for arbitary batch processing of source.
>
matt
-----Original Message-----
From: weiguo.wang@b...
[mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174048139046">weiguo.wang@b...</a>]
Sent: Thursday, September 06, 2001 12:25 PM
Subject: [iPlanet-JATO] sp3 jsp compiler problem
Matt/Mike/Todd,
We are trying to migrate to sp3 right now, but have had a lot of
issues with the new jasper compiler.
The following workaround has been employed to solve the issues:
1. Changed the case of the tag attribute to be the same as
what's
defined in tld.
example: changed OnClick to onClick
2. Removed attributes which are not defined in tld.
example: escape attribute only defined in three tags
but in some pages, it's used although it's not defined as an
attribute
of certain tags. The jasper compiler doesn't like it.
3. In an end tag, there can't be any space.
example: </content > doesn't work. </content> works.
As I see it, we have two options to go about solving this problem:
>>
1. Write a script which will iterate through all the jsp files and
call jspc on them. Fix the errors manually when jspc fails. Jspc will
flag the line number where an error occurs.
2. Write a utility which scans the jsp files and fix the errors when
they are encountered. We should define what's an error and how to
correct it. It's best if we combine this with solution 1 since we
might miss an error condition.
Actually, there might be another option, which is seeking help from
you guys since you have better understanding of JATO and iAS. Can you
do anything to help us?
We would be happy to hear your thoughts.
At last, I would like to suggest modifying the moko tool so that
these rules are enforced and the generated JSPs work with the new
compiler. This is for the benefit of any new migration projects.
Thanks a lot.
Weiguo
[email protected]
Choose from 1000s of job listings!
[email protected]
Service.
>
>
>
[Non-text portions of this message have been removed] -
Originally I post it to weblogic.developer.interst. But I guess this may be a better space to post the JSP related question. Sorry for the double post
Hi, there,
I tried to use the weblogic.jspc to compile my JSP files for debug purpose. However, it doesn't give me detailed information.
For example, for JSP file test.jsp:
<%
out.println(5) // miss ; at the end
%>
If I use browser to access it, it will give the error information, like:
Compilation of ../public_html/jsp_servlet/_test.java' failed:
/weblogic/appserver/public_html/jsp_servlet/_test.java:74: Invalid type expression.
probably occurred due to an error in /test.jsp line 2:
out.println("4")
/weblogic/appserver/public_html/jsp_servlet/_test.java:76: Invalid declaration.
(No more information available, probably caused by another error)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
But if I use weblogic.jspc to compile it, it only tells you:
Exec failed .. exiting
That message is not helpful at all. I tried to use verbose option, it gave me more garbage information, like:
[jspc] parsing /usr/export/docroot/test.jsp:
[jspc] parsed test.jsp in 603 ms.
[jspc] generated java file /usr/export/docroot/test.java, invoking java compiler:
Exec failed .. exiting
Then what's the use of that JSP compiler? Is there anyway to get the same error inforamtion on the web page?
Thanks
This was fixed around service pack 6 in WL 5.1.
mike
Rob Woollen <[email protected]> wrote:
>It looks like it cannot find javac (or whatever java compiler you
>specified) in the path.
>
>-- Rob
>
>Lan wrote:
>>
>> Originally I post it to weblogic.developer.interst. But I guess this may be a better space to post the JSP related question. Sorry for the double post
>>
>> Hi, there,
>>
>> I tried to use the weblogic.jspc to compile my JSP files for debug purpose. However, it doesn't give me detailed information.
>>
>> For example, for JSP file test.jsp:
>> <%
>> out.println(5) // miss ; at the end
>> %>
>>
>> If I use browser to access it, it will give the error information, like:
>> Compilation of ../public_html/jsp_servlet/_test.java' failed:
>>
>> --------------------------------------------------------------------------------
>>
>> /weblogic/appserver/public_html/jsp_servlet/_test.java:74: Invalid type expression.
>> probably occurred due to an error in /test.jsp line 2:
>> out.println("4")
>>
>> /weblogic/appserver/public_html/jsp_servlet/_test.java:76: Invalid declaration.
>> (No more information available, probably caused by another error)
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
>>
>> But if I use weblogic.jspc to compile it, it only tells you:
>>
>> Exec failed .. exiting
>>
>> That message is not helpful at all. I tried to use verbose option, it gave me more garbage information, like:
>>
>> [jspc] parsing /usr/export/docroot/test.jsp:
>> [jspc] parsed test.jsp in 603 ms.
>> [jspc] generated java file /usr/export/docroot/test.java, invoking java compiler:
>> Exec failed .. exiting
>>
>> Then what's the use of that JSP compiler? Is there anyway to get the same error inforamtion on the web page?
>>
>> Thanks
-
Weblogic 9 and JSP compiler errors
Hello everyone,
I am having problems with my Jsps in my EAR file deployed on WL 9.0.
I have a Jsp called upms.jsp that contains the following code snippets:
After my import statements, I have some code that creates a resource bundle that accesses a properties file:
<%!
ResourceBundle bundle = null;
public void jspInit() {
bundle = ResourceBundle.getBundle("conf.properties");
%>
I get an error from the above code:
upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
import="java.util.ResourceBundle"
^----------------------^
I am totally clueless as to what that error means.
Next I declare a bean I use in the jsp:
<jsp:useBean
id="userPrefsManagerBean"
class="controllers.beans.UserPreferencesManagerBean"
scope="session">
</jsp:useBean>
<jsp:setProperty name="userPrefsManagerBean" property="*" />
I get these errors from the above portion:
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found '.' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
Has anyone encountered these before?
This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
Is there something I am missing here? I appreciate any help.
Cheers, :-)
M.Mildred,
Two suggestions:
1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
servlet's source code.
Please paste it here.
2) Can you create a simple reproducer(e.g. a war), and put it here, so that
we can debug it and give more clues.
To reproduce your issue, I write a simple a simple
UserPreferencesManagerBean classs below :
package controllers.beans;
public class UserPreferencesManagerBean {
private int p1;
public void setP1(int p)
p1 = p;
public int getP1()
return p1;
But it works(oh, I run it under 910MP1).
We cannot tell too much without your further information
Thanks
Leon
<Mildred A> wrote in message news:[email protected]...
I am still fighting with this issue.. Dang!
I don't know what to change in my JSP because the WL JSP compiler errors are
so out there..
Here is the first portion of the JSP file:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
session="true"
pageEncoding="ISO-8859-1"
import="java.util.ArrayList"
import="java.util.HashSet"
import="java.util.Date"
import="java.util.Collections"
import="java.util.ResourceBundle"
%>
<%!
ResourceBundle bundle = null;
public void jspInit() {
bundle = ResourceBundle.getBundle("conf.properties");
%>
<jsp:useBean
id="userPrefsManagerBean"
class="controllers.beans.UserPreferencesManagerBean"
scope="session">
</jsp:useBean>
<jsp:setProperty name="userPrefsManagerBean" property="*" />
Below is the error I get from this section alone (after precompiling):
upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
import="java.util.ArrayList"
^-----------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
fields.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found '.' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Expression expected (found 'catch' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Illegal use of an expression as a statement.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Illegal use of an expression as a statement.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: No variable or field with this name could be found at this
location.
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
<jsp:setProperty name="userPrefsManagerBean" property="*" />
^-------------^
Can anyone see what I am doing wrong here? ?:| ?:|
Cheers,
M -
How do I turn off JSP Compilation in jdeveloper 11g ?
I have set the params in weblogic.xml but jdeveloper seems to ignore it.
<jsp-descriptor>
<precompile>false</precompile>
<precompile-continue>true</precompile-continue>
</jsp-descriptor>
Also there was an option in 10g under Run Configurations to say "Run Project Despite Compiler Errors" how do I set this in 11g?
thanks in advance
ArunCan't seem to find the JSP option.
Project Properties --> Compiler has 3 options "Options" "SQLJ" and "XML"
I checked the technologies and Scope, Servlets and JSP is slelected and i can see the runtime libraries in the libraries section.
thanks
Arun -
JSP compiler reading the web.xml file?
Hi,
I am trying to use the weblogic JSP compiler (weblogic.jspc) to
pre-compile some JSP that use custom tags. Does the compiler
read the web.xml file if there is one? In particular the taglib
elements in that file so that the compiler understands the
<%@ taglib ... %> directive.
In the JSP I try to compile I use this statement to declare a taglib:
<%@ taglib uri="xyz/xyz-taglib" prefix="xyz" %>
and in my web.xml I have:
<taglib>
<taglib-uri>xyz/xyz-taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/xyz.tld</taglib-location>
</taglib>
When I try to compile the JSP I get the following error:
Could not parse embedded JSP code: weblogic.utils.ParsingException: nested
IOException: java.io.IOException: cannot resolve 'xyz/xyz-taglib' into a
valid tag library.
Any ideas how I can resolve this?
In advance thank you for any help.
Florian
open it in a text editor and modify it.
% -
JSP compilation errors in weblogic 6.1
I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
Full compiler error(s):
error: Invalid class file format:
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:34: Class
com.ford.redherring.model.PropertiesAttributesModel not found in import.
import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 64]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
not found in import.
import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
Line: 68]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
not found in import.
import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
Line: 69]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
not found in import.
import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
Line: 70]
^
/opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
eb/_jsp/_event/__eventForm.java:41: Class
com.ford.redherring.model.DDValidationModel not found in import.
import com.ford.redherring.model.DDValidationModel; <file://[>
/web/jsp/event/eventForm.jsp; Line: 71]
This appears to be a CLASSPATH problem (you are missing references to
'com.ford.redherring.model.*' and 'com.ford.redherring.util.*'). The
CLASSPATH may be set in the server startup script. Hope this helps.
Wade.
"Katri Alur" <[email protected]> wrote in message news:<[email protected]>...
> I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.
>
> ----------------------------------------------------------------------------
> ----
> Full compiler error(s):
> error: Invalid class file format:
>
>
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:34: Class
> com.ford.redherring.model.PropertiesAttributesModel not found in import.
> import com.ford.redherring.model.PropertiesAttributesModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 64]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:38: Class com.ford.redherring.util.DialogHeader
> not found in import.
> import com.ford.redherring.util.DialogHeader; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 68]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:39: Class com.ford.redherring.util.DialogFooter
> not found in import.
> import com.ford.redherring.util.DialogFooter; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 69]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:40: Class com.ford.redherring.model.DDContainer
> not found in import.
> import com.ford.redherring.model.DDContainer; <file://[> /web/jsp/event/eventForm.jsp;
> Line: 70]
> ^
> /opt/projects/redherring/beahome/wlserver6.1/config/mydomain/applica
> tions/.wlnotdelete/WEB-INF/_tmp_war_myserver_myserver_redherring/jsp_servlet/_w
> eb/_jsp/_event/__eventForm.java:41: Class
> com.ford.redherring.model.DDValidationModel not found in import.
> import com.ford.redherring.model.DDValidationModel; <file://[>
> /web/jsp/event/eventForm.jsp; Line: 71]
-
EAR and long CLASSPATH at JSP compilation time
Hi all,
we have an EAR-packaged application with over 260 jars (mainly
EJB) that is deployed to a managed server WL6.1SP3(AIX). Then
we hit a JSP page of this app. and Weblogic generates the
adecuate .java file that is passed as an argument to a forked
process for the javac compiler with a CLASSPATH that is more
than 22KB!! of length because of the EAR classloader schema
(it must include all the jars of the EJB level).
The problem is that the EAR deployment in WL6.1 generates a fixed and very long
path for every jar that it is composed of:
$WL_HOME/./config/DOMAIN/applications/.wl_notdelete_EARNAME
/wlap#####/ejbjarname.jar
and the invoke of the compiler fails with argument too long.
We can control the EJB jar name, EARNAME, WL_HOME
and DOMAIN to shorten the CLASSPATH, but that is not enough
giving that the fixed part of the PATH is very long, for example:
with DOMAIN=DOM1, WL_HOME=W, ejbjar name=EJB1, EARNAME=EAR1
you get:
/w/./config/DOM1/applications/.wl_notdelete_EAR1/wlap#####/EJB1.jar: that is
68 chars * 260 jars = more than 17KB only with the
EJB part of the CLASSPATH (plus the standard SYSTEM CLASSPATH
and WARS CLASSPATH.)
As workarounds we can:
1.- Use an "pseudo exploded" EAR with EJBREMOTE and EJBHOME in clientclasses path
with every jar and war by their own. Not very
clean and we've lost the benefits of EAR deployment.
2.- Consolidate a bunch of EJB in every jar. More administrative
tasks (common xml descriptors:ejb-jar.xml,...) and less isolation
between developer teams.
3.- Consolidate at functionality level (source) a bunch of EJB
in a few one. :(
4.- Precompile every JSP outside of WEBLOGIC and generate
the corresponding class and entries at web.xml and weblogic.xml
5.- ...?
or maybe:
6.- configure this very long directory of deployment
to a shorter deployer choosen and use relative paths.
Is this possible? :)
PacoG.
You may try to use JSP compiler class. Please specify 'compilerclass'
option in weblogic.xml. This option specifies name of a Java compiler
that is executed in WebLogic Servers's virtual machine. (Used in place of
an executable compiler such as javac or sj.)
Please see
http://e-docs.bea.com/wls/docs61/webapp/weblogic_xml.html#jsp-descriptor.
Paco Garcia wrote:
> oops!
>
> >$WL_HOME/./config/DOMAIN/applications/.wl_notdelete_EARNAME
> >/wlap#####/ejbjarname.jar
>
> >with DOMAIN=DOM1, WL_HOME=W, ejbjar name=EJB1, EARNAME=EAR1
> >you get:
> >/w/./config/DOM1/applications/.wl_notdelete_EAR1/wlap#####/EJB1.jar:
>
> please read SERVERNAME instead of EARNAME
>
> PacoG.
Regards,
Ann
Developer Relations Engineer
BEA Support
-
JSP compilation: code too large on SP14
Hello,
I developed EP application based on JSPDynPage on SP13 with big jsp file. This application was running on SP13 without problem.
Later, we upgraded to SP14 and application logged exception: "code too large" when compiling jsp.
I tried to devide the big jsp to several jsp, but problems remains the same.
I searched SDN. I tried set jsp.bigmode.delimit.size to 10000, 20000 and 1. Nothing helps.
I followed OSS Note:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/bc-jas/~form/handler{5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383230323832}
Best regards,
Josef MotlHi Detlev,
the OSS number is 820282. But I was unable to wiew this message on http://service.sap.com. So below I put snapshot of this message.
Regards,
Josef
Portal JSP compiler fails when code generated is too long
SAP Note Number: 820282
Symptom
In a few cases, the compilation of jsp files fails (if their size is very large) because the generated Java code exceeds the 65K limitation (per method) of SUN JVM or the system crashes when it tries to load a class file that was not correctly constructed (method size > 65K).
Other terms
JSP, Portal, too long, compilation, compiler, over size, try
Reason and Prerequisites
SUN JVM and othes do not support a method which has more than 65K of byte code.
Solution
The fix is available in +SP2 PL 31 and +EP6 SP11 Patch 2.
Once you have installed the fix, you need to edit the file irj\root\WEB-INF\portal\system\properties\prtCentral.properties.bak.
Check if the property "jsp.bigmode.delimit.size" is present. Otherwise add the line "jsp.bigmode.delimit.size=10000", rename the file to "prtCentral.properties" and restart the server.
The number is the limit size in bytes when the big jsp mode is enabled (you should therefore change the Java template generated from the jsp file to a size larger than the limit)
In rear cases where JSP files are including sources prior to their compilation you should set the parameter to a lower value. In the extreme case you can use jsp.bigmode.delimit.size=1 and enable the big mode jsp optimization for all files.
To deactive the big jsp mode, set jsp.bigmode.delimit.size=-1
Header Data
Release Status Released for Customer
Released on 21.07.2005
Priority Correction with medium priority
Category Advance development
Primary Component BC-JAS-PIN-PRT Portal Runtime
Maybe you are looking for
-
hi all , can we define credit limit in % for example , i have on automatic credti checy with 0 value default I have advance customer .. can i define 30 % advance in credit limit ..mean if the customer has not payed 30 % of the total sale order value
-
NSRangeException in system.log
I bought a new MacBook Pro for 2 weeks. I just noticed that the system.log keeps showing the following "warning" (maybe not a warning) message when I login/logout different users. Is there a security problem in my new MacBook Pro? Thanks Wayne Mar 17
-
BIll of Material (BOM)
Hi All, I would like to know how BOM(IDNRK - Material No.) available in (STPO table) is linked with Operation/Activity Number(VORNR) and Group Counter(PLNAL). Transaction Code IA07 Thanks, Pratibha
-
While checking any options in account assinment SRM the cost center disapp
Dear experts, Kindly help me in my issue. TIn the SRM portal ( SC ), while ordering for free text uner cost assignment - there is a section called account assignment overview - there is a drop down list which indicates whether it's a tax
-
Multicasting Using Virtual Distribution Point
For a while now I have been troubleshooting various problems related to multicasting with SCCM 2012 r2. My most recent hurdle has been overcoming awful multicast stream speeds. Production Distribution Points are Windows Server 2012 r2 virtualized on