I have an error in jsp file
hi group,,
i have an page directive error in JSP file.That is given in Weblogic8.1-->Devoloping EJBs documentation.The error is in import page .The directory structure is as follows
1)BandsExampleApp-->BandsExampleEJB-->Examples-- >examples-->ejb20-->relationships-->bands
2)BandsExampleApp-->webapp-->AddBand.jsp
The code is follows
<%@ page import='exaples.ejb20.relationships.bands.*'%>
what should i do to avoid the problem..plz tell the solution..
sunil
BandsExampleApp-->BandsExampleApp
JSP expects the IANA character set name. According to the IANA site the proper name is: UTF-8. Please try that instead of the UNICODE-1-1-UTF-8.
Note: OJSP uses sun.io.CharacterEncoding.aliasName() to convert from IANA to JDK character set names. I looked at the source code for this and it does contain a mapping for UTF-8 but not UNICODE-1-1-UTF-8. The error you are getting indicates a mapping doesn't exist when we make this call.
Similar Messages
-
I am facing some issue with the jsp using strut 2.1.8.1
My Jsp code is
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="html" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Onstar Forumz</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%@ include file="/header.jsp" %>
<html:form action="UserverifyAction" name="userForm" type="com.onstar.user.in.form.UserForm">
<html:text property="username" style="position:absolute;left:720px;top:271px;width:112px;font-family:Arial;font-size:16px;z-index:15" name="username" value="" ></html:text>
<html:password property="password" style="position:absolute;left:720px;top:302px;width:112px;font-family:Arial;font-size:16px;z-index:16" name="password" value="" ></html:password>
<div id="wb_Username" style="position:absolute;left:631px;top:276px;width:82px;height:16px;z-index:17;" align="left">
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>User name :</b></font></div>
<div id="wb_Password" style="position:absolute;left:631px;top:307px;width:82px;height:16px;z-index:18;" align="left">
<font style="font-size:13px" color="#FFFFFF" face="Arial"><b>Password : </b></font></div>
<div id="wb_signin" style="position:absolute;left:843px;top:304px;width:101px;height:23px;z-index:19;" align="left">
<input type="image" src="images/gold_sign.gif" id="signin" alt="" align="top" border="0" style="width:101px;height:23px;"></div>
</html:form>
<%@ include file="/footer.jsp" %>
</body>
</html>Error Message:
org.apache.jasper.JasperException: /index.jsp(15,0) Attribute property invalid for tag text according to TLD index.jsp is the name of the jsp file.
I have placed the struts2-core-2.1.8.1.jar in lib folder as well as well I have configured the buildpath with the jar file(struts2-core-2.1.8.1.jar)
Please help me...Thanks in Advance{I think we have a case here of trying to use the Struts1.2 tag libraries in Struts2.0
The tag libraries are quite different :-)
I believe the <s:textfield> tag is probably what was intended here?
Or install struts 1.2 instead of struts2 :-) -
Error 404, JSP file not found
Hello all
I am using tomcat on solaris. I have copied my war file under the webapps folder. When I start the tomcat services, it shows the messages for adding the context path for that war file, it also creates a folder for it under webapps but fails to show me any of the jsp pages. I can view all the html and gif files, but none of the jsps (gives the error - 404). If I rename my war file, and then start tomcat services, it works well. I don't want to rename my war file. Pls help!!
For further details - I have checked my server.xml file, and it is correct. There was an old version of the same folder under webapps, which I got rid off, but seems that somewhere it is still caching it.
In my server.xml file, if I do
<Context path="/first"
docBase="webapps/first"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
IT FAILS !! but if I just change the <Context path="/first1" , it works and does not give any error for jsp page. There isn't any contect path named "first" in my server.xml file.
Thanks in advance.
Regards
AnushaActually, I don't know how to create a subdirectory under webapps directory. When I tried to add a subdirectory calle myapp (.../webapps/myapp), I got "The requested URL /application/ was not found on this server" error message. Do I need to modify server.xml or web.xml in conf directory?
Thanks in advance!
tacomaZ -
Error opening JSP files in Netweaver Developer Studio
Hello,
When I try to open a *.jsp file in the Netweaver Developer Studio, I get the following error:
The ordinal 233 could not be located in the dynamic link library SHDOCVW.dll
When I click on OK for a couple of times (same message), I get the option to open the file.
Then this message:
Invalid or corrup jar file (with a reference to the jsp).
I can however open files with java extensions. It is also not project related, all jsp files react in the same way.
I am currently investigating what MS Windows service packs have been installed recently.
Does anyone know what it means or how this can be solved?
regards, William JackmanHello William,
Have you seen this note already ??
Microsoft security patch KB834707 side effects in NW. SAP Note 785308 -
Errors in JSP files, help.....
I have 2 questions:
1)
When i javac a java file, the following errors came out.
C:\>javac logon.java
logon.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
logon.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
2 errors
Anyone knows what does it means??? Any ways to solve this error??
2)
When i type http://localhost:8080/cdlist/cd_list.jsp at the IE address to view the file , the following error came out
org.apache.jasper.JasperException: This absolute uri (http://jakarta.apache.org/taglibs/xtags-1.0) cannot be resolved in either web.xml or the jar files deployed with this application
Can anyone please explain what it means and is there any ways to solve this error. Thankyou very much....Sorry but there seems to have another problem, while i run the file using tomcat this error came out:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 40 in the jsp file: /processLogon.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:153: ';' expected
routeURL = "frame.htm"
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:71: cannot resolve symbol
symbol : class logon
location: package logonBean
logonBean.logon logon = null;
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:73: cannot resolve symbol
symbol : class logon
location: package logonBean
logon = (logonBean.logon) pageContext.getAttribute("logon", PageContext.SESSION_SCOPE);
^
An error occurred at line: 19 in the jsp file: /processLogon.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\_\processLogon_jsp.java:76: cannot resolve symbol
symbol : class logon
location: package logonBean
logon = (logonBean.logon) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "logonBean.logon");
^
I was wondering, will tomcat javac the java file itself or do i need to javac it myself and put it in the root folder??? In this case i have javac the java file and i put the class file in root folder together with other files to run it, but there seems to still have errors while i try to run it. Pls help. -
Which folder i have to put my .jsp file for web report?
for web report(not the paper report) i put my .jsp files in the
\reports\j2ee\reports_ids\web
folder
this is for the DS(Developer Suite)
i'm trying to move this file to different machine where AS(Application Server)
is installed.
but couldn't find above path. where do i have to put .jsp file for
web report?
or do i have to modify in the registry? if so, where?
ThanksHello,
Take a look to the thread :
where to add new jsp reports directory location in path
"...You have to keep jsp files under document root that is OH/j2ee/OC4J_BI_Forms/applications/reports/web directory. You can create sufbolders under this directory and keep jsp files. ..."
Regards -
"LayoutTagLibrary" tag error in JSP file .
Dear All,
I am trying to implement Custom Framework Page in SAP NW Portal 7.3 with the help of the [DOCUMENT|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001bfa1a-958e-2e10-c2be-d914f673e21e?QuickLink=index&overridelayout=true]
I am getting an error in the FrameworkPageLayout.jsp file, Can not find the tag library descriptor for "LayoutTagLibrary
I added the SharingReference - com.sap.portal.pagebuilder Under Application tag
and LayoutTagLibrary - /SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld Under Component Profile tag.
But still, I am getting this error. How to resolve this?
Regards
Eben Joyson.Hi Detlev,
I modified my jsp page. but still I get the same error. Can not find the tag library descriptor for "prt:taglib:LayoutTagLibrary"
Should I need to add any jar file under the lib folder of the project? Help me to solve this issue. Only in NWDS 7.3 i am facing this issue. with NWDS 7.0, its working.
My JSP Code :
<%@ taglib uri="prt:taglib:LayoutTagLibrary" prefix="lyt"%>
<lyt:template eliminatemessagebar="true">
<lyt:container id="container" wrappingMethod="none">
</lyt:container>
</lyt:template>
My Portalapp.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<application alias="affs">
<application-config>
<property name="Vendor" value="sap.com"/>
<property name="SecurityArea" value="NetWeaver.Portal"/>
<property name="SharingReference" value="SAPJ2EE::library:com.sap.portal.themes.lafservice, com.sapportals.htmlb, com.sap.portal.navigation.api_service, com.sap.portal.pagebuilder, com.sap.portal.useragent, com.sap.portal.navigation.helperservice, com.sap.portal.navigation.afp.helperservice"/>
</application-config>
<components>
<component name="layout">
<component-config>
<property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
<property name="ResourceBundleName" value="pagebuilder_nls"/>
<property name="SafetyLevel" value="no_safety"/>
</component-config>
<component-profile>
<property name="ComponentType" value="com.sapportals.portal.layout"/>
<property name="com.sap.portal.pcm.Category" value="platform">
<property name="inheritance" value="final"/>
</property>
<property name="LayoutTagLibrary" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
<property name="com.sap.portal.reserved.layout.TemplateFile" value="FrameworkPageLayout.jsp"/>
<property name="com.sap.portal.reserved.layout.Cont1" value="container">
<property name="title" value="Content"/>
<property name="orientation" value="vertical"/>
</property>
<property name="com.sap.portal.page.builder.optimization.level" value="2"/>
<property name="AuthScheme" value="anonymous"/>
<property name="Title" value="AFP Layout"/>
<property name="EPCFLevel" value="1"/>
<property name="SupportedUserAgents" value="(*,*,*)">
<property name="validvalues" value="7/(*,*,*)"/>
</property>
</component-profile>
</component>
<component name="iview">
<component-config>
<property name="ClassName" value="com.customer.afp.fromscratch.FrameworkPageComponent"/>
<property name="SafetyLevel" value="no_safety"/>
</component-config>
<component-profile>
<property name="com.sap.portal.iview.ShowTray" value="false"/>
<property name="AuthScheme" value="anonymous"/>
<property name="EPCFLevel" value="1"/>
<property name="SupportedUserAgents" value="(*,*,*)">
<property name="validvalues" value="7/(*,*,*)"/>
</property>
</component-profile>
</component>
</components>
<services/>
</application> -
Hi...when I tried to access my JSp file from tomcat 4.1.27 web server, I got the following error message. Can anyone help me out?
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
import java;
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
private static java.util.Vector jspxincludes;
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
public java.util.List getIncludes() {
^
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expected
^
4 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)You JSP has four compile errors:
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:8: '.' expected
import java;Invalid import. You need to import a whole package (*) or single class.
import java; is wrong
import java.util.*; is right
import java.util.List; is right
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:80: illegal start of expression
private static java.util.Vector jspxincludes;
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:82: illegal start of expression
public java.util.List getIncludes() {Check the lines before these to make sure you didn't leave off a semi-colon, parens (')') or bracket ('}').
C:\Tomcat\work\Standalone\localhost\Tree\jspfiles\tree_jsp.java:280: '}' expectedYou are missing a closing bracket ('}') somewhere.
The message about the "line -1" error is the standard message that is always given when there are compile errors in the JSP. -
Errors in JSP file for htmlb code - CE 7.1
Hi Experts,
I am trying created simple JSP dynpages application in NWDS 7.1 & CE 7.1.
I am getting errors for HTMLB code like:
cannot find tag Library descriptor for tagLib
In JSP page i wrote simple htmlb code like:
<%@taglib uri="tagLib" prefix="htmlb"%>
<htmlb:content id="myContext">
<htmlb:page title="PageTitle">
<htmlb:form id="myFormId">
<htmlb:inputField id="inf1" type="String" width="125" visible="true"
required="true" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
{/code}
For HTMLB libraries added 2 jar file in lib folder
/PORTAL-INF/lib com.sap.portal.htmlb.jar ; & com.sapportals.htmlb.jar
After adding set the Java build path for Library jar file also.
In portalapp.xml -
<?xml version="1.0"; encoding="UTF-8"?>
<application>
<application-config>
<property name="startup" value="true"/>
<property name="SharingReference" value="com.sap.portal.htmlb";/>
</application-config>
<components>
<component name="Test_Jsp">
<component-config>
<property name="ClassName" value="com.Test_Jsp.Test_Jsp";/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/Output.jsp";/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld";/>
</component-profile>
</component>
</components>
<services/>
</application>
{/code}
Please any one help to correct this errors............
Regards,
SatyaHi,
You need not add com.sap.portal.htmlb.jar and com.sapportals.htmlb.jar to /PORTAL-INF/lib as the classes will be available at runtime through com.sap.portal.htmlb SharingReference. So remove the htmlb jars from /PORTAL-INF/lib.
Correct the value of tagLib property to /SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld
Deploy and check if this helps.
I see alot of unnecessary semicolons in your portalapp.xml, I think you just added them inorder to be able to post them here.
Regards,
Praveen Gudapati -
Error opening JSP file weblogic 8.1
Hi,
I'm using weblogic 8.1 and testing few JSP pages on my local machine they work well but when the .war file is deployed on to our production server (which is remote), error message in the domainname.log file java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file or directory)
any suggestions?
thank you!
"group" <[email protected]> wrote in message
news:4029440f$[email protected]..
> Hi,
> I'm using weblogic 8.1 and testing few JSP pages on my local machine
they work well but when the .war file is deployed on to our production
server (which is remote), error message in the domainname.log file
java.io.FileNotFoundException: /jsp_servlet/__mycomplogin.java (No such file
or directory)
>
> any suggestions?
> thank you!
Can you print out the entire stack trace?
-
Object Expected error in Struts JSP file
Hi,
I have a very simple JSP file as shown below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html>
<head>
<title>pqGlobalStoreProfile.jsp</title>
</head>
<body onLoad="getSessionData();disableFieldsLocale();">
<html:form action="/pqGlobalStoreProfile.do">
<table cellpadding=5 cellspacing=0>
<tr><td colspan=2><h3><b>Pq Global Store/Modify Profile</b></h3></td></tr>
<tr><td>Profile Key *</td><td><html:text property="profileKey"/></td></tr>
</table>
</html:form>
</body>
</html>
It is throwing an "Object Expected' error at Line 9 Char 1.
I am not sure about what is causing this error.
Thanks.it's a Javascript error, cuz it's calling these 2 methods when the page loads...
onLoad="getSessionData();disableFieldsLocale();"
Where are these methods defined? Cuz I don't see any inline Javascript, nor a linked script.
I hope you don't think that those onload functions are going to call Java code defined in the JSP page or something, cuz... well, they aren't. -
Acrhived files copied off ipod have CRC errors
Hey Everyone,
Looked everywhere for someone else having this problem, but cant seem to find it.
Basically I use my ipod to transport large files between work and home as well as music listening (duh)
Anyway, these files are normally sent as compressed archives (mostly .rar). When I go to unpack them after copying them off the ipod they have crc errors, so the files in the archive are stuffed.
Now, IT IS DEFINITELY THE IPOD CAUSING THIS. please dont give any advice that makes you think its the pc causing it. because it's not.
I have tried copying files off/on the ipod from many pcs, and they all get the CRC problems. Ive also updated the ipods firmware, and done factory reset to wipe it totally clear.
Ive tried other archiving/packing the files on different pcs and using different archiving formats.
Oh, also, I can seem to move small files(under 100MB) off/on with no problems, and it plays music/video without any problems at all.
Anyone have any suggestions for why this might be happening?
(please dont accuse me of piracy, I work with large digital media, and yes, I do it on a PC too).Here is an article stating that a windows formatted ipod has a file size limit of 4gb, because of the FAT32 file system. Could that be your problem?
http://docs.info.apple.com/article.html?artnum=93866 -
Help running a simple jsp file,Tomcat 5.0.16
Hi,
This question may be addressed many many times,but do reply.
I have a Win xp operating system
Installed Tomcat 5.0.16 in it.
Next the directory structure
PS : The sampleapp directory is outside the tomcat installation directory.
E:/sampleapp
| |
ROOT WEB-INF
|
classes
|
<package1><structure> .class files (for servlet works fine!!!!)
in the WEB-INF,there is the web.xml,then sourcefiles<dir> and the lib directory which is empty.
Now the servlet files work fine.........
I have placed my MyJsp.jsp file in the above mentioned ROOT directory.
I have not done any thing with the <TOMCAT_HOME>/conf/server.xml file
and the web.xml which I have written.
When I give the following URI
http://localhost:8080/sampleapp/MyJsp.jsp,
I get the HTTP status 404- /MyJsp.jsp
description: The requested resource (/MyJsp.jsp) is not available.
Hoping that I have defined the problem specifically.Kindly show some light on this.
Thanks
ASNevermind. I just found the answer. For the record, there are two ways in getting JSPs to work:
1. Precompiling the JSPs and modifying your webapp's web.xml file with the XML fragment generated in YourWebApp/web/WEB-INF/generated_web.xml;
2. Not precompiling the JSPs, but simply letting tomcat compile it on the fly on first access.
PRECOMPILATION METHOD
Go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. Copy-and-paste the ant script under the section "Web Application Compilation" into a file called compile.xml. For me, I save it in ~/development/compile.xml. Then compile the JSPs using the command (all in a single line):
$ANT_HOME/ant -file <PATH_TO_COMPILE.XML> -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>
In my case, I cd into the directory where my app resides:
cd ~/development/HelloWorld
and then I type:
ant -file ~/development/compile.xml -Dtomcat.home=/var/tomcat5 -Dwebapp.path=.
(Note the trailing dot since my current directory is my webapp's directory itself. Also, in my case, my shell's PATH contains the path to the ant executable, so I just type 'ant' directly.)
Open the file ~/development/HelloWorld/web/WEB-INF/generated_web.xml and follow the instructions in that auto-generated file, which is: "Place this fragment in the web.xml before all icon, display-name, description, distributable, and context-param elements."
The web.xml referred to above is YOUR web.xml. In my case, it is the one in ~/development/HelloWorld/web/WEB-INF/web.xml
When ready to deploy, type:
ant dist
as usual. Deploy the .war file in the dist directory as you normally would. In my case, I do:
rm -rf $CATALINA_HOME/webapps/hello* (removes my HelloWorld webapp directory and its war file)
cp ~/development/HelloWorld/dist/hello.war $CATALINA_HOME/webapps
and wait for tomcat to unravel the war file. I can then access the JSP page based on whatever the generated_web.xml had specified. In my case, it would be http://localhost:8080/hello/sample.jsp
NON-PRECOMPILATION METHOD
Copy tools.jar from the Java JDK into tomcat's common/lib. (I found this only in the error message in tomcat's log file!! Didn't find it anywhere else!!). Do this one time only, then restart tomcat:
cp $JAVA_HOME/lib/tools.jar $CATALINA_HOME/common/lib
Restart tomcat.
Deploy your webapp as usual which will include your JSP files stored under your webapp's 'web' directory. No precompilation of JSPs is required. Then access your JSP pages such as http://localhost:8080/HelloWorld/my-jsp-page.jsp and tomcat will compile it on the fly on first access. The disadvantage is that there will be a slight delay on first access.
[Note: I am putting all this down for the record, because it took me MANY HOURS to figure all this out as the info on how to do this is not found clearly in one place!! Hope this helps others.]
My next step is to incorporate the contents of compile.xml as mentioned above, into my regular build.xml file. -
Help in executing jsp files using weblogic server 6.0.
I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
I have a file called hello.jsp.
Where do i have to save hello.jsp file in weblogic server 6.0.
How do i execute hello.jsp through browser using weblogic server6.0.
As there is no properties file in weblogic server6.0.
TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
Where do i have to save it and how do i open it in the browser.
Any help will be greatly appreciated.
Thanks,
I started the Start default Server and opened the http://localhost:7001/ in the bowser and by default
this loaded the index.html file
and when i tried to change index.html to hello.jsp i got the same error message as before
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
"mils" <[email protected]> wrote:
>
>There are quite a few reasons it couldn't be working, and things you can try...
>
>Ensure there are no errors on startup of the server in the console, especially that there is not an error about another web listener running on the same port.
>
>Try just http://localhost:7001 by default this should load the index.html file that comes with the WebLogic installation.
>
>If you are running on a corporate LAN, your browser settings may not be set correctly to find "localhost", ensure that your browser is not using a proxy server for local addresses, or put localhost:7001 in the list of exceptions for which the browser should not look at the proxy server.
>
>Hope this helps!
>
>"Red" <[email protected]> wrote:
>>
>>I created hello.jsp file under E:\weblogic\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\hello.jsp
>>and i started the Start Default Server and when i try to open
>>http://localhost:7001/hello.jsp in the browser
>>getting an error message as
>>
>>Error 404--Not Found
>>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
>>10.4.5 404 Not Found
>>The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
>>
>>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
>>
>>Any help?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>"Mils" <[email protected]> wrote:
>>>
>>>In WebLogic 6.0, to run simple JSP pages with the default installation, the JSP files should be put in....
>>>
>>>C:\bea\wlserver6.0\config\DefaultWebApp_myserver
>>>
>>>...assuming you installation was on the C: drive.
>>>
>>>To access a file bar.jsp in this directory, go to http://localhost:7001/bar.jsp
>>>
>>>"Red" <[email protected]> wrote:
>>>>
>>>>I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
>>>>I have a file called hello.jsp.
>>>>Where do i have to save hello.jsp file in weblogic server 6.0.
>>>>How do i execute hello.jsp through browser using weblogic server6.0.
>>>>As there is no properties file in weblogic server6.0.
>>>>
>>>>TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
>>>>
>>>>Where do i have to save it and how do i open it in the browser.
>>>>
>>>>Any help will be greatly appreciated.
>>>>Thanks,
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
-
Error in log file of consumer.
hi
i have following error in log file of consumer. i have no idea why i appear.
[08/Oct/2003:10:56:00 -0500] - ERROR<5398> - Entry - conn=-1 op=-1 msgId=-1 - Duplicate value addition in attribute "nsslapd-referral" of entry "cn=\22dc=alltel,dc=com\22,cn=mapping tree,cn=config"
Thanking you,
kumarDid you promoted/demoted a server? ( like from consumer to master , master to consumer , hub to consumer/master OR disabled replication and re-enabled with another unique ID and recreated replication agreements again?
IF YES, find out the current Unique ID in all the related server and delete the old serverIDs in the nsslapd-rererral.
Also the error will tell you for which server it is trying to update the duplicate entry. Mostly , that entry will be the old value as I explained before.
I have seen this before and mostly by doing above it gets corrected. I recommend that you should think before doing it.
In any case dont forget to update us since this is a tricky situation to me.
-Kunal
Maybe you are looking for
-
as iam changing the os of my computer(windows) , i need to authenticate it again.
-
Needing to present "photos" and "video" to large audience
I need an App to allow me to use a laptop and a remote mouse, and to make a formal presentation to a large audience. I need it to show both "photos" and a "video" in my presentation, allowing me to page through the photos one-at-a-time while I talk a
-
Broken WRTU54G-TM 1.00.21 Auto Updating
I have a big problem with this firmware (.21) which is being forced onto my router. Upnp is completely borked with it using xp-sp3 x86 for me. On 1.15 it works fine, but can only keep that on for a few minutes before .21 is forced upon me again. plea
-
i want to post a set of records and get it say some 5 records of size 6 fields. how to post these values and get it to insert into database it is like transaction entries pls help
-
Incorrect Fonts When "Printing" Webpage to .pdf
When I "print" a webpage to a .pdf file, I occasionally get an incorrect font. For example, if I print a Wikipedia page, the font in the saved file will be Times New Roman. The font on the webpage looks to be Arial. I'm assuming it is a setting in