You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sebastian Knoerzer <sk...@netlands.de> on 2005/03/31 16:33:58 UTC

stuck on obtaining remote home interface

hi,

Im tryring to obtain a remote home interface of a stateful session bean but I
dont get one. I retrieve nothing and theres no exception thrown at all. I think
Tapestry is stucked at this code line because theres no html output at all.
The lookup-settings are OK because im already using them in another project.

The method is in my Global class and I call it from my Home.java.
<code>
public SbbsBenutzerServiceHome getBenutzerServiceHome() {
        System.out.println("ENTERING Global.getBEnutzerServiceHome");
        try {
            if (benutzerServiceHome == null)
                System.out.println("benutzerSERVICEHOME IST NULL");
            	Config.setEnviroment(Context.PROVIDER_URL, "jnp://dollyb:1099");
            	benutzerServiceHome =
SbbsBenutzerServiceUtil.getHome(Config.environment);
                System.out.println("#################
Global.getBenutzerServiceHome(), oki!  -> "+benutzerServiceHome);
        }
        catch (NamingException e) {
            System.out.println("################# Fehler:
Global.getBenutzerServiceHome() #########");
            LOGGER.error("Fehler beim Holen von SbbsBenutzerServiceHome", e);
        }
        return benutzerServiceHome;
    }
</code>

My Home.java:
<code>
public class Home extends BasePage {

    public String getSomeText() {
        System.out.println("getSOMETESXT hole benutzerservice");
        SbbsWebEngine engine = (SbbsWebEngine) getEngine();
        SbbsBenutzerService benutzerService = engine.getBenutzerService();
        System.out.println(" fertig " + benutzerService);
		return "It's a brave new world!";
	}

}
</code>

Im using JBOSS and Tapestry 3.02.


Please help me!
Thank you.


Regards

Sebastian


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: stuck on obtaining remote home interface

Posted by Sebastian Knoerzer <sk...@netlands.de>.
thanks for your help.
i already solved the problem. it was a jboss config issue.


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: stuck on obtaining remote home interface

Posted by Kent Tong <ke...@cpttm.org.mo>.
Sebastian Knoerzer <skn <at> netlands.de> writes:

> Im tryring to obtain a remote home interface of a stateful session bean but I
> dont get one. I retrieve nothing and theres no exception thrown at all. I think
> Tapestry is stucked at this code line because theres no html output at all.
> The lookup-settings are OK because im already using them in another project.

You say it is in Global, but your code shows that it 
is in your Engine. Which is the case?

As you have inserted some println statements, what's
the output?

Do you receive null as your Home interface? If so,
the most likely reason is that 
SbbsBenutzerServiceUtil.getHome() is swallowing
the exception and just returns null.



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org