This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Abhimanyu Rathore

Ranch Hand
+ Follow
since Jan 23, 2010
Abhimanyu likes ...
Java Ubuntu
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abhimanyu Rathore

Hi guys

I know this question might have been asked a million time by now..
But i am absolutely bewildered with this constant error.

So, here its..

I have simple html form, which does an doPost to servlet(named DefaultServlet)
with 1st doPost, this is the following error




With second doPost, this is what i am getting..



On the Eclipse Editor Console.. this is what i am getting






Any help is appreciable

P.S - value of <url-pattern> in web.xml is "/DefaultServlet", where as in html form, action element is pointing to "DefaultServlet"
- Tell me if i am doing anything wrong

Thanks in advance









8 years ago

Tim Holloway wrote:

Abhimanyu Rathore wrote:Yeah Tim, i am running tomcat in eclipse
Am i doing something wrong..



You are probably using WTP, the abominable plugin that comes with J2EE Eclipse. The reason why I call it abominable is precisely because it does things like this.

WTP isn't using your edited server.xml, it's using an imperfect copy made of selected files in the Tomcat conf directory and it's not very clever about detecting when you have made changes to the originals. Which is why I install the sysdeo Tomcat plugin and use it instead of the WTP extensions.

Assuming, however, that you won't be installing sysdeo just to fix your SSL problem, you're going to have to give the Eclipse tomcat setting a good swift kick in order to get WTP to pull in your server.xml mods for SSL.

The best place to get help on that is probably the Eclipse forum.



Thanks a Lot Tim..
I did what you suggested, problem was with WTP plugin itself. Its working now..
Thanks a lot friend, for replying so fast and being so accurate on the subject matter..
..








9 years ago
Thanks a lot Tim, for this piece of information.. I'll try asking the same on eclipse forum..
.. Thanks
9 years ago
Yeah Tim, i am running tomcat in eclipse
Am i doing something wrong..
9 years ago
No Tim, the error persist..
One more thing, i want to bring into your notice is,
i tried changing <connector> redirectPort attribute and SSL HTTP/1.1 Connector port to 4321, just in case if it works on different port
The thing that i noticed was, it still forwards to default SSL port "8443", i don't know why this happens..
9 years ago
Any idea Tim what should i do, in order make it work..
9 years ago
i tried the following script , it seems port 8443 isn't active..
9 years ago

Tim Holloway wrote:Normally the first question we ask is whether there's a firewall allowance for port 8443. In the case of localhost access, however, that's usually not a problem.

The next thing to check is the Tomcat logs, especially the catalina.out file. If the SSL Connector failed to configure, there is usually information there.




Hi Tim, thanks for replying..
catalina.out didnt help at all. i couldnt find any reasonable information from this logfile.
I don't think there is any firewall issue either, cos its a ubuntu machine and i never installed any external firewall on it.
i have tried on chrome too, in that case, error message is as follows


thanks in return:)
9 years ago
Hi There

I am trying to "https" to localhost, i.e to myapp
Details are as follows

tomcat-users.xml

web.xml


After using the $JAVA_HOME/bin/keytool, like following


and providing all the necessary password and details in tomcat/conf/server.xml


Now, when i try to access my app in FireFox(same in chrome), i can see the url-redirecting to https and its specific port no.8443
BUT it throws error as "Firefox/Chrome can't establish a connection to the server at localhost:8443"

Please, Any help will be appropriated..
9 years ago

arulk pillai wrote:If you know some Java and SQL, you can try for entry level development roles.


Hi arulk,
i was browsing and found this thread and just wanted to know, is it possible to get a job in java-web-development with an 1 & 1/2 year of java-web development-intern-experience, BUT not a tech degree(in my case i ve commerce degree).. but i am good at what i do..
9 years ago

Abhimanyu Rathore wrote:I am working on ubuntu 11.10 with eclipse 3.7 and "GWT-sdk-plugin & GWT-UI-Designer plugin" installed in it..

Its working fine with gwt-plugin.. BUT not with GWT-UI-designer plugin in design-mode..
For the first time when i installed GWT UI designer plugin from google it worked fine with everything..

But now after restarting eclipse its throwing this error in design-mode as.... "Cant create SWT Browser"

Please help..
Any help will be appreciated

P.S. - Please help me with xulrunner, i dont know what to do with it..




There seems to be a problem with the eclipse version from ubuntu repo, It was old and wasnt working fine with gwt designer plugin
Sorry for inconvenience, but the issue is resolved now
I am working on ubuntu 11.10 with eclipse 3.7 and "GWT-sdk-plugin & GWT-UI-Designer plugin" installed in it..

Its working fine with gwt-plugin.. BUT not with GWT-UI-designer plugin in design-mode..
For the first time when i installed GWT UI designer plugin from google it worked fine with everything..

But now after restarting eclipse its throwing this error in design-mode as.... "Cant create SWT Browser"

Please help..
Any help will be appreciated

P.S. - Please help me with xulrunner, i dont know what to do with it..

Kumar Raja wrote:Spell check... its getAttribute() not getAttritbute()



Thanks a lot raja, it worked.. that was a silly mistake on my behalf(now i am laughing on myself), i guess next time i'll be more careful..
i really appreciate..
10 years ago
JSP
Hey Guys.. Hope you could help me out again..
i am kindaa stuck on to this problem from HF-Servlet-JSP..

Its in chap 3 last servlet version.. The stack trace in tomcat is as follows



Thanks in Advance..

p.s. - I correctly deployed servlet, web.xml and even restarted tomcat properly to see the effect.. but still doesn't work
- I am a bit confused about, this page directive <%@ page import="java.util.*" %> could you please explain how does it work in JSP
- Let me know if you guys need any more information regarding the same..
10 years ago
JSP

Luke Kolin wrote:

Abhimanyu Rathore wrote:Are you trying to say that, the set of skills/knowledge required (from an entry-level-java-developer) is always dependent on the "project" they are assigned to and there are no specific skill-set required in General(from every entry-level-java-developer)



For entry-level? Skills are irrelevant. Aptitude is everything.

Cheers!

Luke



Thanks Luke.. i appreciate ..
10 years ago