Top.Mail.Ru
July 15th, 2004 - Java developers — LiveJournal
? ?

Java developers

July 15th, 2004
 

02:34 pm - buddha_222 - Stumped

Sorry there were several problems with the last post so i fixed it and reposted.

I have an issue. I am trying to deploy a Servlet using the Sysdeo Tomcat plugin for the latest release of Eclipse. I've followed the instructions from here but I'm having no luck. I can't access the servlet from my browser.

Solved it. The Problem was simple. I had to shutdown and restart Tomcat. Doh!
Servlet CodeCollapse )

Here's the web.xml file:

web.xmlCollapse )

Here's the context path from the server.xml file:

ContextCollapse )

The directory structure is:
C:\eclipse\workspace\Test\WEB-INF\classes\test\TestServlet.class

I'm trying to access it via http://localhost:port/Test/TestServlet

Thanks for any help.
 

03:22 pm - ex_juan_gan - namespaces in XML

Tim Bray insists that there is no way one could totally get rid of namespaces in XML. Unfortunately, he did not say why. Looking it up on Google brings arguments that look stupid:

a) Need them in documents referencing several DTDs.
(Why does anyone need even one DTD?! I don't.)

b) Need them to know the meaning of this or that element throughout all the XML sources around the world.

(Wow, you mean I cannot use element names that are local to my specific XML source, and have to look around the whole world to make sure they are different? Should we prefix all John Smiths, for the same reason?)

c) Namespaces are like directories on a hard drive. You won'd be able to identify files unless you specify their location using directories.

(Wow, do we need a hierarchy of namespaces? How about two different computers, should we all the time prefix folder names with computer names? Should we prefix computer names with namespaces too, since these names tend to repeat?)

So... I think the arguments are pretty dumb. Any other arguments?
Powered by LiveJournal.com