How to hot deploy java class?
I write some java class and put them into the weblogic\class folder to
replace the old java class files.
When I run the program, the server still run the old java class.
But when I restart the server, the server runs new java class.
The server must restart, when I want to run new java class?
thanks
Does this work ??
I was unable to achieve hot deployment using REDEPLOY file.
Sheng Sheen <[email protected]> wrote in message
news:[email protected]..
You need to create a REDEPLOY file and touch the file.
From the documentations:
Dynamic Redeployment of Exploded Applications
You can also dynamically redeploy applications or application components
that have been deployed in exploded format. When an application has been
deployed in exploded format, the Administration Server periodically looks
for a file named REDEPLOY in the exploded application directory. If the
timestamp on this file changes, the Administration Server redeploys the
exploded directory.
If you want to update files in an exploded application directory, do the
following:
a.. When you first deploy the exploded application, create an empty file
named REDEPLOY in the directory where the exploded application resides.
b.. To update the exploded application, copy the updated files over the
existing files in that directory.
c.. After copying the new files, touch the REDEPLOY file in the exploded
directory to alter its timestamp.
When the Administration Server detects the changed timestamp, it redeploys
the contents of the exploded directory.
"Alex" <[email protected]> wrote in message
news:[email protected]..
I write some java class and put them into the weblogic\class folder to
replace the old java class files.
When I run the program, the server still run the old java class.
But when I restart the server, the server runs new java class.
The server must restart, when I want to run new java class?
thanks
Similar Messages
-
Than how can i get java class by using it's class file?
Hi
After compilation of a java program, it creates a class file.
After getting class file suppose class file has been deleted.
Than how can i get java class by using it's class file?
Thanks in advance.get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
BTW: many of your compilers have source control--if it does, just restore your missing file. -
How to call a Java class from another java class ??
Hi ..... can somebody plz tell me
How to call a Java Class from another Java Class assuming both in the same Package??
I want to call the entire Java Class (not any specific method only........I want all the functionalities of that class)
Please provide me some slotuions!!
Waiting for some fast replies!!
Regards
Smita MohantyHi Smita,
you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
e.g.
you have developed A.java and B.java, both are in same package.
in implementaion of B.java
class B
A obj = new A();
//to access A's methods
A.method();
// to access A's variable
//either
A.variable= value.
//or
A.setvariable() or A.getvariable() -
How to use a java class in difference project under a same workspace!
Hi, there:
I have a problem. I want to reuse a java class which is located in another project of the same workspace. I do not know how to set the two project setting or how to import the java class. I deeply appreciate.
Sheng-Heinclude it as a library
open project settings goto libraries and simply add your class -
Deploy Java class to database from jDeveloper
In 10g version I could create a deployment profile for deploying java class directly to the database from within jdeveloper. Looks like when you create a deployment profile in 11g that is no longer an option. Has the process changed, or was that functionality flat out removed?
Hi,
what about
Nwe --> Database Tier --> Database Files --> Load Java and Java Stored Procedure
Frank -
How to deploy java class as a service in weblogic
All,
I have a java class which polls on a mailbox. I want deploy this class as a service in weblogic so that when the service is started it should continuously poll the mail box untill the service is stopped. Its working as a standalone component, i want to deploy this as a service.
Thanks,
Ramif you want to set Startup Classes, please refer the following URL,
Startup Classes: Configuration -
How to load a java class at server start-up
Hi,
I have one custome java class that is being referenced by all the applications deployed in OC4J container. How can I load that class automatically and be evailable in the path at server start-up time. Is there an option available to give the class name that also gets loaded automatically.
ThanksTo me, you have two mixed issues.
1. OC4J supports a startup/shutdown model where a named class will be invoked when the container is started (or stopped).
This is described in the doc here:
http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b28952/startclas.htm#CIHECEIB
Note that this specifically calls the methods that are implemented from the respective OC4JShutdown and OC4JStartup interfaces -- the class that is instantiated and called here is not available to all other applications by default. This is more to suit the need where something needs to be done when the container is started/stopped.
2 The next option is where you just want to make a class available to all applications deployed to the container. For this we provide the shared-library mechanism. Using this you can either make use of the implicit global.libraries shared-lib in which you simply drop JAR files into the j2ee/home/applib directory whereupon the classes will become available by default to all applications. Or you can choose to install a shared-library that contains your specific classes (in a JAR file) and then import that into the default application whereupon the configuration will be inherited by all deployed applications.
cheers
-steve- -
How to import a java class in a JSP
Hi All,
I have a java class file called myTest.class (i made after compilation of myTest.java). I have a JSP page that uses this java class file.
These 2 files are in same folder called c:/test
and iam importing this java class file into my jsp file and that too at the start of this jsp file:
<%@page import="myTest" %>
BUt iam getting an error ..............when iam running this JSP page:
/opt/bea81sp2/user_projects/domains/wliDomain/./Managed2/.wlnotdelete/extract/Managed2_myTest_myTest/jsp_servlet/__test.java:20: '.' expected
probably occurred due to an error in /test.jsp line 5:
<%@page import="myTest" %>
Please advise how to solve this problem
-sangitaDon't bother with the import
when iam not importing this class file into my JSP, then on my JSP, the class file is not found.
Here is my code: and these 2 class file are in c:/test
import org.apache.tools.ant.taskdefs.Ant;
import org.apache.tools.ant.taskdefs.Property;
import org.apache.tools.ant.types.*;
import org.apache.tools.ant.*;
import org.apache.tools.ant.taskdefs.ExecTask;
import org.apache.tools.ant.types.Commandline;
import java.io.File;
* Creates an Ant project to run an Ant build
* @author myself
* @version 1.0
public class RunTest extends Ant {
String applicationName;
String buttonClicked;
String boxName;
String targetName;
public void applicationName(String applicationName){
this.applicationName = applicationName;
public void boxName(String boxName){
this.boxName = boxName;
public void buttonClicked(String buttonClicked){
this.buttonClicked = buttonClicked;
public RunTest() {
public void goTest() {
if(this.buttonClicked.equalsIgnoreCase("deploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
this.targetName = "deploy-scsmail-testnet";
if(this.buttonClicked.equalsIgnoreCase("undeploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
this.targetName = "undeploy-scsmail-testnet";
Project project = new Project();
project.init();
System.out.println("printing 1 ....");
ExecTask exec = new ExecTask();
exec.setProject(project);
exec.setExecutable("/opt/bea/weblogic81/server/bin/ant.bat");
exec.setDir(new java.io.File("/export/home/beamon/bin"));
Commandline.Argument arg = exec.createArg();
// arg.setLine("-f scsmail.xml test -listener org.apache.tools.ant.XmlLogger -logfile D:/antProject/src/log.xml");
arg.setLine("-f build.xml "+ targetName + " -listener org.apache.tools.ant.XmlLogger -logfile /export/home/beamon/bin/log.xml");
System.out.println("printing 2....");
//exec.setOutput(new File("D:/antProject/logs/prob.txt"));
exec.execute();
System.out.println("printing 3....");
-----------------------the JSP page is called as test.jsp
<%@page contentType="text/html" %>
<%@page import="java.io.*" %>
<%@page import="java.util.*" %>
<%@page import="java.net.*" %>
<%@page import="RunTest" %>
<HTML>
<TITLE>TESTING ANT GUI</TITLE>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="3000" >
<meta http-equiv="Cache-Control" content="no-cache">
</HEAD>
<BODY BGCOLOR="silver" TEXT="333333">
<table border=0>
<tr align="left"><td align="left"><FONT SIZE="-1"><B> Test Page <FONT SIZE="-1"><B></td></tr>
</table>
<hr></center>
<form action="./test.jsp" method="POST" name="testForm">
<table>
<tr>
<td>
<select name="appName" size=1>
<option value="">Select Application Name
<option value="scsmail">scsMail
<option value="clientmanager">ClientManager
</select>
</td>
<td>
<select name="boxName" size=1>
<option value="">Select Box Name
<option value="testnet">TestNet
<option value="production">Production
</select>
</td>
</table>
<table>
<input type="submit" name="deploy" value="deploy">
<input type="submit" name="undeploy" value="undeploy">
</table>
<%
RunTest rt = new RunTest();
rt.applicationName(request.getParameter("appName"));
String deployButton = "";
deployButton=request.getParameter("deploy");
String undeployButton = "";
undeployButton=request.getParameter("undeploy");
if(!deployButton.equalsIgnoreCase("")){
rt.buttonClicked(request.getParameter("deployButton"));
if(!undeployButton.equalsIgnoreCase("")){
rt.buttonClicked(request.getParameter("undeployButton"));
rt.boxName(request.getParameter("boxName"));
rt.goTest();
%>
</form>
</table>
</BODY>
</HTML> -
Hot deployment of class files (non-EJB)
Also posting to the servlet newsgroup.
"Craig Ambrose" <[email protected]> wrote in message
news:[email protected]..
>
I am using WebLogic 6.1 and am interested in using auto-deployment indevelopment
mode of JSPs and class files that those JSPs rely on. I have a simpleWebLogic
application that gets deployed using the exploded directory format andwhen I
modify the JSPs or the class files that they use everything reloadsproperly and
a newly modified class file will be reloaded the next time the pageutilizing
the Java class is requested.
I have a much more complicated application (the one I am really doing workon)
and I can't get the hot deploy of the class files to take effect. The JSPswill
reload but I can't seem to cause the class loader to reload any changedclass
files. If I use the WebLogic Console and un-deploy and then re-deploy theapplication
then the class files will be reloaded, but I thought that wasn't necessaryfor
hot deployment. This complex application stores many things in the HTTPsession
context. I am wondering if that has an effect on the class loader fordependant
class files.
I'm pretty sure it is not a configuration issue as I have it working forthe simple
application. I have the application deployed under the.\config\<domainname>\applications
directory and am using the exploded directory format with the class filesalso
exploded in the WEB-INF\classes directory.
Any insights on dependancies of the hot depployment would be helpful. -
How to invoke a Java class located outside of BPEL PM server?
I konw the way of invoking the Java class deployed in BPEL PM server by using WISF binding. But now I have a legacy Java Application located in another Appache Server.I hope the BPEL process can invoke this legacy Java Application. How should I do?
Anybody can help me?
Kind regard
QuYou can use axis to create a webservice out of this class, or do the same with oracle jdeveloper - remote class mean remote protocol..
/clemens -
How to read the java class file to convert it in java.
hello all,
i m developing the java application which generated the java code from the java 'class file' .
Can anybody please help me, Is any java support for reading the class file? or how to know the class file format?
I know the application javad, jad, javap which is doing the same thing.
thanks for reply,
- Jayddo you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?
-
How to implement a java class in my form .
Hi All ,
I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class to my button .
Thanx a lot for your help.
AIN
nullhi [email protected]
tell me my friend .. how can i extend
the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
Thanx a lot for your cooperation .
Ali
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
Regards
Grant Ronald<HR></BLOCKQUOTE>
null -
How to load a java class when application is at first time browsed.
Hi
How can i load a simple java class on application startup.
For servlet it could be done using "load on startup" tag in web.xml
but how could the same be achieved for a simple java class.
ThanksHi
Code is given below....
package com;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Test {
Test()
HttpServletRequest request=null;
HttpServletResponse response=null;
RequestDispatcher requestDispatcher = request.getRequestDispatcher("a.jsp");
try {
requestDispatcher.forward(request,response);
} catch (ServletException e) {
System.out.println("success");
e.printStackTrace();
} catch (IOException e) {
System.out.println("success 1");
e.printStackTrace();
finally
System.out.println("success 2");
System.out.println("success 3");
}Web.xml :
<servlet>
<servlet-name>simple</servlet-name>
<servlet-class>com.Test</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>simple</servlet-name>
<url-pattern>/init.do</url-pattern>
</servlet-mapping>Error Trace :
org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /DispatcherTest threw load() exception
java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class com.Test with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:344)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1069)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1162)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1304)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1568)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1577)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557)
at java.lang.Thread.run(Thread.java:595) -
How to call a java class in a bat file
Hi
I need to call a Test.java class in a bat files .It refer .DOM.jar
in C:/url; How do i call the java class i need the syntax
Thanks lotassuming lanch.bat, Test.class and DOM.jar are in c:\url
assuming %JAVA_HOME% is defined (else substitue it with your java installation directory)
here is the content of launch.bat:
cd C:/url (or cd c:\url ) (or cd c: followed by cd url)
%JAVA_HOME%\bin java -classpath .;DOM.jar Test
hop that'd help,
marvinrouge -
Where deploy Java class in XI 3.0?
Hi all,
I have created a Java class for Jco connection and I have created .jar file.
At this point where must I copy .jar file in XI server???
And what activities must I do for using my classes with message mapping???
Thans in advance,
Michele.Michele,
We are facing a quite similar situation with XI 3.0. What we've found is that the only methods available for integrating Java code is either
a) Import a JAR archive into a specific software component
b) Create a Java proxy to a J2EE environment where you
implement your Java as EJBs.
We're still investigating these and other possible options.
Perhaps you need to install your JAR archive into each of the relevant components (I'm not sure if this works.)
Another possible alternative could be to identify where the JRE is installed on your XI server and deploy your classes in the lib extensions. (i.e. put your jar file in something like C:\j2sdk1.4.2_04\jre\lib\ext and restart the server) You should then be able to access these from anywhere, though I'm not sure what SAP would say about this solution.
HTH,
Patrick Parsons
Maybe you are looking for
-
Urgent. Issue with converted .mov files to avi not working in Premiere.
I am trying to import video files that I have converted from .mov to .avi through OjoSoft Total Video Converter and anytime I try to put a file into the work area, the video goes to Video 1, and Audio goes to Audio 4. When I try to play it I get no
-
SCHEDULER with using dbms_job.submit package
i want to use a procedure in SCHEDULER with using dbms_job. How i use this procedure in SCHEDULER Plz, Help me Message was edited by: Nilesh Hole
-
Openoffice plugin fails in firefox after update
After an update firefox cannot open openoffice.org files anymore. /tmp/mydoc.docx could not be opened, because the associated helper application does not exist. Change the association in your preferences. Can the openoffice plugin be configured (rein
-
Are tags and comments assigned to a file on a MAC visible on a PC?
Are tags and comments assigned to a file on a MAC visible on a PC? any help would be greatly appreciated.
-
Dear All, Could you please tell me u201CCan adobe froms be used to initiliase a new process in SAP BPM 7.2 or 7.3?u201D If Yes, then are there any Blog/ information/White paper available on this > Regards, Harmony