Deploying servlets

I already asked this question in web tier forum, but I didn't get a straight forward answer. =)

How can I know that the hosting website support java?

For what I know is that, with tomcat enabled a can just dump the servlet .class in one of it folder, and just run it like http://localhost:8080/... Or just I have to take the .war file and deployed it and that it.

Am working with netbean and it did create for me the war file, but when I uploaded it, nothing happened. Anything ideas will be appreciated.

[530 byte] By [G_Abubakra] at [2007-11-26 19:38:45]
# 1
I'm sorry, but why don't ask them?
masijade.a at 2007-7-9 22:17:08 > top of Java-index,Java Essentials,New To Java...
# 2
i like this forum.. new to java...
G_Abubakra at 2007-7-9 22:17:08 > top of Java-index,Java Essentials,New To Java...
# 3
Any ideas?
G_Abubakra at 2007-7-9 22:17:08 > top of Java-index,Java Essentials,New To Java...
# 4

I'm sorry, but as I said in the first reply, why don't you ask them?

Asking them would, at least, immediately remove any potential confusion about whether it is possible at all, and let you actually concentrate on the problem, if it is possible. Until you find out that information (and you get that information easiest, quickest, and most reliably, by asking them) you are "chasing ghosts"/"going on a wild goose chase".

I repeat, ask them, or at least give us a good reason why you don't.

masijade.a at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 5

There is no way that you can look at the name of a web hosting company, and determine from that alone whether they support servlets.

However, if you look at their advertising and web site, they may tell you whether they do. Also note that they might have different tiers of service, where some more expensive tiers allow for servlets and cheaper ones do not.

You can also call them, as already suggested (twice).

But if you don't like those options...I'm told the ancient romans would examine the entrails of freshly-killed birds to divine the will of the gods or to look into the future. Maybe that also works with web hosting companies.

paulcwa at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 6

Im very sorry masijade, i didn't understand your question, really sorry!

I asked them, they told me that they already enabled the tomcat, and this is my first time im uploading a servlet in real environment. I uploaded first this .class it return error 404, and again i uploaded the .war file still same error.

Do i need anything to do with descriptor?

G_Abubakra at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 7

> But if you don't like those options...I'm told the

> ancient romans would examine the entrails of

> freshly-killed birds to divine the will of the gods

> or to look into the future. Maybe that also works

> with web hosting companies.

Oh nooo roman, ok i am repeating again, they told me they enabled tomcat, hehehe but i dont believe them. so that why i need some clues before i stumbled into trouble.

paulw did you ever uploaded a file?

G_Abubakra at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 8
Make sure that the web.xml file you deliver with your upload is corectly configured. Deploy it to a local tomcat first, to see if it works, then try uploading it to your hosting service.
masijade.a at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 9
Also take a look at your server logs. They may contain helpful info.Yes, I have uploaded files.
paulcwa at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 10

> Also take a look at your server logs. They may

> contain helpful info.

>

> Yes, I have uploaded files.

Can you tell me which tools are you using, just an idea.

Are you uploading .war and web.xml?

Because other website do have tomcat deployer.

G_Abubakra at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 11
When I upload a file I use scp.I don't use Tomcat.
paulcwa at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 12
> When I upload a file I use scp.> > I don't use Tomcat.paulcw.. what is scp, which web hosting are you using.. can you give me their UR. So that i can check their package.
G_Abubakra at 2007-7-9 22:17:09 > top of Java-index,Java Essentials,New To Java...
# 13

I use Verio for web hosting but I think I was grandfathered into a package that they don't sell anymore.

scp is "secure copy" and it's something you can do with "ssh", which stands for "secure shell".

There's an O'Reilly book about SSH, I think. Plus tons of information on the web.

Google is your friend.

paulcwa at 2007-7-9 22:17:10 > top of Java-index,Java Essentials,New To Java...
# 14

> I use Verio for web hosting but I think I was

> grandfathered into a package that they don't sell

> anymore.

>

> scp is "secure copy" and it's something you can do

> with "ssh", which stands for "secure shell".

>

> There's an O'Reilly book about SSH, I think. Plus

> tons of information on the web.

>

> Google is your friend.

Im aware of scp and ssh..

thanks for help.. i will look for Verio web site.. thanks alot...

G_Abubakra at 2007-7-9 22:17:10 > top of Java-index,Java Essentials,New To Java...