Hi Howard,

here my the deployment directory listing

Best regards
Sven




Howard Lewis Ship schrieb:
So, an << ls -lR >> of your workspace would be helpful, to see that files
are named correctly and in the proper places.

On 5/5/07, Sven Homburg <[EMAIL PROTECTED]> wrote:

i spend some hours to check out where is my error in reasoning.

if i send the url http://localhost:8080/test5/, tapestry redirects via
onActivated to the
login page but i receive an blank page

if i send the url http://localhost:8080/test5/start, i receive the
excepted content from login page

if wrote an testng module like this

public class TestStartPage extends Assert
{
    private PageTester _tester;
    private String _appPackage = "de.hsofttec.test5";
    private String _appName = "test5";

    @BeforeClass
    public void initializeTest()
    {
        _tester = new PageTester(_appPackage, _appName, "resources");
    }

    @Test
    public void test1()
    {
        Document doc = _tester.renderPage("TestStart");
        System.err.println(doc.toString());
        assertTrue(true);
    }
}

and i wonder, that the doc object is an "empty document"

public class TestStart
{
    @InjectPage
    private TestLogin _login;

    Object onActivate()
    {
        return _login;
    }
}

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <h1>Login Test</h1>
</html>


public class TestLogin
{
    public String getName()
    {
        return getClass().getName();
    }
}

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <h1>Welcome</h1>
    <t:OutputRaw value="name">the class name</t:OutputRaw>
</html>

Mit freundlichem Gruss

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947




Howard Lewis Ship schrieb:
> That should be how it works and a blank page is really odd. I'll check
> to make sure I have an integration test that proves it works.
>
> On 3/29/07, Sven Homburg <[EMAIL PROTECTED]> wrote:
>> hi folks,
>>
>> i want to check if the user is authentificated if he request a page.
>> i use the RequestEvent-Method "String onActivate()" looks like this:
>>
>> String onActivate()
>> {
>>     VisitStateObject visitStateObject = getVisitStateObject();
>>
>>     if (this instanceof IRestrictedPage)
>>     {
>> if (visitStateObject != null && visitStateObject.getUserEntity
()
>> == null)
>>             return "Login";
>>     }
>>
>>     return null;
>> }
>>
>> but if this method returns the pagename "Login" tapestry renders an
>> empty screen to browser.
>> no exceptions, no warnings.
>>
>> where is my "brain leak"
>>
>> --
>> Mit freundlichem Gruss
>>
>> homburg Softwaretechnik
>> S.Homburg
>> 21220 Seevetal / GERMANY
>> Fon: +49-4105-669746
>> Fax: +49-4105-668947
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




./test5:
total 8
-rwx------+ 1 shomburg Kein 1125 May  6 03:11 Login.html
-rwx------+ 1 shomburg Kein  701 May  6 00:39 Start.html
drwx------+ 5 shomburg Kein    0 May  6 02:58 WEB-INF
drwx------+ 3 shomburg Kein    0 May  6 02:58 asset

./test5/WEB-INF:
total 1
drwx------+ 5 shomburg Kein   0 May  6 02:58 classes
drwx------+ 2 shomburg Kein   0 May  6 02:58 conf
drwx------+ 2 shomburg Kein   0 May  6 02:58 lib
-rwx------+ 1 shomburg Kein 629 May  6 00:39 web.xml

./test5/WEB-INF/classes:
total 16
-rwx------+ 1 shomburg Kein 1125 May  6 03:11 Login.html
drwx------+ 2 shomburg Kein    0 May  6 02:58 META-INF
-rwx------+ 1 shomburg Kein  701 May  6 00:39 Start.html
drwx------+ 3 shomburg Kein    0 May  6 02:58 WEB-INF
drwx------+ 3 shomburg Kein    0 May  6 02:58 de
-rwx------+ 1 shomburg Kein 2679 May  6 00:39 hibernate.mysql.cfg.xml
-rwx------+ 1 shomburg Kein  645 May  6 00:39 log4j.properties

./test5/WEB-INF/classes/META-INF:
total 0
-rwx------+ 1 shomburg Kein 0 May  6 00:39 MANIFEST.MF

./test5/WEB-INF/classes/WEB-INF:
total 1
drwx------+ 2 shomburg Kein   0 May  6 02:58 conf
-rwx------+ 1 shomburg Kein 629 May  6 00:39 web.xml

./test5/WEB-INF/classes/WEB-INF/conf:
total 21
-rwx------+ 1 shomburg Kein 997 May  6 00:39 hibernate.ajanzen.properties
-rwx------+ 1 shomburg Kein 855 May  6 00:39 hibernate.homburg.properties
-rwx------+ 1 shomburg Kein 997 May  6 00:39 hibernate.jmoerth.properties
-rwx------+ 1 shomburg Kein 989 May  6 00:39 hibernate.properties
-rwx------+ 1 shomburg Kein 849 May  6 00:39 hibernate.shomburg.properties
-rwx------+ 1 shomburg Kein 409 May  6 00:39 userauth.properties

./test5/WEB-INF/classes/de:
total 0
drwx------+ 3 shomburg Kein 0 May  6 02:58 hsofttec

./test5/WEB-INF/classes/de/hsofttec:
total 0
drwx------+ 5 shomburg Kein 0 May  6 02:58 test5

./test5/WEB-INF/classes/de/hsofttec/test5:
total 0
drwx------+ 3 shomburg Kein 0 May  6 02:58 components
drwx------+ 2 shomburg Kein 0 May  6 02:58 pages
drwx------+ 2 shomburg Kein 0 May  6 02:58 services

./test5/WEB-INF/classes/de/hsofttec/test5/components:
total 13
-rwx------+ 1 shomburg Kein  988 May  6 02:58 Layout.class
-rwx------+ 1 shomburg Kein  635 May  6 00:39 Layout.html
-rwx------+ 1 shomburg Kein  322 May  6 02:58 SubjectDetail.class
-rwx------+ 1 shomburg Kein 1020 May  6 00:39 SubjectDetail.html
drwx------+ 2 shomburg Kein    0 May  6 02:58 ajax

./test5/WEB-INF/classes/de/hsofttec/test5/components/ajax:
total 4
-rwx------+ 1 shomburg Kein 2844 May  6 02:58 AutoCompleteTextField.class

./test5/WEB-INF/classes/de/hsofttec/test5/pages:
total 8
-rwx------+ 1 shomburg Kein 1793 May  6 03:12 Login.class
-rwx------+ 1 shomburg Kein  844 May  6 02:58 Start.class

./test5/WEB-INF/classes/de/hsofttec/test5/services:
total 8
-rwx------+ 1 shomburg Kein 1100 May  6 02:58 AppModule$1.class
-rwx------+ 1 shomburg Kein 4038 May  6 02:58 AppModule.class

./test5/WEB-INF/conf:
total 21
-rwx------+ 1 shomburg Kein 997 May  6 00:39 hibernate.ajanzen.properties
-rwx------+ 1 shomburg Kein 855 May  6 00:39 hibernate.homburg.properties
-rwx------+ 1 shomburg Kein 997 May  6 00:39 hibernate.jmoerth.properties
-rwx------+ 1 shomburg Kein 989 May  6 00:39 hibernate.properties
-rwx------+ 1 shomburg Kein 849 May  6 00:39 hibernate.shomburg.properties
-rwx------+ 1 shomburg Kein 409 May  6 00:39 userauth.properties

./test5/WEB-INF/lib:
total 16064
-rwx------+ 1 shomburg Kein   55932 Feb 21 19:57 activation-1.1.jar
-rwx------+ 1 shomburg Kein  444689 Feb 21 19:57 antlr-2.7.6rc1.jar
-rwx------+ 1 shomburg Kein   26360 Feb 21 19:57 asm.jar
-rwx------+ 1 shomburg Kein  490136 Feb 21 19:57 c3p0-0.9.0.4.jar
-rwx------+ 1 shomburg Kein  282338 Feb 21 19:57 cglib-2.1_3.jar
-rwx------+ 1 shomburg Kein  188671 Feb 23 20:13 commons-beanutils-1.7.0.jar
-rwx------+ 1 shomburg Kein   30117 Feb 21 19:57 commons-cli-1.0.jar
-rwx------+ 1 shomburg Kein   46725 Feb 17 21:27 commons-codec-1.3.jar
-rwx------+ 1 shomburg Kein  559366 Feb 21 19:57 commons-collections-3.1.jar
-rwx------+ 1 shomburg Kein  232915 Mar 13 19:03 commons-configuration-1.3.jar
-rwx------+ 1 shomburg Kein  139966 Feb 23 20:13 commons-digester-1.7.jar
-rwx------+ 1 shomburg Kein   23464 Feb 21 19:57 commons-email-1.0.jar
-rwx------+ 1 shomburg Kein   83613 Mar 20 18:52 commons-io-1.3.1.jar
-rwx------+ 1 shomburg Kein   96529 Feb 23 20:13 commons-javaflow-20060411.jar
-rwx------+ 1 shomburg Kein  243016 Apr 11 20:20 commons-lang-2.2.jar
-rwx------+ 1 shomburg Kein  245274 Mar 20 18:52 commons-lang-2.3.jar
-rwx------+ 1 shomburg Kein   38015 Apr 11 20:20 commons-logging-1.0.4.jar
-rwx------+ 1 shomburg Kein   52915 Feb 23 20:13 commons-logging-1.1.jar
-rwx------+ 1 shomburg Kein  180792 Dec  3  2005 commons-net-1.4.1.jar
-rwx------+ 1 shomburg Kein  362717 Feb 23 20:13 commons-vfs-1.0.jar
-rwx------+ 1 shomburg Kein   27137 May  6 03:12 core5.jar
-rwx------+ 1 shomburg Kein  486522 Feb 21 19:57 dom4j.jar
-rwx------+ 1 shomburg Kein  208048 Feb 21 19:57 ehcache-1.2.3.jar
-rwx------+ 1 shomburg Kein   50626 Dec  8 19:25 ejb3-persistence.jar
-rwx------+ 1 shomburg Kein  802494 Feb 21 19:57 freemarker.jar
-rwx------+ 1 shomburg Kein  438832 Dec  8 19:25 hibernate-annotations.jar
-rwx------+ 1 shomburg Kein 2208240 Feb 21 19:57 hibernate3.jar
-rwx------+ 1 shomburg Kein  161510 May  6 03:12 hsofttec.base.jar
-rwx------+ 1 shomburg Kein 1553403 Feb 23 20:13 itext-1.3.1.jar
-rwx------+ 1 shomburg Kein   33028 Mar 18 22:41 jakarta-regexp-1.5.jar
-rwx------+ 1 shomburg Kein 1601391 Feb 21 17:36 jasperreports-1.3.1.jar
-rwx------+ 1 shomburg Kein  471005 Feb 17 21:26 javassist-3.4.ga.jar
-rwx------+ 1 shomburg Kein  153253 Feb 21 19:57 jdom.jar
-rwx------+ 1 shomburg Kein    8812 Feb 21 19:57 jta.jar
-rwx------+ 1 shomburg Kein  358180 Feb 23 20:13 log4j-1.2.13.jar
-rwx------+ 1 shomburg Kein  352291 Apr 11 20:20 log4j-1.2.9.jar
-rwx------+ 1 shomburg Kein   63871 Feb 14 17:49 lucene-analyzers-2.1.0.jar
-rwx------+ 1 shomburg Kein  463578 Feb 14 17:49 lucene-core-2.1.0.jar
-rwx------+ 1 shomburg Kein  356519 Feb 21 19:57 mail-1.4.jar
-rwx------+ 1 shomburg Kein  495944 Feb 23 20:13 
mysql-connector-java-5.0.4-bin.jar
-rwx------+ 1 shomburg Kein  167958 Feb 21 19:57 ognl-2.6.9.jar
-rwx------+ 1 shomburg Kein   65261 Feb 21 19:57 oro-2.0.8.jar
-rwx------+ 1 shomburg Kein  421601 Feb 21 19:57 quartz-1.6.0.jar
-rwx------+ 1 shomburg Kein  136233 Nov 23 14:20 servlet-api-2.5-6.0.2.jar
-rwx------+ 1 shomburg Kein  730404 May  3 22:06 tapestry-core-5.0.4.jar
-rwx------+ 1 shomburg Kein  255625 May  3 22:05 tapestry-ioc-5.0.4.jar
-rwx------+ 1 shomburg Kein  361173 Feb 21 19:57 velocity-1.4.jar
-rwx------+ 1 shomburg Kein   88194 Feb 21 19:57 velocity-tools-1.2.jar

./test5/asset:
total 0
drwx------+ 2 shomburg Kein 0 May  6 02:58 style

./test5/asset/style:
total 4
-rwx------+ 1 shomburg Kein 1051 May  6 00:39 default.css

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to