dynamical class loading

2005-10-12 Thread dumbQuestionsAsker _

can somone give me an information?
I want to know if it is possible to past and load classes into 
web-inf/classes path without beeing forced to reload the whole webapp ?


_
10 Mo pour vos pièces jointes avec MSN Hotmail ! 
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR



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



RE: dynamical class loading

2005-10-12 Thread dumbQuestionsAsker _

Thank you for your answer.
You told me that it has more to deal with JVM, I tried using a 
URLClassLoader unsuccessfully, that's why I asked.


Have a nice day(or night).
@++


From: Allistair Crossley [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: dynamical class loading
Date: Wed, 12 Oct 2005 09:16:12 +0100

this is a complex answer that *probably* only the Tomcat devs can answer of 
someone knowledgable about the JVM and class loaders, so don't expect too 
many users to answer.


i believe from my limited knowledge that you cannot reload single classes 
in a tomcat web application as a whole class loader is associated with a 
web application. i believe the problem is more to do with the JVM although 
I *believe* WebLogic manages it. perhaps if a dev has time to explain they 
will.


Allistair.

 -Original Message-
 From: dumbQuestionsAsker _ [mailto:[EMAIL PROTECTED]
 Sent: 12 October 2005 09:11
 To: tomcat-user@jakarta.apache.org
 Subject: dynamical class loading


 can somone give me an information?
 I want to know if it is possible to past and load classes into
 web-inf/classes path without beeing forced to reload the
 whole webapp ?

 _
 10 Mo pour vos pièces jointes avec MSN Hotmail !
 http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR


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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
Disclaimer:  The information contained within this e-mail is confidential 
and may be privileged. This email is intended solely for the named 
recipient only; if you are not authorised you must not disclose, copy, 
distribute, or retain this message or any part of it. If you have received 
this message in error please contact the sender at once so that we may take 
the appropriate action and avoid troubling you further.  Any views 
expressed in this message are those of the individual sender.  QAS Limited 
has the right lawfully to record, monitor and inspect messages between its 
employees and any third party.  Your messages shall be subject to such 
lawful supervision as QAS Limited deems to be necessary in order to protect 
its information, its interests and its reputation.


Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.

/FONT


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



_
Une chance par jour de gagner un voyage au soleil avec Magic Search ! 
http://www.magicsearch.fr



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



dynamical class reload

2005-10-11 Thread dumbQuestionsAsker _

hi everybody,
I got a problem loading an interface dynamycally.
Im working under Tomcat.
com.myApp.DefinitionServiceRemote and com.myApp.DefinitionService have to be 
dynamically (re)loaded because they are uploaded.

com.myApp.DefinitionServiceRemote extends com.myApp.DefinitionService.
By default(when I launch my webapp) I have 2 wrong interfaces to be able to 
launch my webapp and the cast doesn't work this way.
When I replace (before launching my webapp)the default interfaces, by these 
which has to be dynamically loaded, I have no problem.


Any idea?

File file = new File (WEB_INF.substring (0, WEB_INF.length
()-7)+/upload/+typeDep+/+nomService+/);
   try {

   URL url = file.toURL ();
   URL[] urls = new URL[]{url};


   Class cls;
   Class cls2;
   ClassLoader cl = new URLClassLoader (urls);

   cls2 = cl.loadClass (com.myApp.DefinitionService);
   cls = cl.loadClass (com.myApp.DefinitionServiceRemote);


   ServiceClient sc=new ServiceClient (null, nomService,
null);

   com.myApp.DefinitionServiceRemote dsr =
(com.myApp.DefinitionServiceRemote) sc.getObject ();

   } catch (MalformedURLException e) {
   } catch (ClassNotFoundException e) {
   } catch(ClassCastException e){

   }



Thank you in advance.

_
MSN Hotmail : antivirus et antispam gratuits ! 
http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR



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



Downloading files.

2005-09-01 Thread dumbQuestionsAsker _

Hi everybody,
I got a web app which generate an html link a to a file hosted into the 
WEB-INF directory.

The problem I have is that I can't access to the file from the link.
Do I have to do something special to make a file hosted into the WEb-INF 
directory available from an HTML link ?


Thanks in advance,
Cheers.

_
MSN Hotmail : 5 bonnes raisons de l'utiliser en e-mail principal ! 
http://www.imagine-msn.com/Hotmail/Post/GettingStarted/PrimaryAccount.aspx



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



Netbeans/TOMCAT RMI

2005-08-02 Thread dumbQuestionsAsker _

Hi everybody,
I got an RMI code which is working fine into another servlet container.
I want to port it into TOMCAT.
That's the first time Im doing it, so that's what I did :

-I added : -Djava.rmi.server.codebase=http://127.0.0.1:80/ to my JAVA_OPT 
variables into the catalina.bat file.


-I changed the policy file path to another file than catalina.policy which 
contain :


grant {
 permission java.security.AllPermission , ;
};

And i launched Tomcat (catalina.bat) using/and without using -security 
option


I got this error :

NotifyUtil::java.security.AccessControlException: access denied 
(java.net.SocketPermission 127.0.0.1:8082 connect,resolve)really weird


Im using netbeans and after scanning every files the only reference to this 
8082 port is into a web.xml into user.dir/.netbeans/4.1/tomcat557/conf


filter
filter-nameHTTPMonitorFilter/filter-name
-
filter-class
org.netbeans.modules.web.monitor.server.MonitorFilter
/filter-class
-
init-param
param-namenetbeans.monitor.ide/param-name
param-value127.0.0.1:8082/param-value
/init-param
/filter
-
filter-mapping
filter-nameHTTPMonitorFilter/filter-name
url-pattern/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
dispatcherINCLUDE/dispatcher
dispatcherERROR/dispatcher
/filter-mapping

can someone help me cause Im really lost.

Thanks in advance

_
MSN Messenger : personnalisez votre messagerie instantanée ! 
http://g.msn.fr/FR1001/866



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



file download

2005-07-30 Thread dumbQuestionsAsker _

hi everybody,
I want to provide the ability to my webapp's users to download a .java file 
clicking on a html link.
My problem is that I have no save as dialog box, Im redirected to the 
content of my file.

I changed my web.xml mime type but still the same.
Any idea?

_
MSN Messenger : personnalisez votre messagerie instantanée ! 
http://g.msn.fr/FR1001/866



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



Loopback Adapter

2005-04-02 Thread dumbQuestionsAsker _
Hi,
Im workin on windows XP and Im using a loopback adapter.
My problem is when my loopback adapter is enable, I can't receive remote 
http requests, that only works when it is disabled.
Any idea about making both working at the same time. ?
thanks by advance.

Best regards.
_
Essayez le nouveau MSN Search : plus performant, plus précis. 
http://search.msn.fr/

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