users@glassfish.java.net

Re: ok, but I have also put files

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Mon, 8 Nov 2010 12:45:10 +0100

It looks like you have some misunderstandings of how java web applications work.

I highly suggest working through the JavaEE 6 Tutorial
http://download.oracle.com/javaee/6/tutorial/doc/

At least do Part I and Part II.



On Mon, Nov 8, 2010 at 10:11 AM, <noreply_at_java.net> wrote:
>
>
> ok, but I have also put files under package, under src/java..,  and problem
> persist.
>
> When I try to run the part of aplication wich use the file with in the main
> funcion in the class, I can get the file with relative path
> src/java/package/com,
>
> but when I deploy it under glasfish to run it like web aplication, it can
> not
> see it any more.
>
>
>
> As I mentioned, I have try to create new File(test.txt), and it put it under
> glasfish/domain/domain1  directory
>
>
>
>
> --
>
> [Message sent by forum member 'mdebac']
>
> View Post: http://forums.java.net/node/713515
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
Dominik Dorn
http://dominikdorn.com
http://twitter.com/domdorn
Tausche Deine Lernunterlagen der Technischen Universitaet Wien auf
http://tuwien.studyguru.eu !