This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!

Nina Anderson

Ranch Hand
+ Follow
since Jul 18, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nina Anderson

I have an Apache + Tomcat web server. My web application is using JSP/Java for the most part, but there are some pages that are also PHP. My PHP pages are currently powered on 80


Right now our web application has tomcat set to: http://mydomain.com:8080

In addition, We are deploying our web application .war file in: /var/lib/tomcat5/webapps/MyWebApp

The problem is, when we need to access our web site, we have to go to:
http://mydomain.com:8080/MyWebApp to see work welcome page.

1) How can we change this, so when the user types: www.mydomain.com, it points straight to our .../MyWebApp/index.jsp file?

2) We currently access our PHP files via www.mydomain.com/upload.php. It is listening on port 80

Please...Help
10 years ago
--- SORRRRRRY!!!


Ooops....This was supposed to be reply to "Deploying Struts app on Linux server"
10 years ago
No...I'm NOT using the web context to access the page. I tried www.mydomain.com and www.mydomain.com/index.jsp, but neither options worked. I blank page is displayed and when I right-click to view source, I see the jsp code with my struts tag. So, it looks like the struts taglibs are not being recognized.

Also, where should I post this problem, if you don't think this is the right forum?
10 years ago
No. I'm NOT using the web context to access the page. I tried www.mydomain.com and www.mydomain.com/index.jsp, but neither options worked. I blank page is displayed and when I right-click to view source, I see the jsp code with my struts tag. So, it looks like the struts taglibs are not being recognized.

Also, where should I post this problem, if you don't think this is the right forum?
10 years ago
Hi,

I'm trying to deploy my Struts application on our live Linux server and the pages are not coming up on the web and I don't know how to configure the server. I'm using Struts, Tomcat, Hibernate and jsp.

This is what I did:

I copied our *.war file in the "/var/www/html/" directory. However, when I re-start Tomcat, the contents of the war file are not made available in the web application.

Why is it that Tomcat is not automatically picking up and deploying our app after JVM restart? I tried doing the same in the "/home/webadmin/mydomain.com/html" as well with not luck.

The following are my questions:

1) Why won't my index.jsp come up? It is located in "/home/webadmin/mydomain.com/html"




2. Is my web.xml wrong?




3. What's the significance of "/var/lib/tomcat5/webapps"? Should I be using this too?

The name of our .war file is "PBWebApp.war". When I deploy to "/var/lib/tomcat5/webapps", a "PBWebApp" directory is automatically created by the system. This directory contains the jsp and java files. Here's the file structure:

10 years ago
Hi guys,

I have a web application where I'm trying to store and retrieve user images in a MySQL database. I'm using Spring and Hibernate, but I don't know how to handle blob or binary datatypes.

I would I appreciate it if someone that show my how to configure my hibernate.cfg.xml and how to convert the byte from HTML to the blog datatype.

Here's what I have so far:




I'm clueless...Please Help!
Hi guys,

I have a jsp form that contains textboxes, checkbox, drop-down menus and radio buttons. I'm using Struts Validation on the page.

When a users enters bad data, my Struts ActionForm class performs the validation and re-displays the page with errors message. However, the page re-display the information user enter in the textboxes, BUT NOT the checkboxes, drop-down menus and radio buttons.

How can I get the page to retain the information the user entered in the checkbox, drop-down menus and radio buttons?

Here's my code:









Please...Help!
10 years ago
Thanks for your response. This was helpful.
10 years ago
Hi guys,

I'm trying to switch from client-side to Server-side validation. However, I don't know how I can validate "password" and "email" fields on the server-side.

Please help me on how I can change the following to Server-side:

10 years ago
I'm trying to implement struts validation with "ValidWhen". But the validation is not working as what I want it to do.

These are the cases where I want the user's input to be valid:





Here's my validation.xml:



Currently, the page accept any input the user selects for "selectedAdvertVenueCode" or "otherDescription". What I'm I doing wrong?

Please...help!!!
10 years ago
Thanks Rene for your response. where can I find the 'locale_en_US.properties' file? Does it come with the Tomcat install?
10 years ago
hey guys,

I'm getting the following error when I start-up my Tomcat 5 server and I don't know what's causing it.


Catalina.start using conf/server.xml: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:65)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Catalina.start using conf/server.xml: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:65)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.start(Catalina.java:548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 6 more
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.
Catalina.start using conf/server.xml: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:65)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Catalina.start using conf/server.xml: java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
java.util.MissingResourceException: Can't find bundle for base name org.apache.coyote.tomcat5.LocalStrings, locale en_US
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
at org.apache.commons.digester.Digester.startElement(Digester.java:1456)
at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:65)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.start(Catalina.java:548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 6 more


Please...hElP
10 years ago
thanks Ulf,

So, you are saying I should:

1) keep the default web.xml that came with the Tomcat5 installation in
../Tomcat5/webapps/Root/WEB-INF/web.xml?

2) Leave my web application's web.xml (containing String & Struts config) in ../Tomcat5/webapps/MYWebApp/WEB-INF/web.xml?

ThaNKs
10 years ago
typo, I meant:



instead of - .../Tomcat5/webapps/R/WEB-INF/web.xml
10 years ago
Hey guys,

Thanks for you suggestions. But...I'm still confuse. Here are my questions:

1) In order for my web application to come up...which web.xml does Tomcat read?


2) When I deploy my MYWebApp.war file, I place it under



Is this the right location?

3) After deploying the following directory structure is available on the server


Are you guys saying Tomcat is reading this web.xml on startup?

4) Currently, I have copied contains of my web.xml in Step#3 to


Is this wrong?

please HeLP cuz I'm clueless where Tomcat is readying the files.
10 years ago