QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

top]Why can't log4j find my properties file in a J2EE or WAR application?

Apache log4j 1.2 - Frequently Asked Technical Questions
The short answer: the log4j classes and the properties file are not within the scope of the same classloader. The long answer (and what to do about it): J2EE or Servlet containers utilize Java's class loading system. Sun changed the way classloading works with the release of Java 2. In Java 2, classloaders are arranged in a hierarchial parent-child relationship. When a child classloader needs to find a class or a resource, it first delegates the request to the parent.

How can I configure the log4j file?

Technical FAQ about Openbravo ERP - Developer at Openbravo
Log4j is the way Openbravo saves logs (errors or information about the application data). Logs are very useful in order to know where and why the application crashed. Log4j configuration is managed with /tomcat/webapps/openbravo/WEB-INF/log4j.lcf file, here is defined where the log will be stored, this is done in a line that looks like: The previous line means that the log is stored in /tomcat/logs/log4j_TAD.log file.

How do I increase the verbosity of the log4j file?

Technical FAQ about Openbravo ERP - Developer at Openbravo
Messages shown in log files have different categories (debug, info, warn, error and fatal). By default the messages shown are from error to fatal but this can be customized. When you select a category all messages which belong to this category or to a higher one will be displayed. To do this there are two ways: From application Go to General Rules > Data > Utility > Session info > Change logs, this will show every java class used till now.

What J2EE application servers are supported?

RootCause/Aprobe FAQ
RootCause can trace an Application Server that is run as a standalone Java JVM (using java executable) or it can trace a JVM that is embedded within a native executable.

Can I deploy my application using a war file?

Vision Web Hosting - Support - Frequently Asked Questions
Yes, create a war file and name it file.war and place in the root directory of your web space (mainwebsite_html or /var/www/html/ ) The contents will automatically be deployed when the JVM is restarted.

How do I deploy an application without building an EAR or WAR file?

For deploying a Web application like the default-web-app, please read the "Deploying With Exploded Directory Format" section of Getting Started Guide that comes with OC4J. For OC4J 1022, you can set the attribute development to "true" for the orion-web-app in your orion-web.xml file and that will save your generated code in the persistence directory. <orion-web-app deployment-version="9.0.2.0.0" development="true" jsp-cache-directory=".

Can I deploy just an Web application as a WAR file?

Oracle Application Server Containers for J2EE 10g (9.0.4) --...
Yes. If you wish to deploy only a Web module then you can utilize the default application OC4J is configured with. This is a two step task: First, tell the container about the WAR file to be deployed. Open the <J2EE_HOME>/config/application.xml file in an editor. Add a new <web-module> tag and specify the attributes for your WAR file. Secondly, tell the OC4J HTTP server about the new WAR file and provide a URL to access it. Open the <J2EE_HOME>/config/http-web-site.

What is the content of J2EE EAR, WAR, and JAR files?

Frequently asked questions about WebSphere 4.0
J2EE defines that all the EJB classes should be packaged in a JAR file. All the web components (JSPs, static pages, Servlets, gifs) should be packaged in a WAR file. All the classes for the Application Client should be packaged in a JAR file. EAR file will contain all the JARs and WARs belonging to the Application. It is important to note that each JAR, WAR, and EAR will contain a Deployment Descriptor. The Deployment Descriptor is an XML based file.

What are useful properties I can set in the "visivue.properties" file?

VisiVue FAQ - www.visicomp.com
visicomp.properties.files.verbose=true If this boolean property is true, then VisiVue prints out which properties files are found and loaded. For even more detailed information about where property definitions are coming from, try: visicomp.properties.sources.verbose=true For some useful basic computing environment information try: visicomp.verbose=true This a good way to get diagnostic information in preparation for technical support.

Can GRBackPro back up a file that is opened by another application?

Data Backup Software for Windows Professional Tool GRBackPro...
Yes, but ONLY if the file is opened for not-exclusive write. GRBackPro will back up your last saved version. A file opened for write in exclusive mode, instead, (as for example the Outlook and the database files) causes an error if you do not skip it. You must skip these files or schedule your backup when these files are closed (over night for example). The virtual memory or swap files are automatically skipped by GRBackPro.

What happens after I file my application?

FAQs: Making Changes to a Landmarked Building
The application is given a docket number and assigned to a member of the Preservation Department staff. If the application is incomplete, the staff member will contact you and explain what additional materials are needed. Depending on the complexity of the proposal, the staff may suggest that you and your architect or contractor come to the Commission's office to discuss the proposed project. A meeting at the property may also be arranged.

Why can't I find the file I'm looking for?

Frequently Asked Questions - LimeWire
The content of the Gnutella network consists solely of files which people running Gnutella software are sharing. If nobody is sharing the particular file you're looking for, you won't be able to find it using LimeWire. Furthermore, even if somebody running Gnutella software IS sharing the file you're looking for, it's possible that person doesn't fall within your reachable area. In this case, you won't be able to find the files you're looking for, either.

What is a WAR file and how do I create one?

WAR (or "web archive") file is simply a packaged webapp directory. It is created using the standard Java jar tool. You can use <jsp:forward page="/relativepath/YourServlet" /> or response.sendRedirect("http://path/YourServlet").

How do I deploy a WAR file in Tomcat?

jGuru: Tomcat FAQ
Delete existing deployment. If you have previously deployed "foo.war" in TOMCAT_HOME/webapps, then it has been unpacked into webapps/foo/... You must delete this directory and all its contents. On Unix, this can be done with rm -r $TOMCAT_HOME/webapps/foo This process may become easier in the future. A "deploy tool" is on the Tomcat "to-do" list. Note that if you deploy a WAR file in this manner, you do not need to make any changes to server.

How do I integrate a Tapestry application with J2EE declarative security/JAAS?

Frequently Asked Questions
In Tapestry 3.0, this could be a problem, because of the way Tapestry generated URLs. Tapestry 4.0 adds native support for friendly URLs which allow you to modularize your application across multiple folders in a more traditional manner.

How difficult is it to convert my J2EE application that uses EJBs to the AppProjector?

AppProjector FAQ
Easy. The AppProjector's application model is easily adapted to your existing EJBs. The XML screen definitions and data aware controls in the AppProjector cleanly separate the presentation layer from the business logic.

Can I use SyncEx Connector API with normal J2EE based web application?

Calendar, Task, Email, Poll, Contact Portlets: JSR 168 Porta...
Yes, you can. As SyncEx Connector API is a purely Java based you can use it with J2EE based web application also.

top]Is there a way to get log4j to automatically reload a configuration file if it changes?

Apache log4j 1.2 - Frequently Asked Technical Questions
Yes. Both the DOMConfigurator and the PropertyConfigurator support automatic reloading through the configureAndWatch method. See the API documentation for more details. Because the configureAndWatch launches a separate wathdog thread, and because there is no way to stop this thread in log4j 1.2, the configureAndWatch method is unsafe for use in J2EE envrironments where applications are recycled.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact