No Flex Compiler do Projeto, vc está setando o parâmetro -services ?? > -----Mensagem original----- > De: [email protected] > [mailto:[EMAIL PROTECTED] Em nome de Carlos Gregoreki > Enviada em: quarta-feira, 9 de abril de 2008 01:35 > Para: flexdev > Assunto: [flexdev] Granite DS + Flex 3 + Eclipse 3.3 > > > Opa! > > Pessoal, estou há mais ou menos 15 horas somadas na semana > tentando começar um aplicação em flex com granite para fazer > a ponte com java. > O problema é que está me devolvendo um erro: > > " [RPC Fault faultString="[MessagingError message='Destination 'pojo' > either does not exist or the destination has no channels > defined (and the application does not define any default channels.)']" > faultCode="InvokeFailed" faultDetail="Couldn't establish a > connection to 'pojo'"] " > > quando meu servidor tomcat já está rodando e tento rodar a > aplicação swf. > > vou colocar aqui a estrutura do meu projeto. > > .settings(pasta) > ..org.eclipse.jdt.core.prefs > ..org.eclipse.jst.common.project.facet.core.prefs > ..org.eclipse.wst.common.component > ..org.eclipse.wst.common.project.facet.core.xml > > .bin-debug(pasta) > ..AC_OETags.js > ..application.html > ..application.swf > ..playerProductInstall.swf > ..history(pasta) > ...history.css > ...history.js > ...historyFrame.html > > .flex_src > ..application.mxml > > .html_template(pasta) > .. (um monte de coisa) > > .src > ..(classes java) > > .webContext(pasta para o web) > ..web-inf > ...flex > .... services-config.xml > ...granite > ....granite-config.xml > ...lib > ....commons-beanutils.jar > ....granite.jar > ....jdom.jar > ....log4j.jar > ...web.xml > > > > > > > basicamente é isso... > agora vou colocar o meu web.xml > > > <?xml version="1.0" encoding="UTF-8"?> > <web-app id="WebApp_ID" version="2.4" > xmlns="http://java.sun.com/xml/ ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > <display-name> > application</display-name> > <welcome-file-list> > <welcome-file>index.html</welcome-file> > <welcome-file>index.htm</welcome-file> > <welcome-file>index.jsp</welcome-file> > <welcome-file>default.html</welcome-file> > <welcome-file>default.htm</welcome-file> > <welcome-file>default.jsp</welcome-file> > </welcome-file-list> > <filter> > <filter-name>AMFMessageFilter</filter-name> > <filter-class>org.granite.messaging.webapp.AMFMessageFilter</ > filter-class> > > <init-param> > <param-name>servicesConfigPath</param-name> > <param-value>/WEB-INF/flex/services-config.xml</param- > value> > </init-param> > <init-param> > <param-name>graniteConfigPath</param-name> > <param-value>/WEB-INF/granite/granite-config.xml</param- > value> > </init-param> > > </filter> > <filter-mapping> > <filter-name>AMFMessageFilter</filter-name> > <url-pattern>/graniteamf/*</url-pattern> > </filter-mapping> > > <servlet> > <servlet-name>AMFMessageServlet</servlet-name> > > <servlet-class>org.granite.messaging.webapp.AMFMessageServlet</ > servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>AMFMessageServlet</servlet-name> > <url-pattern>/graniteamf/*</url-pattern> > </servlet-mapping> > </web-app> > > > agora o meu services-config.xml > > <services-config> > > <services> > <service > id="granite-service" > class="flex.messaging.services.RemotingService" > messageTypes="flex.messaging.messages.RemotingMessage"> > <destination id="pojo"> > <channels> > <channel ref="my-graniteamf"/> > </channels> > <properties> > <scope>session</scope> > <source>*</source> > <!-- source>test.pojo.PojoService</source --> > </properties> > </destination> > </service> > </services> > > <channels> > <channel-definition id="my-graniteamf" > class="mx.messaging.channels.AMFChannel"> > <endpoint > uri="http://{server.name}:{server.port}/artpoieseII/ > graniteamf/amf" > class="flex.messaging.endpoints.AMFEndpoint"/> > </channel-definition> > </channels> > > </services-config> > > > > > granite-config.xml está vazio. > > e agora a minha classe teste > > .src > ..test > ...teste.java > > package test; > > public class teste { > public void getString(){ > > } > } > > > > > agora meu application.mxml > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" creationComplete="srv.getString()"> > <mx:RemoteObject > id="srv" > destination="pojo" > source="test.teste"/> > </mx:Application> > > > > muito bem... > > o que acontece? > > estou tentando, ao acabar de ter criado a aplicacao.swf, > chamar, através do granite, a classe test.teste e executar o > método getString(); Se executasse normalmente, não me traria > erro algum. > Aí que tá... tá dando erro... > aquele lá de cima... > > alguém poderia dar uma ajuda ae? > > Obrigado desde já. > > >
--~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para [email protected] Para sair da lista, envie um email em branco para [EMAIL PROTECTED] Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---
