Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Question about Java and Apache

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  UserDir with '@' Sign  
Author Message
xrak

External


Since: Feb 25, 2004
Posts: 4



(Msg. 1) Posted: Wed Feb 25, 2004 4:41 pm
Post subject: Question about Java and Apache
Archived from groups: alt>apache>configuration (more info?)

Hi,

I am currently configuring a Red Hat 9.0 system to be a web server. I have
always had some trouble getting Java applets to work on servers that I have
built. I started doing some research on the net, looking for either the way
to get it to work or where I have to place items to get them to display.
Anyway, I ran across the addon Tomcat, which appears as though it might be
required. Basically, the question I have is what additional software
(beyond Apache) is needed to display applets on a web server?

Thanks,
--
Scott Snella

 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Wed Feb 25, 2004 4:56 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Xrak <xrak.TakeThisOut@yahoo.com> wrote:
 > I ran across the addon Tomcat

Tomcat isn't an add-on, he can work as a stand-alone web-server or
be called by Apache when is needed.

 > Basically, the question I have is what additional software
 > (beyond Apache) is needed to display applets on a web server?

An "applet" is run on the client browser, not on the server, so what
you need is a browser that can run such applet and a user that is
willing to accept such applet on his machine, if you are talking
about Java Servlet or JSP, then you need an Application Server that
can process such things (like Tomcat, or JServ, or JRun, or Dynamo,
or Resin or....) and can be used stand-alone or with Apache.
If you want to use it with apache, then you need some piece of
software (connector) to hook apache with the application server.

Davide

--
| You have acquired a scroll entitled 'irk gleknow mizk'(n).--More--
| This is an IBM Manual scroll.--More-- You are permanently confused.
| -- Dave Decot
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
xrak

External


Since: Feb 25, 2004
Posts: 4



(Msg. 3) Posted: Wed Feb 25, 2004 6:44 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks, that is kind of what I thought, but, have had a hell of a time
getting some applets to work correctly. All I am trying to do is run a
fairly simple ticker tape applet, yet, I have always had trouble with it.
First off, on some servers, the applet had to be located in a specific
place, at a certain level of the document heirarchy to work. I never really
played a LOT with it on my test server, but, now that I am trying to get it
to run right, I have gotten everything from an access denided message in the
area where the applet should run, to a Mozilla browser crash. I have the
IBM JRE installed. I think it is 1.4. Do I need a SDK or anything?

--
Scott Snella

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:c1i9hu$1icrd3$1@ID-18487.news.uni-berlin.de...
 > Xrak <xrak RemoveThis @yahoo.com> wrote:
  > > I ran across the addon Tomcat
 >
 > Tomcat isn't an add-on, he can work as a stand-alone web-server or
 > be called by Apache when is needed.
 >
  > > Basically, the question I have is what additional software
  > > (beyond Apache) is needed to display applets on a web server?
 >
 > An "applet" is run on the client browser, not on the server, so what
 > you need is a browser that can run such applet and a user that is
 > willing to accept such applet on his machine, if you are talking
 > about Java Servlet or JSP, then you need an Application Server that
 > can process such things (like Tomcat, or JServ, or JRun, or Dynamo,
 > or Resin or....) and can be used stand-alone or with Apache.
 > If you want to use it with apache, then you need some piece of
 > software (connector) to hook apache with the application server.
 >
 > Davide
 >
 > --
 > | You have acquired a scroll entitled 'irk gleknow mizk'(n).--More--
 > | This is an IBM Manual scroll.--More-- You are permanently confused.
 > | -- Dave Decot
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
user2587

External


Since: Dec 08, 2003
Posts: 11



(Msg. 4) Posted: Wed Feb 25, 2004 7:09 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

the applet runs via the CLIENT web browser so it's nothing to do with APACHE web server, upgrade to the latest java client version
<a style='text-decoration: underline;' href="http://www.java.com/en/index.jsp" target="_blank">http://www.java.com/en/index.jsp</a>

"Xrak" <xrak.RemoveThis@yahoo.com> wrote in message news:_p3%b.7597$yZ1.5049@newsread2.news.pas.earthlink.net...
 > Thanks, that is kind of what I thought, but, have had a hell of a time
 > getting some applets to work correctly. All I am trying to do is run a
 > fairly simple ticker tape applet, yet, I have always had trouble with it.
 > First off, on some servers, the applet had to be located in a specific
 > place, at a certain level of the document heirarchy to work. I never really
 > played a LOT with it on my test server, but, now that I am trying to get it
 > to run right, I have gotten everything from an access denided message in the
 > area where the applet should run, to a Mozilla browser crash. I have the
 > IBM JRE installed. I think it is 1.4. Do I need a SDK or anything?
 >
 > --
 > Scott Snella
 >
 > "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
 > news:c1i9hu$1icrd3$1@ID-18487.news.uni-berlin.de...
  > > Xrak <xrak.RemoveThis@yahoo.com> wrote:
   > > > I ran across the addon Tomcat
  > >
  > > Tomcat isn't an add-on, he can work as a stand-alone web-server or
  > > be called by Apache when is needed.
  > >
   > > > Basically, the question I have is what additional software
   > > > (beyond Apache) is needed to display applets on a web server?
  > >
  > > An "applet" is run on the client browser, not on the server, so what
  > > you need is a browser that can run such applet and a user that is
  > > willing to accept such applet on his machine, if you are talking
  > > about Java Servlet or JSP, then you need an Application Server that
  > > can process such things (like Tomcat, or JServ, or JRun, or Dynamo,
  > > or Resin or....) and can be used stand-alone or with Apache.
  > > If you want to use it with apache, then you need some piece of
  > > software (connector) to hook apache with the application server.
  > >
  > > Davide
  > >
  > > --
  > > | You have acquired a scroll entitled 'irk gleknow mizk'(n).--More--
  > > | This is an IBM Manual scroll.--More-- You are permanently confused.
  > > | -- Dave Decot
  > > |
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
xrak

External


Since: Feb 25, 2004
Posts: 4



(Msg. 5) Posted: Wed Feb 25, 2004 8:44 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Any problems I am having don't appear to be related to the java client. It
could be the exact place where I am storing the java code. Like I said,
there (on all production servers I have used) has been one and only one
directory level at which the applets will run correctly, everywhere else I
get errors. That would imply (to me at least) that there is something
special about the apache configuration whereby java applets thrown somewhere
other than exactly where it wants it don't run.

--
Scott Snella

"Webmaster (N.S)" <webmaster@ns> wrote in message
news:403cbdf3$1@news.star.co.uk...
 > the applet runs via the CLIENT web browser so it's nothing to do with
APACHE web server, upgrade to the latest java client version
<font color=purple> > <a style='text-decoration: underline;' href="http://www.java.com/en/index.jsp</font" target="_blank">http://www.java.com/en/index.jsp</font</a>>
 >
 > "Xrak" <xrak.DeleteThis@yahoo.com> wrote in message
news:_p3%b.7597$yZ1.5049@newsread2.news.pas.earthlink.net...
  > > Thanks, that is kind of what I thought, but, have had a hell of a time
  > > getting some applets to work correctly. All I am trying to do is run a
  > > fairly simple ticker tape applet, yet, I have always had trouble with
it.
  > > First off, on some servers, the applet had to be located in a specific
  > > place, at a certain level of the document heirarchy to work. I never
really
  > > played a LOT with it on my test server, but, now that I am trying to get
it
  > > to run right, I have gotten everything from an access denided message in
the
  > > area where the applet should run, to a Mozilla browser crash. I have
the
  > > IBM JRE installed. I think it is 1.4. Do I need a SDK or anything?
  > >
  > > --
  > > Scott Snella
  > >
  > > "Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
  > > news:c1i9hu$1icrd3$1@ID-18487.news.uni-berlin.de...
   > > > Xrak <xrak.DeleteThis@yahoo.com> wrote:
   > > > > I ran across the addon Tomcat
   > > >
   > > > Tomcat isn't an add-on, he can work as a stand-alone web-server or
   > > > be called by Apache when is needed.
   > > >
   > > > > Basically, the question I have is what additional software
   > > > > (beyond Apache) is needed to display applets on a web server?
   > > >
   > > > An "applet" is run on the client browser, not on the server, so what
   > > > you need is a browser that can run such applet and a user that is
   > > > willing to accept such applet on his machine, if you are talking
   > > > about Java Servlet or JSP, then you need an Application Server that
   > > > can process such things (like Tomcat, or JServ, or JRun, or Dynamo,
   > > > or Resin or....) and can be used stand-alone or with Apache.
   > > > If you want to use it with apache, then you need some piece of
   > > > software (connector) to hook apache with the application server.
   > > >
   > > > Davide
   > > >
   > > > --
   > > > | You have acquired a scroll entitled 'irk gleknow mizk'(n).--More--
   > > > | This is an IBM Manual scroll.--More-- You are permanently confused.
   > > > | -- Dave Decot
   > > > |
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
xrak

External


Since: Feb 25, 2004
Posts: 4



(Msg. 6) Posted: Wed Feb 25, 2004 8:57 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This is right out of the Java Console... the rights are chmodded to 755,
access to the directory has been given, everything appears to be setup
correctly, except, it doesn't run.

Loading applet ...
Initializing applet ...
Starting applet ...
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker.class" target="_blank">http://192/168/0/5/java/ticker.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker.class" target="_blank">http://192/168/0/5/java/ticker.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker.class" target="_blank">http://192/168/0/5/java/ticker.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker.class" target="_blank">http://192/168/0/5/java/ticker.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker/class.class" target="_blank">http://192/168/0/5/java/ticker/class.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker/class.class" target="_blank">http://192/168/0/5/java/ticker/class.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker/class.class" target="_blank">http://192/168/0/5/java/ticker/class.class</a> with no proxy
Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker/class.class" target="_blank">http://192/168/0/5/java/ticker/class.class</a> with no proxy
load: class <a style='text-decoration: underline;' href="http://192.168.0.5/java/ticker.class" target="_blank">http://192.168.0.5/java/ticker.class</a> not found.
java.lang.ClassNotFoundException: http:..192.168.0.5.java.ticker.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: 192
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown
Source)
at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception: java.lang.ClassNotFoundException:
http:..192.168.0.5.java.ticker.class

--
Scott Snella

"Webmaster (N.S)" <webmaster@ns> wrote in message
news:403cbdf3$1@news.star.co.uk...
 > the applet runs via the CLIENT web browser so it's nothing to do with
APACHE web server, upgrade to the latest java client version
<font color=purple> > <a style='text-decoration: underline;' href="http://www.java.com/en/index.jsp</font" target="_blank">http://www.java.com/en/index.jsp</font</a>>
 >
 > "Xrak" <xrak.TakeThisOut@yahoo.com> wrote in message
news:_p3%b.7597$yZ1.5049@newsread2.news.pas.earthlink.net...
  > > Thanks, that is kind of what I thought, but, have had a hell of a time
  > > getting some applets to work correctly. All I am trying to do is run a
  > > fairly simple ticker tape applet, yet, I have always had trouble with
it.
  > > First off, on some servers, the applet had to be located in a specific
  > > place, at a certain level of the document heirarchy to work. I never
really
  > > played a LOT with it on my test server, but, now that I am trying to get
it
  > > to run right, I have gotten everything from an access denided message in
the
  > > area where the applet should run, to a Mozilla browser crash. I have
the
  > > IBM JRE installed. I think it is 1.4. Do I need a SDK or anything?
  > >
  > > --
  > > Scott Snella
  > >
  > > "Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> wrote in message
  > > news:c1i9hu$1icrd3$1@ID-18487.news.uni-berlin.de...
   > > > Xrak <xrak.TakeThisOut@yahoo.com> wrote:
   > > > > I ran across the addon Tomcat
   > > >
   > > > Tomcat isn't an add-on, he can work as a stand-alone web-server or
   > > > be called by Apache when is needed.
   > > >
   > > > > Basically, the question I have is what additional software
   > > > > (beyond Apache) is needed to display applets on a web server?
   > > >
   > > > An "applet" is run on the client browser, not on the server, so what
   > > > you need is a browser that can run such applet and a user that is
   > > > willing to accept such applet on his machine, if you are talking
   > > > about Java Servlet or JSP, then you need an Application Server that
   > > > can process such things (like Tomcat, or JServ, or JRun, or Dynamo,
   > > > or Resin or....) and can be used stand-alone or with Apache.
   > > > If you want to use it with apache, then you need some piece of
   > > > software (connector) to hook apache with the application server.
   > > >
   > > > Davide
   > > >
   > > > --
   > > > | You have acquired a scroll entitled 'irk gleknow mizk'(n).--More--
   > > > | This is an IBM Manual scroll.--More-- You are permanently confused.
   > > > | -- Dave Decot
   > > > |
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 7) Posted: Wed Feb 25, 2004 9:45 pm
Post subject: Re: Question about Java and Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Xrak <xrak.TakeThisOut@yahoo.com> wrote:
 > Starting applet ...
 > Connecting <a style='text-decoration: underline;' href="http://192/168/0/5/java/ticker.class" target="_blank">http://192/168/0/5/java/ticker.class</a> with no proxy

The applet is loaded, then it try to load another class but it
fail. The problem is the "." in the ip address is translated into
a '/', so the loader fail. Check the html page where the applet
is called.

Davide

--
| ... the MYSTERIANS are in here with my CORDUROY SOAP DISH!!
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Question about Java and Apache 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]