I have deployed 2 web applications in oracle weblogic 11gR1. For both of these applications i wanted to configure weblogic.xml in an external location such as in domain home.
Is there any way this can be achieved or is it mandatory for weblogic.xml to be present in WEB-INF folder within the WAR file?
A Deployment Plan (plan.xml file) located outside the war could be used to modify values in weblogic.xml. See http://docs.oracle.com/cd/E11035_01/wls100/deployment/config.html
Related
I'm developing a web application in which I want to insert users and be able to display files that they upload via a search option. I can get all of the logic that I need sorted and the files uploaded into the correct directory. However, if I insert a new user into the db, the web app cannot find their file in the directory until I restart the server.
How can I make it so that the resources directory of my web app automatically gets refreshed by the server? I'm developing in Java/JSP and using Tomcat as my server.
Thanks!!
I'm guessing you're putting the files into the src/main/resources folder, then it's being packaged into the artifact and then you access them as the classpath resources. Then the next portion of the resources is going to be available after the next packaging.
Instead you should access the Files via usual File System and Absolute or Relative paths.
I'm using logback API for logging in my project but requirement is there will be single logback.xml configuration file for two project and logback.xml should be access from outside of project.
I have placed logback.xml in my project class path and this is working fine. Can any body suggest me how can I access logging configuration file from external folder?
You might find section of the Logback FAQ helpful: Is it possible for multiple JEE applications to share the same configuration file but without stepping on each other's toes?
In short, you can use any configuration file you want (provided that your Java application can access it) using JoranConfigurator.doConfigure("/path/to/your/config/file.xml"). HTH!
I have a folder created to hold reports in a server. How do I save the path in my application such that when i deploy on client the path will now be my reportpath.
I have tried this form \ServerName\FolderName\ReportName.rdlc but doesn't work.
see Accessing Local and Remote Data in ClickOnce Applications:
Create FolderName in your solution, add your report there and mark it as "Data"
use ApplicationDeployment.CurrentDeployment.DataDirectory folder as a base folder
Lets say on my local machine in the folder which contains my GAE project I have an images folder.
When I upload the app to the GAE with the correct .yaml information the images folder and its contents will be uploaded.
Now lets say, I'm running the APP online and I upload an image to the image folder now on Google's servers. Now the images folders contents on the web and on my local development machine are different.
My question is this:
Next time I upload the app to GAE, how will the discrepancy between the different contents of the image folder be resolved?
You can't add files to the application like that after deployment. The local file system is read-only to GAE applications.
If you were to upload an image (via a handler you create) when the app is deployed you can't save it in the image folder in your application, you can only save it to the data/blob store. The files you uploaded with your app are static, they cannot be changed either by you or the application outside of the deployment tool. You can read them in, sure, but not write to them once deployed/at all.
So the situation will never arise that a deployed version has different files to the local version - they are always identical.
Out of curiosity, Is it possible to upload single .war file generated by maven to Google app engine using the tool appcfg.(/cmd/sh)?
I tried but got errors, when I specify the exploded directory (directory that contains gwt files) as the path, it worked.
Would be nice to specify single archive (.war) for upload as path to appcfg tool.
Please let me know if you have been able to do this or whether it's even supported.
Cheers
PB
The Google App Engine makes no provision for uploading a single .war file.
Since a war/ folder necessarily precedes the creation of a .war archive (since a .war archive is simply a zipped up war/ directory) obtaining the war/directory is provably easier than obtaining a .war file.
Perhaps you are used to tomcat where you can just deploy a .war file through the admin interface. When tomcat receives that file, all it does is extract it under webapps/. I suspect that GAE fiddles with the contents of your war/ a bit before it is actually uploaded to them anyway. If you provide more information about why you want to do this, perhaps we can discover the source of your confusion.