Rare problem with loading addressing-1.41.mar module
Hi List I'm seeing same problem exactly as described here: http://marc.info/?l=axis-user&m=124411691013763&w=2 (addressing-1.41.mar module, which is not valid, caused) and i've also described it here:http://stackoverflow.com/questions/1213268/axis-loading-modules-creating-tempfile-and-failing Recap: Every once in a while during high load the loading of the axis module fails with an error after creating a temporary file with the addressing-1.41.mar module. As far as I can tell from the log it looks like an issue with the temporary file. It looks like all threads create and read the same temporary file; could it be an issue with the reading of a file by one thread while the file is being written by another? -- mvh/Kind regards Søren B. Vrist - http://blog.vrist.dk Twitter: http://twitter.com/svrist | -- |ClaimID: http://claimid.com/svrist
Problem with Loading Properties Files..
Hi, The current task is Integration of Axis with Spring.For this ,Spring Init as the Initialization Class with Axis Service is used, I am able to load the Spring related beans but I am unable to load the properties files and the Some db related xml Queries in the Context. Can You Please suggest me the way to do this. What is the exact location of placing this properties files. The code from Spring Init Startup method Goes Like this.. public void startUp(ConfigurationContext ignore, AxisService service) { try { System.out.println("Starting spring init"); ClassLoader classLoader = service.getClassLoader(); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] { "applicationContext.xml,beans.xml,beans-validation.xml" }, false); //For Setting the Bean Factory to the DroseCentralFactory through a Custom Processsor CustomBeanFactoryPostProcessor postprocessor = new CustomBeanFactoryPostProcessor(); appCtx.addBeanFactoryPostProcessor(postprocessor); appCtx.setClassLoader(classLoader); //Configuration No2 For Properties Loading PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer(); //AbstractApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml"); //Configuration No 1 For Properties Loading Properties props = new Properties(); props.load(classLoader.getResourceAsStream( "ApplicationResources.properties")); props.load(classLoader.getResourceAsStream( "query-file-names-conf.properties")); props.load(classLoader.getResourceAsStream( "factory-conf.properties")); configurer.setProperties(properties); appCtx.addBeanFactoryPostProcessor(configurer); //Property.configure( props); appCtx.refresh(); System.out.println("spring loaded"); } catch (Exception ex) { ex.printStackTrace(); } } I got the exception as , the file ApplicationResources.properties does not exist..it is coming..I placed the files in the same path of the applicationContext.xml..Even I tried loading the properties files with the DefaultResourceLoader..but still the same problem persists..Please respond me soon for this Query. Solution in Anticipation.. Thanks & Regards, Chandra Sekhar S.V.R | Programmer Anlayst| Franklin Templeton International Services (India) Pvt Ltd Franklin Templeton Park, Plot No. 18-23,Financial District,Nanakramguda,Hyderabad - 500019 | Tel: +91 40 66972779 | Fax: +91 40 66971010|Mobile: +91 98662 21243 |VOIP: (Extn:32779) | www.franklintempleton.com Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton Investments (FTI) personnel may be retained, monitored and/or reviewed by FTI and its agents, or authorized law enforcement personnel, without further notice or consent.
Re: Problem with Loading?
Hi, Yes it is a classpath problem. You have set your AXIS2_HOME variable correctly so that it can locate the Axis2 jars. Thanks, Keith. On 8/3/07, New AxisU <[EMAIL PROTECTED]> wrote: > > Hi, > > I am stumped again and yet I think I am really close so ... I am trying to > write an axis2 client for my new sample axis2 service. > When I run the client I get: > > a99-run.myclient: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/axis2/client/Stub > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass (ClassLoader.java:620) > at java.security.SecureClassLoader.defineClass( > SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000 (URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java :188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at org.mlbissonnette.quote.client.RandomQuoteClient.main( > RandomQuoteClient.java:35) > > > > RandomQuoteWSStub.class exists in build directory > > I get the same error message when I try run outside of ant usin g > > java -jar myclient.jar > > I'm using axis2 1.3 RC2. Is this a classpath problem or did I not > generate the code correctly? > > Any thought would be appreciated? > > > > -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: Problem with Loading?
Do you have all the relevant axis2 jar files. Thanks Deepal > Hi, > > I am stumped again and yet I think I am really close so ... I am > trying to write an axis2 client for my new sample axis2 service. > When I run the client I get: > > a99-run.myclient: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/axis2/client/Stub > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass (ClassLoader.java:620) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000 (URLClassLoader.java:56) > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java :188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > at > org.mlbissonnette.quote.client.RandomQuoteClient.main(RandomQuoteClient.java:35) > > > > RandomQuoteWSStub.class exists in build directory > > I get the same error message when I try run outside of ant usin g > > java -jar myclient.jar > > I'm using axis2 1.3 RC2. Is this a classpath problem or did I not > generate the code correctly? > > Any thought would be appreciated? > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Loading?
Hi, I am stumped again and yet I think I am really close so ... I am trying to write an axis2 client for my new sample axis2 service. When I run the client I get: a99-run.myclient: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.mlbissonnette.quote.client.RandomQuoteClient.main( RandomQuoteClient.java:35) RandomQuoteWSStub.class exists in build directory I get the same error message when I try run outside of ant usin g java -jar myclient.jar I'm using axis2 1.3 RC2. Is this a classpath problem or did I not generate the code correctly? Any thought would be appreciated?
Re: [axis2] problem with loading property files in modules
I've sorted it out. Michele On 8 Nov 2006, at 10:21, Michele Mazzucco wrote: Hi all, after upgrading axis2 I'm not able to load property files from modules (I had a similar problem with services as well), but I guess here the parameter service is not allowed. Neither ModuleClass.class.getResourceAsStream() works (and the property file is in the same package of the ModuleClass class file). What should I use? Thanks in advance, Michele - 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]
[axis2] problem with loading property files in modules
Hi all, after upgrading axis2 I'm not able to load property files from modules (I had a similar problem with services as well), but I guess here the parameter service is not allowed. Neither ModuleClass.class.getResourceAsStream() works (and the property file is in the same package of the ModuleClass class file). What should I use? Thanks in advance, Michele - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]