You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Gordon Jones <go...@yahoo.com> on 2001/10/08 21:03:09 UTC

Install Problem: Admin client prints raw HTML

Hi,

I'm trying to upgrade from a previous version of
Apache SOAP, and I'm having trouble running the admin
client.

The main page runs ok, but when I hit deploy or list
any other button I get the following raw HTML/Java
junk.

Please assist me if you can. Here is the output I get
in the browser window from "list":

<%@ page import="java.util.*,
org.apache.soap.server.*" %>

<h1>Service Listing</h1>

<% 
  ServiceManager serviceManager =
   
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application);

  String[] serviceNames = serviceManager.list ();
  if (serviceNames.length == 0) {
    out.println ("<p>Sorry, there are no services
currently deployed.</p>");
  } else {
    out.println ("<p>Here are the deployed services
(select one to see");
    out.println ("details)</p>");
    %>
    <ul>
    <%
    for (int i = 0; i < serviceNames.length; i++) {
      String id = serviceNames[i];
    %>
      <li><a href="showdetails.jsp?id=<%=id%>"><%=
id%></li>
    <%
    }
    %>
    </ul>
    <%
  }
%>




__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

Re: Install Problem: Admin client prints raw HTML

Posted by Victor Hadianto <vi...@nuix.com.au>.
If you are using Tomcat, have a look on the 
tomcat/work directory. That's where Tomcat, AFAIK, compile and store your 
JSP. Delete Apache SOAP directory and the next time you refresh your JSP it 
should be recompiled using jsp in the war file.


victor

On Tue,  9 Oct 2001 05:28, you wrote:
> Ok. The problem is due to precomiled jsps but I have
> no idea where they are.
>
> By continuously hitting "refresh" I eventually got new
> copies to load, but I have no idea where the original
> compiled pages were being kept !
>
> --- Gordon Jones <go...@yahoo.com> wrote:
> > Hi,
> >
> > I'm trying to upgrade from a previous version of
> > Apache SOAP, and I'm having trouble running the
> > admin
> > client.
> >
> > The main page runs ok, but when I hit deploy or list
> > any other button I get the following raw HTML/Java
> > junk.
> >
> > Please assist me if you can. Here is the output I
> > get
> > in the browser window from "list":
> >
> > <%@ page import="java.util.*,
> > org.apache.soap.server.*" %>
> >
> > <h1>Service Listing</h1>
> >
> > <%
> >   ServiceManager serviceManager =
>
> org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ap
>plication);
>
> >   String[] serviceNames = serviceManager.list ();
> >   if (serviceNames.length == 0) {
> >     out.println ("<p>Sorry, there are no services
> > currently deployed.</p>");
> >   } else {
> >     out.println ("<p>Here are the deployed services
> > (select one to see");
> >     out.println ("details)</p>");
> >     %>
> >     <ul>
> >     <%
> >     for (int i = 0; i < serviceNames.length; i++) {
> >       String id = serviceNames[i];
> >     %>
> >       <li><a href="showdetails.jsp?id=<%=id%>"><%=
> > id%></li>
> >     <%
> >     }
> >     %>
> >     </ul>
> >     <%
> >   }
> > %>
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > NEW from Yahoo! GeoCities - quick and easy web site
> > hosting, just $8.95/month.
> > http://geocities.yahoo.com/ps/info1
>
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> $8.95/month. http://geocities.yahoo.com/ps/info1

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

Re: Install Problem: Admin client prints raw HTML

Posted by Victor Hadianto <vi...@nuix.com.au>.
If you are using Tomcat, have a look on the 
tomcat/work directory. That's where Tomcat, AFAIK, compile and store your 
JSP. Delete Apache SOAP directory and the next time you refresh your JSP it 
should be recompiled using jsp in the war file.


victor

On Tue,  9 Oct 2001 05:28, you wrote:
> Ok. The problem is due to precomiled jsps but I have
> no idea where they are.
>
> By continuously hitting "refresh" I eventually got new
> copies to load, but I have no idea where the original
> compiled pages were being kept !
>
> --- Gordon Jones <go...@yahoo.com> wrote:
> > Hi,
> >
> > I'm trying to upgrade from a previous version of
> > Apache SOAP, and I'm having trouble running the
> > admin
> > client.
> >
> > The main page runs ok, but when I hit deploy or list
> > any other button I get the following raw HTML/Java
> > junk.
> >
> > Please assist me if you can. Here is the output I
> > get
> > in the browser window from "list":
> >
> > <%@ page import="java.util.*,
> > org.apache.soap.server.*" %>
> >
> > <h1>Service Listing</h1>
> >
> > <%
> >   ServiceManager serviceManager =
>
> org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ap
>plication);
>
> >   String[] serviceNames = serviceManager.list ();
> >   if (serviceNames.length == 0) {
> >     out.println ("<p>Sorry, there are no services
> > currently deployed.</p>");
> >   } else {
> >     out.println ("<p>Here are the deployed services
> > (select one to see");
> >     out.println ("details)</p>");
> >     %>
> >     <ul>
> >     <%
> >     for (int i = 0; i < serviceNames.length; i++) {
> >       String id = serviceNames[i];
> >     %>
> >       <li><a href="showdetails.jsp?id=<%=id%>"><%=
> > id%></li>
> >     <%
> >     }
> >     %>
> >     </ul>
> >     <%
> >   }
> > %>
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > NEW from Yahoo! GeoCities - quick and easy web site
> > hosting, just $8.95/month.
> > http://geocities.yahoo.com/ps/info1
>
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> $8.95/month. http://geocities.yahoo.com/ps/info1

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

RE: Error on Call( )

Posted by Oleg Timofeyev <li...@2xdigi.com>.
you right, I got it, thanks.

-----Original Message-----
From: Victor Hadianto [mailto:victorh@nuix.com.au]
Sent: Tuesday, October 09, 2001 12:07 AM
To: soap-user@xml.apache.org
Subject: Re: Error on Call( )


What is your XML Parser?

Most likely Xerces isn't it? Then Xerces is not in your classpath.

victor

On Tue,  9 Oct 2001 13:28, you wrote:
> For some reason I get this:
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
> 	at soap_client.classLogin.login(classLogin.java:20)
> 	at soap_client.classLogin.main(classLogin.java:56)
> Exception in thread "main"
>
> --
>
> Line 20 is:
> Call call = new Call( );
> and line 56 is a call to the method that contains line 20
>
> --
>
> My imports are
>
> package soap_client;
> import java.net.URL;
> import java.util.Enumeration;
> import java.util.Hashtable;
> import java.util.Vector;
> import org.apache.soap.Constants;
> import org.apache.soap.Fault;
> import org.apache.soap.SOAPException;
> import org.apache.soap.rpc.Call;
> import org.apache.soap.rpc.Parameter;
> import org.apache.soap.rpc.Response;
>
> Any ideas guys? Thank you.
>
> Oleg

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

RE: Error on Call( )

Posted by Oleg Timofeyev <li...@2xdigi.com>.
you right, I got it, thanks.

-----Original Message-----
From: Victor Hadianto [mailto:victorh@nuix.com.au]
Sent: Tuesday, October 09, 2001 12:07 AM
To: soap-user@xml.apache.org
Subject: Re: Error on Call( )


What is your XML Parser?

Most likely Xerces isn't it? Then Xerces is not in your classpath.

victor

On Tue,  9 Oct 2001 13:28, you wrote:
> For some reason I get this:
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
> 	at soap_client.classLogin.login(classLogin.java:20)
> 	at soap_client.classLogin.main(classLogin.java:56)
> Exception in thread "main"
>
> --
>
> Line 20 is:
> Call call = new Call( );
> and line 56 is a call to the method that contains line 20
>
> --
>
> My imports are
>
> package soap_client;
> import java.net.URL;
> import java.util.Enumeration;
> import java.util.Hashtable;
> import java.util.Vector;
> import org.apache.soap.Constants;
> import org.apache.soap.Fault;
> import org.apache.soap.SOAPException;
> import org.apache.soap.rpc.Call;
> import org.apache.soap.rpc.Parameter;
> import org.apache.soap.rpc.Response;
>
> Any ideas guys? Thank you.
>
> Oleg

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

Re: Error on Call( )

Posted by Victor Hadianto <vi...@nuix.com.au>.
What is your XML Parser?

Most likely Xerces isn't it? Then Xerces is not in your classpath.

victor

On Tue,  9 Oct 2001 13:28, you wrote:
> For some reason I get this:
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
> 	at soap_client.classLogin.login(classLogin.java:20)
> 	at soap_client.classLogin.main(classLogin.java:56)
> Exception in thread "main"
>
> --
>
> Line 20 is:
> Call call = new Call( );
> and line 56 is a call to the method that contains line 20
>
> --
>
> My imports are
>
> package soap_client;
> import java.net.URL;
> import java.util.Enumeration;
> import java.util.Hashtable;
> import java.util.Vector;
> import org.apache.soap.Constants;
> import org.apache.soap.Fault;
> import org.apache.soap.SOAPException;
> import org.apache.soap.rpc.Call;
> import org.apache.soap.rpc.Parameter;
> import org.apache.soap.rpc.Response;
>
> Any ideas guys? Thank you.
>
> Oleg

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

Re: Error on Call( )

Posted by Victor Hadianto <vi...@nuix.com.au>.
What is your XML Parser?

Most likely Xerces isn't it? Then Xerces is not in your classpath.

victor

On Tue,  9 Oct 2001 13:28, you wrote:
> For some reason I get this:
>
> java.lang.NoClassDefFoundError: org/w3c/dom/Node
> 	at soap_client.classLogin.login(classLogin.java:20)
> 	at soap_client.classLogin.main(classLogin.java:56)
> Exception in thread "main"
>
> --
>
> Line 20 is:
> Call call = new Call( );
> and line 56 is a call to the method that contains line 20
>
> --
>
> My imports are
>
> package soap_client;
> import java.net.URL;
> import java.util.Enumeration;
> import java.util.Hashtable;
> import java.util.Vector;
> import org.apache.soap.Constants;
> import org.apache.soap.Fault;
> import org.apache.soap.SOAPException;
> import org.apache.soap.rpc.Call;
> import org.apache.soap.rpc.Parameter;
> import org.apache.soap.rpc.Response;
>
> Any ideas guys? Thank you.
>
> Oleg

-- 
Victor Hadianto
Nuix Pty. Ltd.      (02) 9283 9010

Error on Call( )

Posted by Oleg Timofeyev <li...@2xdigi.com>.
For some reason I get this:

java.lang.NoClassDefFoundError: org/w3c/dom/Node
	at soap_client.classLogin.login(classLogin.java:20)
	at soap_client.classLogin.main(classLogin.java:56)
Exception in thread "main" 

--

Line 20 is:
Call call = new Call( );
and line 56 is a call to the method that contains line 20

--

My imports are

package soap_client;
import java.net.URL;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.SOAPException;
import org.apache.soap.rpc.Call;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;

Any ideas guys? Thank you.

Oleg



Error on Call( )

Posted by Oleg Timofeyev <li...@2xdigi.com>.
For some reason I get this:

java.lang.NoClassDefFoundError: org/w3c/dom/Node
	at soap_client.classLogin.login(classLogin.java:20)
	at soap_client.classLogin.main(classLogin.java:56)
Exception in thread "main" 

--

Line 20 is:
Call call = new Call( );
and line 56 is a call to the method that contains line 20

--

My imports are

package soap_client;
import java.net.URL;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.SOAPException;
import org.apache.soap.rpc.Call;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;

Any ideas guys? Thank you.

Oleg



Re: Install Problem: Admin client prints raw HTML

Posted by Gordon Jones <go...@yahoo.com>.
Ok. The problem is due to precomiled jsps but I have
no idea where they are.

By continuously hitting "refresh" I eventually got new
copies to load, but I have no idea where the original
compiled pages were being kept !

--- Gordon Jones <go...@yahoo.com> wrote:
> Hi,
> 
> I'm trying to upgrade from a previous version of
> Apache SOAP, and I'm having trouble running the
> admin
> client.
> 
> The main page runs ok, but when I hit deploy or list
> any other button I get the following raw HTML/Java
> junk.
> 
> Please assist me if you can. Here is the output I
> get
> in the browser window from "list":
> 
> <%@ page import="java.util.*,
> org.apache.soap.server.*" %>
> 
> <h1>Service Listing</h1>
> 
> <% 
>   ServiceManager serviceManager =
>    
>
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application);
> 
>   String[] serviceNames = serviceManager.list ();
>   if (serviceNames.length == 0) {
>     out.println ("<p>Sorry, there are no services
> currently deployed.</p>");
>   } else {
>     out.println ("<p>Here are the deployed services
> (select one to see");
>     out.println ("details)</p>");
>     %>
>     <ul>
>     <%
>     for (int i = 0; i < serviceNames.length; i++) {
>       String id = serviceNames[i];
>     %>
>       <li><a href="showdetails.jsp?id=<%=id%>"><%=
> id%></li>
>     <%
>     }
>     %>
>     </ul>
>     <%
>   }
> %>
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site
> hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

Re: Install Problem: Admin client prints raw HTML

Posted by Gordon Jones <go...@yahoo.com>.
Ok. The problem is due to precomiled jsps but I have
no idea where they are.

By continuously hitting "refresh" I eventually got new
copies to load, but I have no idea where the original
compiled pages were being kept !

--- Gordon Jones <go...@yahoo.com> wrote:
> Hi,
> 
> I'm trying to upgrade from a previous version of
> Apache SOAP, and I'm having trouble running the
> admin
> client.
> 
> The main page runs ok, but when I hit deploy or list
> any other button I get the following raw HTML/Java
> junk.
> 
> Please assist me if you can. Here is the output I
> get
> in the browser window from "list":
> 
> <%@ page import="java.util.*,
> org.apache.soap.server.*" %>
> 
> <h1>Service Listing</h1>
> 
> <% 
>   ServiceManager serviceManager =
>    
>
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application);
> 
>   String[] serviceNames = serviceManager.list ();
>   if (serviceNames.length == 0) {
>     out.println ("<p>Sorry, there are no services
> currently deployed.</p>");
>   } else {
>     out.println ("<p>Here are the deployed services
> (select one to see");
>     out.println ("details)</p>");
>     %>
>     <ul>
>     <%
>     for (int i = 0; i < serviceNames.length; i++) {
>       String id = serviceNames[i];
>     %>
>       <li><a href="showdetails.jsp?id=<%=id%>"><%=
> id%></li>
>     <%
>     }
>     %>
>     </ul>
>     <%
>   }
> %>
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site
> hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1