HTML form's POST method behaving like GET method
by Balamurali Ananthan
Hello,
I am using Jboss Portal 2.6.6-GA. I have a form in a portlet that collects
username and password from the user and sends it to the portlet logic to
process it.
<form name="mainForm" action="<portlet:actionURL/>" method="POST">
<INPUT TYPE=TEXT NAME=username SIZE=20>
<INPUT TYPE=PASSWORD NAME=password SIZE=20>
</form>
Even though the form is sent using POST method, the form data is seen in the
address bar of the browser like including the password that the user typed.
Here is what I am seeing in the address bar:
https://myserver.com:443/portal/sec/portal/default/default/MyPortletWindow?p
assword=somepassword&action=e&windowstate=normal&mode=view&username=myself
What am I missing? Any clues?
Thanks.
.Bala.
17 years, 5 months
[Beginners Corner] - Could not obtain connection to any of these urls: localhost:
by JavaStud
When trying to run the helloworld quickstart, 'ant deploy' builds successfully but when running 'ant runtest', I get the following error:
runtest:
[echo] Runs Test JMS Sender
[java] Exception in thread "main" javax.naming.CommunicationException: Coul
d not obtain connection to any of these urls: localhost:1099 and discovery faile
d with error: javax.naming.CommunicationException: Receive timed out [Root excep
tion is java.net.SocketTimeoutException: Receive timed out] [Root exception is j
avax.naming.CommunicationException: Failed to connect to server localhost:1099 [
Root exception is javax.naming.ServiceUnavailableException: Failed to connect to
server localhost:1099 [Root exception is java.net.ConnectException: Connection
refused: connect]]]
[java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
1562)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:63
4)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
7)
[java] at javax.naming.InitialContext.lookup(Unknown Source)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.setupConnection(SendJMSMessage.java:52)
[java] at org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSM
essage.main(SendJMSMessage.java:81)
[java] Caused by: javax.naming.CommunicationException: Failed to connect to
server localhost:1099 [Root exception is javax.naming.ServiceUnavailableExcepti
on: Failed to connect to server localhost:1099 [Root exception is java.net.Conne
ctException: Connection refused: connect]]
[java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:274)
[java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
1533)
[java] ... 5 more
[java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne
ct to server localhost:1099 [Root exception is java.net.ConnectException: Connec
tion refused: connect]
[java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:248)
[java] ... 6 more
Does this mean that port 1099 is blocked?
Thank you for any help.
Kevin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186816#4186816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186816
17 years, 5 months
[EJB 3.0] - Help need to solve the jms not bound error
by houston_dragon
Hi,
I am learning JBoss/EJB3 using this tutorial:
http://www.netbeans.org/kb/60/javaee/ejb30.html
Getting Started with Java EE Applications
I am using Netbeans 6.1. I just use the JBoss 5.0.0CR2 as the application server. I follow the instructions and Everything is fine until I click the Post Message link in the ListNews servlet. I got the following errors.
Anybody can give me a clue what is wrong?
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error instantiating servlet class web.PostMessage
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.RuntimeException: Unable to inject jndi dependency: env/connectionFactory into property web.PostMessage.connectionFactory: jms not bound
org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82)
org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:361)
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:244)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
root cause
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: jms not bound]
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1257)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:361)
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:244)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
root cause
javax.naming.NameNotFoundException: jms not bound
org.jnp.server.NamingServer.getBinding(NamingServer.java:564)
org.jnp.server.NamingServer.getBinding(NamingServer.java:572)
org.jnp.server.NamingServer.getObject(NamingServer.java:578)
org.jnp.server.NamingServer.lookup(NamingServer.java:288)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
javax.naming.InitialContext.lookup(InitialContext.java:392)
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1251)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:760)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:361)
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:244)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:189)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:91)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:92)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:325)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
note The full stack trace of the root cause is available in the JBoss Web/2.1.1.CR7 logs.
--------------------------------------------------------------------------------
JBoss Web/2.1.1.CR7
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186805#4186805
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186805
17 years, 5 months