Redeploy jar file
Hi guys,
After applying SP3 single signon did not work anymore.
I have found out that the web.xml and struts-infoview.xml files are replaced.
I had to reenter the SSo parameters into web.xml. After that SSO works fine again.
These changes where done in C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF.
Apparently these files reside as well somewhere in a "war" file.
Form what I gather I have to apply my SSO changes to the web.xml file in this war file. To prevent this from happening again.
Could any one explain the steps and commands to extract the single files and redeploy this war file.
Thank you
Alex
Hello Alex,
Since you're on a Windows box, find the file:
C:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\java\applications\desktop.war
and change its extension to .zip.
You should then be able to open the desktop.zip file and make changes to the WEB-INF\web.xml file you find in there.
Then change the extension back to .war.
Sincerely,
Ted Ueda
Similar Messages
-
Deploying, ReDeploying JAR file to WebLogic EM without restarting the serve
Hi
Can any one help me how to re-deploy .jar file on weblogic EM with steps.
Deploying, ReDeploying JAR file to WebLogic EM without restarting the server
Appriciate if you provide information in steps with screenshot.
Note: Not in weblogic 11g console.
Thanks,
Phanihttp://download.oracle.com/docs/cd/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA
-
Redeploying jar files in Jdeveloper - 10.1.3.3.0
Hi,
Is there a way to redeploy an existing .jar file in Jdeveloper 10g (10.1.3.3.0).
We are upgrading from Oracle - 11i to R12 and this .jar file is working in 11i and if I try to use the same in R12, I'm getting an IllegalAccessError in the OAF page, where the .jar file is invoked (because of the version mismatch I believe).
If we redeploy the .jar file, will that help in the version issue?
Please provide some pointers on redeploying the existing jar files in JDeveloper 10.1.3.3.0
Regards,
MohanYou should ask this in the {forum:id=210}
Timo -
Partial redeployment of a static jar file with weblogic.Deployer
Hello,
We are working on an application serving jar files to customers, via Java Web Start, hence that are considered from our point of view as static files, like our HTML and Javascript pages.
Moreover, we have one jar that changes regularly, so every time it's loaded on the server we need to do a partial redeployment of this jar file, as documented here: http://docs.oracle.com/cd/E13222_01/wls/docs103/deployment/redeploy.html#wp1025739
However, it does not work, as I believe WebLogic doesn't consider my jar file as a static file.
C:\>java -cp weblogic.jar weblogic.Deployer -adminurl http://mymachine:7001 -user weblogic -password mystrongpassword -name myapp -redeploy launcher/downloadme.jar
weblogic.Deployer invoked with options: -adminurl http://mymachine:7001 -user weblogic -name myapp -redeploy launcher/downloadme.jar
<Mar 8, 2013 7:09:36 PM CET> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, myapp [archive: null], to configured targets.>
Task 24 initiated: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.
Task 24 failed: [Deployer:149026]redeploy application myapp [Version=7] on WebServer.
Target state: redeploy failed on Server WebServer
weblogic.management.DeploymentException:
The application myapp#7 cannot have the resource launcher/downloadme.jar updated dynamically. Either:
1.) The resource does not exist.
or
2) The resource cannot be changed dynamically.
Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
As a side note, if I rename downloadme.jar to downloadme.jar.*html*, then WebLogic agrees to redeploy it!
Is there any way to force the static redeployment of my jar file?
Thanks and regards,
JulienHi,
The feature you are trying to use works only when web application is deployed in exploded format. Is your app deployed in exploded format?
Also jars are never considered static, so I doubt this will work here.
As an alternative you can go for Oracle Weblogic Production redployment feature. Refer to - http://middlewaresupport.wordpress.com/2013/03/21/production-redeployment-feature-in-weblogic/
Thanks,
Ranjan
Edited by: Ranjan K on Apr 12, 2013 5:45 AM -
What is directory where I can put in jar file without specify classpath ?
hi,
Is there any directory in weblogic similar to the directory of WEB-INF/lib/ where I can throw a jar file in without specify classpath explicitly.
The reason I'm looking for such directory is :
-- I do not want to specify classpath explicitly
-- I'd like it outside of an application so that it stay even if the application redeployed.
ThanksHi Aacc,
The domain library directory that you are looking for is usually $DOMAIN_DIR/lib, for example "C:\Oracle\WLS_Middleware10.3.4\user_projects\domains\test_domain_1\lib" (Windows) or "/u01/weblogic/domains/my_domain/lib" (Linux/Unix).
The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath.
You can override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.
-Cris -
.properties and jar file
Anyone, Is there a way to separate my .properties files from the jar. Everytime we want to make a simple text change we need to redeploy a new jar. I've tried taking the .properties files out of the jar and placing them in the class path, but I get this:
Can't find resource for base name com.dynamex.dxnow.labelsBundle, locale en_US
normally our .properties files are in: com.dynamex.dxnow.dxnow4
where dxnow4 is the jar name
We're running Apache
Deveolpment environment JDeveloper
Any help would be appreciated,
JoeI've tried taking the .properties files out of the jar and placing them in the class path,<<Sorry this is not of much help, but putting the properties file in the classpath should work. I've done that myself. If the properties file is in the classpath before the jar file, it will be used instead of the properties file in the jar file. So, maybe the properties file is in a package and the directory containing the package is not on the classpath?
-
Initiating a deployment task with id 0,1,2,3...same jar file
I have been deploying a single EJB jar file but my server starts redeploying same
jar file until I kill the sever its keep doing this, because it deployed jar (EJB
component) once successfully, all of next attempt cause "NameAlreadyBoundException".
I don’t know why it is re deploying same component? Please help.
pls look at this statement from myserver.log file..
Initiating a deployment task with id 0 for application appsdirtitanapp_dir
preparing application appsdirtitanapp_dir on myserver
EJB Deploying file: titanapp\titanejb.jar
prepared application appsdirtitanapp_dir on myserver
activating application appsdirtitanapp_dir on myserver
EJB Deployed EJB with JNDI name CabinHomeRemote.
activated application appsdirtitanapp_dir on myserver
Configuration changes for domain saved to the repository.
Completing a deployment task with id 0 for application appsdirtitanapp_dir with
status Completed
Initiating a deployment task with id 1 for application appsdirtitanapp_dir-0
I am using Weblogic 7 and using workbook example of Monson-Haefel book.
Thanks in advance.
KumarThis looks like a bug.
Is there something in your app which makes it modify the timestamp of the
root directory or rootDir/META-INF/REDEPLOY file ? That would be the only
valid reason for the auto deployment to keep triggering. If that is the case
you might want to use weblogic.Deployer.
"Kumar" <[email protected]> wrote in message
news:[email protected]..
>
I have been deploying a single EJB jar file but my server startsredeploying same
jar file until I kill the sever its keep doing this, because it deployedjar (EJB
component) once successfully, all of next attempt cause"NameAlreadyBoundException".
>
I don't know why it is re deploying same component? Please help.
pls look at this statement from myserver.log file..
Initiating a deployment task with id 0 for application
appsdirtitanapp_dir
preparing application appsdirtitanapp_dir on myserver
EJB Deploying file: titanapp\titanejb.jar
prepared application appsdirtitanapp_dir on myserver
activating application appsdirtitanapp_dir on myserver
EJB Deployed EJB with JNDI name CabinHomeRemote.
activated application appsdirtitanapp_dir on myserver
Configuration changes for domain saved to the repository.
Completing a deployment task with id 0 for application
appsdirtitanapp_dir with
status Completed
Initiating a deployment task with id 1 for application
appsdirtitanapp_dir-0
I am using Weblogic 7 and using workbook example of Monson-Haefel book.
Thanks in advance.
Kumar -
Hot Deploy Servlet in JAR file problem
I've been playing with hot deploying servlets in WLS 5.1. I have SP2
installed. I have things working fine with individual servlet class files. I
decided to try hot deploying with jar files.
I created a servlet, added it to a jar file, and then added the jar file to
the 'weblogic.http.servlet.classpath'. I then restarted the server. I
started the console and was able to hot deploy the servlet. So far so good.
My next test is what failed. I modified the servlet, and rebuilt the jar
file. I went back to the console, selected the servlet and hit the redeploy
button. I went back to the browser and hit refresh - nothing, still the old
servlet.
It appears that WLS isn't reloading the jar file and the updated servlet.
Everything works with individual class files.
Does anyone know how I can cause the reload of updated servlets embedded
within a jar file?
Weblogic group - If there is no way now, will support be added soon?
Thanks,
Rick
Hi,
If I use weblogic.servlet.ServletServlet to try just the servlet , It
works correctly.But When I develop it in a web application , there is a lot
of hypelink to this servlet,thus I can't use the relative path reference to
that servlet.I try to set the name of weblogic.servlet.ServletServlet same
as the webapp,It doesn't work,how do I solve this problem?
Thank you
Pan
Subject: Re: Hot deploy Servlet in webapp
> http://www.weblogic.com/docs51/classdocs/API_servlet.html#134798
>
> It even explains why you shouldn't use it in production environment.
>
> Dimitri
-
Updating an EJB jar file on WL7.0
Hi
Iam attempting to update an EBJ jar file without taking down my WL7.0 server.
When I copy the jar file to the applications directory, I see the server accepting
the update but when I run my client the update is not visible! Iseem to be still
accessing the old ejb.
From my understanding, if the server is running in development mode I should be
able to copy the jar file with my update directly to the applications directory(
overwriting old jar file) and be able to access the udated ejb.Hello Ron,
An alternative would be to modify a REDEPLOY file if your application is deployed
in exploded directory format. However, updating the EJB JAR should also do the
trick. Try going into the Admin console and explicity redeploying the EJB JAR
file after copying over the new JAR file. Let us know if any errors appear.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Ron Turner" <[email protected]> wrote:
>
Hi
Iam attempting to update an EBJ jar file without taking down my WL7.0
server.
When I copy the jar file to the applications directory, I see the server
accepting
the update but when I run my client the update is not visible! Iseem
to be still
accessing the old ejb.
From my understanding, if the server is running in development mode I
should be
able to copy the jar file with my update directly to the applications
directory(
overwriting old jar file) and be able to access the udated ejb. -
How to deploy jar file into oc4j
Hi,
I am new to jdeveloper.
I deployed a application as .ear file by creating new coneection from the Connection navigator which is having web, ejbs amd client progrms. I dont have any problem with that.
But for my feature modification on my ejbs or client programs, i want to deploy only its related jar file in the existing application in the server. But when i try to do the same, the client module or ejb module is deploying as new .ear file in to the server insterd of .jar file.
How to overcome this in jdeveloper?
Thanfully,
Satish KC.I consider complete EAR deployment as a feature, because you can build self-contained versions, archive them and redeploy them in case of support situations.
However, if you like to develop in incrementally you can run, test, show your complete application within JDeveloper. No extra deployment is necessary for that.
--olaf -
Real dynamic xlst outside of jar file
Hello,
we want to externalize our xlst file oustide of the jar file of the BPEL process in order to change them without redeploying the BPEL application.
We try this way (http://www.w3schools.com/xsl/el_import.asp) but it seems BPEL doesn't support it.
We would manage this external XSLT on server file system or in a database entry.
Any clue ?http://ora-soa.blogspot.com/2008/05/migrating-bpel-processes-from-dev-to-qa.html
Modify the process(.bpel) file for the environment
when you store them at :http://server:port/orabpel/xmllib/xsl/file.xsl , does that work ?
Or some dedicated location on a http server ? -
Application working under NetBeans but not as a *.jar file
Hello,
recently I found a little problem. I wrote application that shows all available ports in my computer. When I am running this applications under NetBeans it works with no problem - finds all available ports. Then I am building it to the *.jar file. Application is working with no problem but command:
Enumeration PortIds = CommPortIdentifier.getPortIdentifiers();
is not returning any identifiers - PortIds is empty.
Anyone knows a solution for this type of problems? ThanksHi Venkatesh,
Few questions.
1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
-Arun -
.jar file is not working properly :developed in NETBEANS
Hi Gurus,
i am using NETBEANS IDE 7.2.
i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
but when i run executable .jar file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
this is how i call the .bat file...
String filePath = "D:/pms/Libraries/portlib.bat";
try {
Process p = Runtime.getRuntime().exec(filePath);
} catch (Exception e) {
e.printStackTrace();
and below is the contents of portlib.bat file
java -jar "D:\SMS\SMS\dist\SMS.jar"
you must probably ask why i am calling a .jar file using .bat file .
reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working ,
thanks.Thanks Sir ,
You need to first test an example that works like the one in the article.
There are plenty of other examples on the web - find one you like:
http://javapapers.com/core-java/os-processes-using-java-processbuilder/
I tried this one.
try {
ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
File commands = new File("D:/SMS/SMS/Send_message.bat");
File dirOut = new File("C:/process/out.txt");
File dirErr = new File("C:/process/err.txt");
dirProcess.redirectInput(commands);
dirProcess.redirectOutput(dirOut);
dirProcess.redirectError(dirErr);
dirProcess.start();
} catch (IOException ex) {
Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
as instructed in the article i compiled both the projects at same version or sources and libraries which is 1.7
here is my version details
C:\>javac -version
javac 1.7.0_07
C:\>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
inside the NETBEANS IDE c:\process\err.txt remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
here is the error text
java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
here is /SMS/SMS
unknown source ? -
Unable to load database driver from my applet's jar file
I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
Any help is appreciated, thanks.The simplest approach is always the best. :)Abso-lutely.
Awesome, that worked perfectly. I Included the extra
jar file in the applet tag and now my applet makes
some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations. -
Crystal Report not works in JAR File
I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
"com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal"
Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
ReportViewer.jar
jrcerom.jar
Concurrent.jar
CrystalCharting.jar
CrystalCommon.jar
CrystalContentModels.jar
CrystalExporters.jar
CrystalExportingBase.jar
CrystalFormulas.jar
CrystalQueryEngine.jar
CrystalReportEngine.jar
CrystalReportingCommon.jar
icu4j.jar
keycodeDecoder.jar
log4j.jar
MetafileRenderer.jar
rasapp.jar
rascore.jar
rpoifs.jar
Serialization.jar
URIUtil.jar
xercesImpl.jar
xml-apis.jar
and the mysql-connector jar file
Anybody help me please...Unable to load database connector
'com.crystaldecisions.reports.queryengine..driverImpl.
DriverLoader
now you have any idea.. pleaseIs that a typo where you have two periods below?
queryengine..driverImplOther than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there.
Maybe you are looking for
-
Please help me decide on a Mac mini server or MacBook Pro i7 for Logic
Hi folks, I've really taxed my brain trying to figure out what's the smartest way to go. I'd love to know what any of you think I should do. My current setup: 2007 MacBook Pro 2.33 GHz Core 2 Duo 2GB Ram FSB 667 MHz M-Audio ProFire 610 WD-Passport ex
-
The display Screen of my iPod touch is appearing complete White.
Hi All, Few days before i have attach my iPod touch to my laptop throgh data/charging code provided by apple. The dispaly screen is appearing complete white. Some time in past i have a same screen problemI It appeared white or some horizantal or vert
-
Macbook Pro 13" late 2011 constantly making noise
Lately my Macbook pro started making this constant whirring noise as if my fan was running constantly. The thing is though, even if I don't have any apps up and running, the noise is still there. It's usually pretty quiet but I can still hear it and
-
Crystal Reports Server Error - Unable to cast object of type
Hi Everyone, Not sure if this is the right place to post this question but couldn't find a Crystal Reports Server section. After doing a windows update on my crystal reports server the following error now occurs when trying to log into .Net InfoView
-
F4v files not being loaded into swf
Hello, my swf loads and plays my f4v locally but doesn't work on server or locally on my partner's system I sent min all files... have turned on MIME for f4v...that didn't fix it I have done this with Pro 8 and flv with success