shaju joseph

Ranch Hand
+ Follow
since Jun 28, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by shaju joseph

Thanks guys.

After I put encoding="ISO-8859-1" it works fine.

Thanks again.
Thanks for the reply.

I cannot view the generated XML in IE.

Here is a sample from the XML and the error I am getting in the browser.

<?xml version="1.0"?>
<list>
<item>
<id>abcd</id>
<name>Cede�o,xyz</name>
</item>
</item>
</list>

Error message
=============
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'file:///C:/download/123.xml'. Line 5, Position ...

<name>Cede

Here is the first part of javascript method to parse the XML.

function displaySupervisorList(superXML) {
var list = superXML.getElementsByTagName("list")[0];
var items = list.getElementsByTagName("item");


If I filter the spanish characters at the server, everything is fine.

Thanks again for your help.
I have a simple AJAX call to get a list of names from the database and display it in a selection box. But some of the names contains spanish characters and looks like when that happens, the generated XML is not getting to the front-end. I can see XML is generated on the server side. But Javascript on the client side sees only null values. Anybody had similar problem?

Thanks in Advance.
Hi, I installed tomcat on an HP machine using the tomcat 'ZIP' file downloaded from apache site. I used 'jar' to extract the files.
My question is can I use the 'ZIP' file to install on unix platform? Or should I be using the tar file? Are the components in the tar and zip same ?
21 years ago
Suneel, thanks for the reply.
I have couple of questions.
1) Do I have to use SecurityManager if I want to connect to another server from servlet? I am not using any SecurityManager from Win2000 and that works fine. Th problem comes only in HP.
2) If you run tomcat with debug option, do you see anything in catalina.out saying 'access allowed' for IP specified. I don't see anything in my catalina.out file.
Following is the params setup for running in debug option.
CATALINA_OPTS=-Djava.security.debug=access,failure

TIA
21 years ago
Hello....
I have setup catalina.policy in the following way.
>>
permission java.net.SocketPermission "IP ORT", "connect,accept,listen,resolve";
>>
However, when I run tomcat with security and debug option, I don't see any entry in the catalina.out for the IP I mentioned. What am doing wrong?
Anyone out there.....?

TIA
21 years ago
Hi,
In order to connect to another server from a webapp, do I need to setup the securityManager ?. Can someone please give an example of what all changes I should make in catalina.policy.
I have an application which works fine from the shell command but fails to open the socket when deployed as a servlet under tomcat 4.1.29.
TIA
SJ
21 years ago
In order to connect to the server, these are the entries I have setup in catalina.policy. Is this ok?
I am still getting unable to open socket error. Any help?
>>
grant codeBase "file:${catalina.home}/webapps/Service/WEB-INF/-" {
permission java.security.AllPermission;
permission java.net.SocketPermission "*:1024-", "connect,accept,listen,resolve";
permission java.net.SocketPermission "ipaddress ort", "connect,accept,listen,resolve";
>>
Thanks
21 years ago
Hi,
My webapplication is using some native libraries to connect to another server. Initially I got an error regarding unable to open a socket. Then I setup the permission java.net.SocketPermission in catalina.policy and starting Tomcat with security option. But now its not loading my native libraries. My question is what kind of permission should I specify to pick up the native libaries. Also can the libraries be outside the webapp?
Appriciate any help. ( I am using HP-UX )
21 years ago
Thanks Tim,
I am using HP-UX and I did an untar in order to install TOMCAT.
I will check the extract and see.
thx
21 years ago
I have installed tomcat 4.1.29 on HP-UX. after starting tomcat I can see tthe following error in localhost_admin_log..txt log file.
>>
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.webapp.admin.ApplicationServlet or a class it depends on
....
....
----- Root Cause -----
java.lang.ClassNotFoundException: org.apache.webapp.admin.ApplicationServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1443)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
..
..
>>
When I look for that class, the classname is actually truncated. Not only that class, many of the class names in
$CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/admin
are truncated.
Any idea how to solve this? The server seems to run. But when I try to make some native calls they are failing. I wonder if it is related to these errors.
Any help is appreciated.
Thx
Shaju Joseph
21 years ago
Hi,
I have been tasked with converting an existing servlet based application into a webservice. We will be using latest websphere app server and WSAD 5.0.0.
As I understand following will be the steps I need to do.
Create a webservice wrapper for the application using WSAD.
Install the ear file in application server.
Provide the WSDL files for the users .
Since this will be on the intranet, I understand we will be using a private registry. Is that part of the latest webspehre? Do I need to download or install anything separately for the UDDI?
Am I close or way off? Can someone give me the steps on a high level?
TIA
SJ
21 years ago
If I have a webservice implemented with a private registry, What information I need to provide to a user to access that service, thru JSP or a stand alone java client ?
Thx
21 years ago
Hellooooo, anyone had this issue?
22 years ago
Hello,
Anyone know how to fix the following error. I cannot get my tomcat 4.0 to start.
Thx
2002-11-05 17:40:17 StandardWrapper[/admin:invoker]: Loading container servlet invoker
2002-11-05 17:40:21 StandardManager[/admin] IOException while saving persisted sessions: java.io.FileNotFoundException: C:\tomcat\work\Standalone\http:\localhost\admin\SESSIONS.ser (The filename, directory name, or volume label syntax is incorrect)
22 years ago