Do all JSP/Java bean webapplicayions need an xml file?

V

vivienne wykes

Hi all,

I have a jsp/ java bean webb application. This is being run on Resin at
Lunarpages.

The site has been shut down due to 'class-loader' not found. I was told it
was causing problems for other java users on the server.

I realise this is limited information but any insight would be welcome.
This is our first JSP / java bean web app.

Regards

Jim
 
A

Andrew Thompson

I have a jsp/ java bean webb application. This is being run on Resin at
Lunarpages.

I have a couple of .JSP/servlet based
sites at lunar pages myself..

Note that LunarPahes has it's own forums..
<http://www.lunarforums.com/>

Further, on the occasions that I have had need
to approach customer service for help (via web-form
and email), they have given me prompt and informative
replies with a tracking number to follow progress.
The site has been shut down due to 'class-loader' not found. I was told it
was causing problems for other java users on the server.

What, you mean your Java was causing problems
for other users, so LP shut down your Java?

That would hardly be a surprise.
I realise this is limited information but any insight would be welcome.
This is our first JSP / java bean web app.

'our'? Who are you? If a commercial outfit,
it seems you need to be hiring someone with the
experience. Further, it sounds like that person
you hire should be consulting with the LunarPages
support staff to fix the mess you are in.

Just my 2c.
 
C

Chris Smith

vivienne said:
I have a jsp/ java bean webb application. This is being run on Resin at
Lunarpages.

The site has been shut down due to 'class-loader' not found. I was told it
was causing problems for other java users on the server.

I realise this is limited information but any insight would be welcome.
This is our first JSP / java bean web app.

It is very limited information, to the point that it's hard to say
anything. However, last I checked Resin is free for use in development,
so why not grab a copy and try to reproduce this on your own machine?

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
V

vivienne wykes

Hi all,

Thanks for the replys. We are developing/learning jsp/java . There are two
of us learning. We used Tomcat then Resin to test the app on our local
server.

This worked fine and was running on Lunarpages server for around a week
before this message came in about our app affecting other server users
sites.

As I am new to this not sure how this could be.... I thought the whole
idea of having uniquly named file paths would prevent this . ie
com.mycom.etc.

I cannot provide any further information regarding the problem as I still
have to hear back from Lunarpages.


Any guidance would be well recieved.

Thanks
Jim
 
A

Andrew Thompson

This worked fine and was running on Lunarpages server for around a week
before this message came in about our app affecting other server users
sites.

As I am new to this not sure how this could be.... I thought the whole
idea of having uniquly named file paths would prevent this . ie
com.mycom.etc.

A DOS attack on a loophole in your app.
might be causing load problems. An open
access to retrieve or send information might
be clogging the server's network connections
and slowing the delivery of other sites.

Running a server is a complex and delicate
balance that goes beyond file paths.
I cannot provide any further information regarding the problem as I still
have to hear back from Lunarpages.

They are usually pretty quick, why do you not post
the relevant part of the message from the support
staff to the LunarPages forums and ask advice there.

We certainly cannot debug your web-app problems from
here, given the scanty information you have provided.
(One hint might be to post the relevant part of the
message you received, to the LunarPages forums..)
 
V

vivienne wykes

Thanks for that Andrew,

I will seek help from the lunar pages forum.
For future posts what would be the relevant code to post in order to get
de-bug help. Would it be a login JSP and or the bean it uses ? and the
wedding-pictures.jsp along with the bean(s) it uses?
Regards

Jim
 
A

Andrew Thompson

I will seek help from the lunar pages forum.
For future posts what would be the relevant code to post in order to get
de-bug help.

It is hard to say exactly where problem is,
but the first clues may be had in the actual
text you were sent by LunarPages,..

HTH
 
V

vivienne wykes

Hi there,

The actual text from Lunarpages is ..."unknown element 'class-loader'".
Thats as much as I have currently.

Thanks
Jim
 
C

Christophe Vanfleteren

vivienne said:
The actual text from Lunarpages is ..."unknown element 'class-loader'".
Thats as much as I have currently.

To me, that sounds like an XML parser error (the "unknown element" bit).
Maybe you changed some config file incorrectly?
 
V

vivienne wykes

Thanks Christophe,

This is my first JSP/java bean site.

I have been trying to find an online aricle on the purpose of the web.xml
file.
Plenty of articles on xml but web.xmls purpose is not described in any
literature I have.


The xml file I have uploaded is

<!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 xmlns="http://caucho.com/ns/resin">

<class-loader>
<make-loader path="/home/rhwedd2/WEB-INF/classes">
<ejb-doclet srcdir="/home/rhwedd2/WEB-INF/classes"/>
</make-loader>

<compiling-loader path="/home/rhwedd2/WEB-INF/classes"/>
</class-loader>


</web-app>

My next task is to look at WAR files am I right in thinking that the WAR
file creation tool from sun creates the web.xml file for the application?
I appreciate I still have some reading to do in this area ...
Thanks

Jim
 
S

Sudsy

vivienne wykes wrote:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<snip>

Did you realize that the URL in that statement is actually a
link to the DTD document? Paste it into your web browser and
see the definitive declaration for the format of the web.xml
file. Nothing in there about a "class-loader" element...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top