header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Thirunavukarasu
Points:0
Posts:0

11/23/2010 4:14:45 AM

Title: Problem Using IP Address instead of localhost


Hi,

I'm creating Flex Application based on Blazeds FrameWork using Tomcat Server. I'm using RemoteObject to access the java classes. It is working fine if I use localhost.

For Example:

http://localhost:8080/Test/one.html

If I use IP Address instead of localhost i'm getting the following Error

For Example :

http://10.xx.xx.xx:8080/Test/one.html

[BlazeDS]Unexpected error encountered in Message Broker servlet
java.lang.NoClassDefFoundError: flex/messaging/security/TomcatLoginHolder
at flex.messaging.security.TomcatLoginCommand.doAuthentication(TomcatLog
inCommand.java:44)
at flex.messaging.security.LoginManager.login(LoginManager.java:221)
at flex.messaging.services.AuthenticationService.decodeAndLoginWithChars
et(AuthenticationService.java:223)
at flex.messaging.services.AuthenticationService.decodeAndLogin(Authenti
cationService.java:184)
at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java
:307)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: flex.messaging.security.TomcatLogin
Holder
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1233)
... 18 more



Note :

I gave the IP Address in a service-config.xml also

<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://10.xx.xx.xxx:8080/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>


Please help me on that issue.






1
Rex
Points: 1280
Posts:0
11/24/2010 11:24:06 AM



i think some firewall is blocking the incoming connections on port 8080. In case of localhost the connection is made internally but when IP is mentioned then the connection has to pass from firewall


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions