ma guarda.. gwt o no cmq sto programmando in java su lato server con le api d java x cui e' come se nn lo usassi proprio... sto odiando tomcat...
On Apr 7, 4:07 pm, bitliner <[email protected]> wrote: > Non posso provare ora il codice, nè penso stasera. > Troppo impegnato. > E' probabile che devi configurare meglio tomcat, ma non hai trovato > nulla di qualcuno che affrontasse il tuo stesso problema? > Indipendentemente da gwt? > > non so come altro aiutarti > > saluti > > On Apr 7, 4:03 pm, andrew19881123 <[email protected]> wrote: > > > > > il mio e' un progetto x tecnologie web.. anche io sn alla triennale.. > > i permessi di linux li ho settati senza problemi.. ho provato agirare > > un po su google x cercare come "sbloccare" i file su tomcat.. e ho > > letto che c'e' da aggiungere grant{...} dentro alle policy solo che nn > > ho concluso nnt.. > > > avevo provato anche io a creare un file.. cosi' da vedere dv cavolo lo > > mette e d conseguenza c piazzo il mio xml.. l'avevo fatto cosi': > > File file = new File("test.txt"); > > if (file.exists()) { > > file.delete(); > > } > > try { > > file.createNewFile(); > > } catch (IOException e1) { > > e1.printStackTrace(); > > } > > System.out.println("Before. canWrite?" + file.canWrite()); > > > // set to read-only, atau canWrite = false > > file.setWritable(false); > > System.out.println("After. canWrite?" + file.canWrite()); > > > il problema e' che sempre x colpa dei permessi java nn puo scrivere > > nella cartella.. > > oltretutto ho provato anche un altro metodo x leggere un file, solo > > che in seguito al metodo canWrite() scatta l'eccezione e nn capisco il > > motivo dato che dovrebbe essere solo un si o un no.. vedi se riesci a > > creare il file con quel codice e poi fammi sapere > > > ciao > > > On Apr 7, 3:52 pm, Giovanni Gaglione <[email protected]> > > wrote: > > > > auhauha > > > Io pure sono italiano!!!! > > > di roma però. > > > sto facendo la tesi per la laurea triennale in informatica...e utilizzo > > > gwt > > > da un mesetto o di più. > > > > Hai settato i permessi per il filesystem come ti avevo suggerito? > > > Se il file non ha il permesso di essere letto, tomcat non lo trova. > > > > Che io sappia, ci stanno anche i permessi di tomcat sui file, magari > > > potrebbe dipendere da questo. > > > Se sgoogli un pochino, potresti vedere se è il caso tuo, vedendo come si > > > settano i permessi di tomcat. > > > > Usi firebug? ti può convenire usarlo per vedere nel codice se è tutto > > > aposto, se c'è qualche errore javascript, non so se mi spiego. > > > > Ma cosa ci stai facendo con gwt? > > > Sai per caso come creare un file lato server? ti è capitato di fare un > > > operazione simile con gwt? > > > > saluti > > > > 2010/4/7 andrew19881123 <[email protected]> > > > > > the file is perfectly localized in the correct directory, i know > > > > because the debug in eclipse works...!! it's here /var/lib/tomcat6/ > > > > webapps/rpcTest0 where rpcTest0 is the project.. boh > > > > > i'm from italy.. near modena, im a student of computer science at > > > > unibo, it's about 3 weeks that i try to learn gwt cause i will have a > > > > project for the university that need it.. this is just an exercise to > > > > make practice in preparation of... the whole exercise is to read an > > > > xml file and write it in the browser.. but if i can't read it i can't > > > > go ahead.. uff > > > > > and what about you? are u italian too? whats your occupation? > > > > > On Apr 7, 2:36 pm, Giovanni Gaglione <[email protected]> > > > > wrote: > > > > > It seems that application doesn't find the file. > > > > > Where is your file? > > > > > It's possible that you must specify the file path better. > > > > > > Where are you from? > > > > > What are you doing with GWT? > > > > > Who are you? > > > > > > regards > > > > > > 2010/4/7 andrew19881123 <[email protected]> > > > > > > > now have done in this way.. > > > > > > > try { > > > > > > String fileXml = new String(); > > > > > > String s = new String(); > > > > > > FileReader f = new FileReader("vini.xml"); > > > > > > > BufferedReader br = new BufferedReader(f); > > > > > > > do { > > > > > > s = br.readLine(); > > > > > > if (s!=null) > > > > > > fileXml=s; > > > > > > } while (s!=null); > > > > > > > it works while debugging.. but when i deploy: > > > > > > java.io.FileNotFoundException: vini.xml (No such file or > > > > > > directory)java.io.FileNotFoundException: vini.xml (No such file or > > > > > > directory)[Ljava.lang.StackTraceElement;@115126e > > > > > > the file is present in this dir /var/lib/tomcat6/webapps/rpcTest0.. > > > > > > and i can't get the absolute path of f because there is no method.. > > > > > > grr > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Google Web Toolkit" group. > > > > > > To post to this group, send email to > > > > [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]<google-web-toolkit%2Bunsubs > > > > > > [email protected]><google-web-toolkit%2Bunsubs > > > > [email protected]> > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-web-toolkit%2Bunsubs > > > > [email protected]> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
