Web.xml & Resin startup index.html
Hello,
I have created an index.html that calls the JSF page.
In the web.xml, it is coded as /faces/index.html
This works in tomcat, but I need to remove the /faces/
in order for resin to run the index.html.
Is this a resin issue?
Thanks
Frank
Hi Frank,
This forum is exclusively for questions related to Sun Java Studio Creator. Could you pls post your question in an appropriate forum.
Cheers
Giri :-)
Similar Messages
-
Web.xml problem and using of FrontController Pattern
I use FrontController pattern and created servlet ControllerServlet.
I want that when users open my site (for example mysite.com) all requests goes to controller? and even when users enter diretc path to jsp or servlet all requests were sent to ControllerServlet.
in my As I read in "Java Servlet and JSP CookBook" for this I have to write in web.xml file such code:
<servlet-mapping>
<sevlet-name>ControllerServlet</servlet-name>
<url-pattern>/*</url-pattern>
</sevlet-mapping>so any requests will be sended to my controller servlet.
But now I have other problem. How I have to call my jsp pages? When I use RequestDispatcher and forward reques to jsp pahe login.jsp, I have error because this request again redirects to controller.
PS For calling servlet I have solve of this problem I just have to add to web.xml file security-constraint element for needed servlets.You really shouldn't have to map all urls to your ControllerServlet. Set the welcome file in the web.xml to open index.html and in index.html use JavaScript to direct the page to the ControllerServlet. Now as long as you only do RequestDispatcher forwards (no sendRedirects), all hyper links point to the ControllerServlet and all form actions point to the ControllerServlet you are okay. The reason is that the user will nevr see anything else in the browser address other than the ControllerServlet url and should never know the url of any other JSP or Servlet to request them directly.
-
WEB-INF/web.xml not found exception for deployed war on server startup
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Kumar,
Here it is.
Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
Can you send us your webapp? I will try to duplicate it in my environment.
Kumar
Steve Demuth wrote:
Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
Interesting.
This shouldn't happen though.
Can you stop the server delete the .wl_temp_do_not_delete
dir? Let's see if that makes any difference.
Kumar
Steve Demuth wrote:
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
at
weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
[att1.html]
[controllerUnitTests.war]
-
Caching problem with iFS web server / index.html
There seems to be a problem with the iFS Java web server serving cached index.html documents after they have been modified.
This only happens when the document is referenced by the folder name (e.g. /home/kennu/). If you reference it by the full name (/home/kennu/index.html), the new modified version comes up alright.
I wonder if this is a bug or some kind of a feature? Is there an quick and easy workaround?
Byt the way, is this the correct place to post bug reports? I didn't see iFS mentioned in the OTN Bug Database.
nullwell, this is certainly not an intended effect. i'll look into it. in the meantime, the workaround already posted should pull you through.
sorry about the inconvenience.
-ilya
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kenneth Falck ([email protected]):
There seems to be a problem with the iFS Java web server serving cached index.html documents after they have been modified.
This only happens when the document is referenced by the folder name (e.g. /home/kennu/). If you reference it by the full name (/home/kennu/index.html), the new modified version comes up alright.
I wonder if this is a bug or some kind of a feature? Is there an quick and easy workaround?
Byt the way, is this the correct place to post bug reports? I didn't see iFS mentioned in the OTN Bug Database.<HR></BLOCKQUOTE>
null -
Need help to set values from web.xml in a jsp class
Hey :-)
I`m trying to get value from my web.xml file into a jsp class. The problem is that the value always retur null. My web.xml file is replaced in the WEB-INF directory where should be. Here is my web.xml
<servlet>
<servlet-name>Html</servlet-name>
<servlet-class>Html</servlet-class>
<init-param>
<param-name>html_test</param-name>
<param-value>Value I want have in my jsp class
</param-value>
</init-param>
</servlet>
And her i my java class who don`t work:
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.ServletConfig;
public class Html extends BodyTagSupport
String title="";
String html_test;
ServletConfig config;
public void doInitBody() throws JspException
html_test = config.getInitParameter("html_test");
}//End of method doInitBody()
public int doStartTag() throws JspException
try
JspWriter out = pageContext.getOut();
out.print( "<HTML>\n" );
out.print( "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" );
out.print( "<BODY>\n" );
out.print( "<BR><H1>" + html_test + "</H1>" );
And here are my html_test variable return null.
I hope somone can help me, duke dollars will be given away for the solution answer.
paulsepNothing seems to work, have change the string and rewritten the web.xml file to:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>html_test</param-name>
<param-value>Value I want have in my jsp class</param-value>
</context-param>
</web-app> -
Blog Summary page as index.html
hi,
my web hosting server have index.html as my main page.
is there any way i could have my blog summary page as my index page?
all i want is the blog as my entire site, without any other pages.
thnxmoved the Blog page to the top of the tree.
-
Index.html as a link not working with Weblogic 6.0 SP2
we use weblogic as a webserver with one of our web applications.
The index.html page is a soft link pointing to one of 2 pages.
1 page is a site up page and the other is a site down page.
Using a soft link worked fine with WL60 sp1 but when we moved to SP2
we now get a 404 when trying to load the index.html page.
Any ideas why this would be broken?
Terry Carter
Terry,
This is a known problem, and CR058420 was opened to address this
issue. For 6.0, there is not a patch available. The recommended
solution is to upgrade to 6.1 and apply the appropriate patch.
Thanks,
Simon
Developers Relation Engineer
BEA Support.
Terry Carter wrote:
> we use weblogic as a webserver with one of our web applications.
> The index.html page is a soft link pointing to one of 2 pages.
> 1 page is a site up page and the other is a site down page.
>
> Using a soft link worked fine with WL60 sp1 but when we moved to SP2
> we now get a 404 when trying to load the index.html page.
>
> Any ideas why this would be broken?
>
> Terry Carter
-
Hello All,
I have an example which use simulated signal with its web service generated by LabVIEW. Then an application of this web service was created using NI web UI builder. And application was build and deployed on NI Cloud Portal, a zip file was downloaded of that project after build and deploying application.
The downloaded file contain a thin client application like :index.html page, readme file etc.
Now problems is this index.html runs easily on http://localhost:8080/appname/index.html or on my computer name like
http://iaa42:8080/appname/index.html web page runs and shows updated values in indicators and graphs but when i use ip address of my system like http://192.168.1.6:8080/appname/index.html , index.html runs but the values in indicator and graphs remains 0 (zero) constantly. how can i get all indicators and graphs updating continously on by using my ip address like same when i use localhost or computer name in url bar. 1st problem is this.
Now 2nd question.
I get a page index.html in a zip file built by NI web UI builder now i want this page to be viewed by every one world wide
where should i upload that code. Should NI Cloud Portal be my hosting server for that web page ? or i have to purchase a domain other than NI cloud portal?
Thanks in Advance
Regards
WaqasHi Waqas,
For your first question, my first thoughts turn to your router (which I assume you are using with a 192.168.x.x address). Are you sure you are configuring your ports and firewalls to allow NI services to function? Here is a really good resource on how to check if your ports and firewalls are configured properly:
http://www.ni.com/white-paper/12402/en/
For your second question, when you deploy a web service you are hosting it on your local machine. If you wanted to host it elsewhere (i.e. another server or another domain) you would have to be sure that the server hosting your application has the LabVIEW run-time engine installed.
Rick C. -
Index.html created by Bridge Web Gallery has VBGetSwfVer error
I'm running CS6 under Win7 and IE9. I have used Bridge to create a web gallery but when I try and execute the generated index.html file I get a (script?) error:
Clicking eather Yes or No has no impact - just a blank screen.
I have not modified the generated index.html. Also, it does not matter if I have used CS5 or CS6. The generated file works elsewhere (at college Win7, CS5) so it has to be something to do with a setting on my PC but what?
I have reinstalled the latest version of Flash Player and I have the correct add-on enabled:
What's wrong?
Line 116 reads: versionStr = VBGetSwfVer(i);
The function is defined on line 55+"
Function VBGetSwfVer(i)
on error resume next
Dim swControl, swVersion
swVersion = 0
set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
if (IsObject(swControl)) then
swVersion = swControl.GetVariable("$version")
end if
VBGetSwfVer = swVersion
End Function
I'm stumped - help please.Hi Mike,
glad you got it working. I did take a look at this page:
http://www.oliverdesignstudios.com/HEREWEGO/MHO%20ORIGINALS/index.html
and this page:
http://www.oliverdesignstudios.com/Custom%20Business%20Card%20Designs/index.html
I know you said you moved foldes around until it started working - that's a bit drastic and lucky that none of your links got broken :-)
Back to the folder names. You should never use upper case NOR use spaces when naming folders or files. You may end up with browser incompatibilityand some servers can choke if type of naming convention is used. Also some hosts don't support upper case,(linux in particular),. It's best to use lower case at all times and if you need a space use an underscore or hyphen instead. eg: custom-business-card-designs/
Now if you want to go and rename any folders or files, fo it all via the Dreamweaver File Panel, so that DW can keep track of what you're changing, so that you don't get broken links.
Actually now that you mentioned moving folders etc., are you working in a Defined Dreamweaver Site? That's the very first thing you need to set up when starting a new project in Dreamweaver:
Define a site:
http://kb2.adobe.com/cps/140/tn_14028.html
Hope some of this helps :-) -
URGENT: Web Server 6.1 SP4 won't respond to GET /index.html
Hello folks,
I was adding "additional document directories" when the management web interface suddenly decided that it had had enough of my additions and decided to throw out all but the last three.
Worse still, GET /index.html doesn't work; instead the server responds with "Method not allowed", which my browser reports as HTTP405 but the server error log reports as HTTP2205. So no web page request is currently being honoured.
For what it's worth, a look at the mime.types file shows that type=text/html is linked with exts=htm/html.
Any ideas?
Cheers!I had just clicked on OK to input another "additional document directories" when the administration server threw an error in a popup window; I honestly can't remember what text was in that popup, probably because I was gutted on realising that of the forty plus entries I had just made, only the last three were showing up in the "Current additional directories" list.
One possibility that would exonerate the administration server is that I gave some keystroke combination that caused the obj.conf fault as by that time I was typing in quite rapidly...
Thanks for positng.
Cheers -
Servlet 2.4 web.xml error - Cant load the Schema
i have coded the web.xml for my application as below,
i am using Servlet 2.4 and Tomcat 5.5
when i viewed the same in XML editor, it gave the following error -
"Can't Load the W3C XML Schema" , cant figure what is the reason for this error. Any help would be greatly appreciated
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Rdp</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.rdp.util.RDServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>programe-name</param-name>
<param-value>Rdp</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app>i have coded the web.xml for my application as below,
i am using Servlet 2.4 and Tomcat 5.5
when i viewed the same in XML editor, it gave the
following error -
"Can't Load the W3C XML Schema" , cant figure what is
the reason for this error. Any help would be greatly
appreciated
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Rdp</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.rdp.util.RDServlet</servlet-class
>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts-config.xml</par
am-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>programe-name</param-name>
<param-value>Rdp</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-lo
cation>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-lo
cation>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-l
ocation>
</taglib>
</web-app>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
version="2.4">
It looks the schema specified in your application is slightly different or wrong.
Please correct it !! -
Web.xml cant load the schema
i am using servlet 2.4 and tomcat 5.5 and struts 1.2.9, wheni tried to build my application , it is not working, when the viewed the web.xml file in XML editor it is givinh "Can't Load the Schema", any help would be
greatelly appreciated..............
the web.xml file is as below
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="XMLSchema-instance.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Rdp</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.rdp.util.RDServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>programe-name</param-name>
<param-value>Rdp</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app>i am using servlet 2.4 and tomcat 5.5 and struts 1.2.9, wheni tried to build my application , it is not working, when the viewed the web.xml file in XML editor it is givinh "Can't Load the Schema", any help would be
greatelly appreciated..............
the web.xml file is as below
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="XMLSchema-instance.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Rdp</display-name>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>com.rdp.util.RDServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/config/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>programe-name</param-name>
<param-value>Rdp</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app> -
Taglib tag doesn't work with web.xml 2.4 ?
That is, I switched to the 2.4 version of web.xml and now none of the taglib elements I have in there work.
I get the following excpetion
org.apache.jasper.JasperException: File "/tags/struts-html" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav a:105)
I've been surfing a good portion of the day looking for some documentation on this but to no avail. I did find that I should wrap the taglib elements in a jsp-info. I'm runing tomcat 5.0.19.
In any event here is my web.xml:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
version="2.4">
<display-name>Struts Examples Application</display-name>
<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>InitServlet</servlet-name>
<servlet-class>com.jacent.admin.servlet.init.InitServlet</servlet-clas s>
<init-param>
<param-name>log4j</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class&g t;
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<!-- module configurations -->
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/datetime</taglib-uri>
<taglib-location>/WEB-INF/datetime.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/tabs-taglib</taglib-uri>
<taglib-location>/WEB-INF/tabs-taglib.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/admin-widgets</taglib-uri>
<taglib-location>/WEB-INF/admin-widgets.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>http://java.sun.com/jsp/jstl/core</taglib-location> ;
</taglib>
</jsp-config>
</web-app>
In addition Eclipse is complaining about web-app element not able to be found.
Thanks for anyone's help!
John#1 programmers excuse: It works for me. You must be doing something wrong.
Finding out what is the trick.
I have Tomcat 5.0.28, but I don't think it would make THAT much difference.
What version of Java are you running?
You shouldn't need the entry for the JSTL library c. That works without an entry in web.xml, provided you use the correct URI.
First step: make a test page that only uses that one taglib - eg an html:base tag.
Confirm that it breaks with the current setup.
Backup web.xml, and start it from scratch with an absolute minimal one - only import the struts-html library.
Does that work?
Slowly copy and paste in the different bits of web.xml until you find what breaks it.
Hope this helps,
evnafets -
What is Wrong with my filter and filter-mapping in web.xml?
First, thanks all for your attention.
I have checked the place where I should place <filter> and <filter-mapping> in web.xm. They should be after the <display-name>, before <servlet> and <servlet-mapping>.
However, as soon as I insert the <filter> and <filter-mapping> elements in my web.xml, all my struts-bean.tld, struts-html.tld, etc. in the web.xml cannot be found at the runtime.
Please help in identifying the problem. Thank you.
<filter>
<filter-name>trailFilter</filter-name>
<filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>trailFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>and my web-xml is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Struts Example Application</display-name>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- The default error page -->
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>\Error.jsp</location>
</error-page>
<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/tags/app</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
</web-app>Filters were introduced in the servlet 2.3 specification (j2ee 1.3) - http://java.sun.com/products/servlet/Filters.html.
Your web.xml constraints your web application to adhere to 2.2 standards (according to your DOCTYPE definition in your web.xml). Change it to conform to 2.3 standards
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
//your definitions
</web-app>Note : Your container should support the 2.3 spec (Tomcat 4.0 and above does, I guess)
ram. -
What is Wrong with filter and filter-mapping in My web.xml?
First, thanks all for your attention.
I have checked the place where I should place <filter> and <filter-mapping> in web.xm. They should be after the <display-name>, before <servlet> and <servlet-mapping>.
However, as soon as I insert the <filter> and <filter-mapping> elements in my web.xml, all my struts-bean.tld, struts-html.tld, etc. in the web.xml cannot be found at the runtime.
Please help in identifying the problem. Thank you.
<filter>
<filter-name>trailFilter</filter-name>
<filter-class>org.osjava.taglib.trail.OriginalRequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>trailFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>and my web-xml is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Struts Example Application</display-name>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- The default error page -->
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>\Error.jsp</location>
</error-page>
<!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/tags/app</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
</web-app>Multiple Post - http://forum.java.sun.com/thread.jspa?threadID=734506
Maybe you are looking for
-
Rumor: CrossOver doesn't work properly on Leopard?
I've been reading around a lot because i am going to buy a new Imac 24 inch with 2.8 Ghz, preinstalled with Leopard... and i've discovered that the planned program i was going to buy called CrossOver did not work properly with Leopard. What have you
-
ISA user admin in CRM Productivity BP
Hello, We have deployed the Business Productivity Package for CRM on EP 6.0 S09 and am having some trouble connecting some of the iViews to our backend SAP CRM 4.0 instance. ISA is also installed on the same J2EE as the Portal as per an SAP note. I
-
MAC OS 10.5.7 and Samsung CLP-610ND color laser printer, images very dark
Just picked up this printer 3 days ago, set up fine prints word files fine. Any images print very dark. MY main use is printing a pdf newsletter but the print image is so dark it is useless. I have tried print as image. I have also tried a plain jpg
-
Can't download Oracle 10g Application server.
I go to http://www.oracle.com/technology/products/ias/index.html but when i agree to the terms and the file can't be found. Is there another link to this file? Thanks, Aaron B. Allison
-
I am working on a flash site with many scenes with movie clips, different clips but same size and same position. I just set up the layout using fluid with this function sizeListener.onResize = function() { centered._x = Stage.width/2 centered._y = St