Deploying J2EE application on one instance for Clustering
Hi,
I was just wondering if anyone attempted this before. We are going to have multiple clusters of iAS with J2EE applications on each of them. However the source will be hosted on a non-iAS, non-J2EE disk and on the iAS/J2EE cluster, we will have a virtual link to the source files. That way, we only need to put the source files in one area and have the J2EE be a virtual link to the original source.
Thanks.
Hi. Well someone here suggested we have an OC4J instance on a Linux machine and another OC4J instance on another Linux machine. Each of them does not contain the original J2EE application source to be deployed. It will have a mirror of the J2EE application with each source files (JSP, class files, images, etc) acting as a virtual link to a centralized location to just store the application source.
So to visualize, we have two different OC4J clustered instances with the empty source files pointing to one centralized location of the source files.
This would only help us deploy in one location as oppose to each clustered location. Anyone ever tried this one before?
Similar Messages
-
Deploying J2EE applications on one location
Hi, someone in our group recommended this for our iAS (10.1.2.0.2) set up.
1) We want multiple OC4J instances to be on multiple linux machines for clustering.
2) Instead of deploying a J2EE app on each instance, can we configure the J2EE home to look at one centralized location? We would have all the source files be hosted on one centralized disk and have each OC4J instances (clustered) to be configured to use the source files on the centralized location?
Thanks.Hi. Well someone here suggested we have an OC4J instance on a Linux machine and another OC4J instance on another Linux machine. Each of them does not contain the original J2EE application source to be deployed. It will have a mirror of the J2EE application with each source files (JSP, class files, images, etc) acting as a virtual link to a centralized location to just store the application source.
So to visualize, we have two different OC4J clustered instances with the empty source files pointing to one centralized location of the source files.
This would only help us deploy in one location as oppose to each clustered location. Anyone ever tried this one before? -
SaxParser error when deploying J2EE application on 10gAS for IBM AIX 5.2
Hello,
We have problems deploying J2EE application on 10gAS 9.0.4.0.0, on IBM AIX 5.2. We deployed it on 10gAS for Windows 9.4.0.0 and 9.0.4.0.1, and on 10gAS 9.0.4.0.0 for Linux, without any trouble (installed ADF runtime, etc.).
Application architecture is JSP/Struts/ADF BC4J. We used JHeadstart 10g framework.
As soon as we start the application, we get the message described bellow. We saw that J2SE version, shipped with the AS is 1.4.1? On all the other AS versions, and in embedded JDeveloper OC4J is 1.4.2.
We also use the Xerces library xercesImpl.jar, which is located in .../WEB-INF/lib directory (which contains SaxParser implementation), if that is important. But the application fails right on the beginning.
The complete error message follows:
javax.xml.parsers.FactoryConfigurationError: Provider null could not be
instantiated: java.lang.NullPointerException at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:30) at
org.apache.commons.digester.Digester.getFactory(Digester.java:512) at
org.apache.commons.digester.Digester.getParser(Digester.java:686) at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:902) at
org.apache.commons.digester.Digester.parse(Digester.java:1567) at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433) at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at
oracle.jheadstart.controller.struts.JhsActionServlet.init(JhsActionServlet.java:219) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:568)
Any information would be helpful,
Vladimir,
MAOP d.o.o., SloveniaFigures, I've been fighting with this for the past day and a half and I figure it out shortly after I post the question.
It turns out the tiles.jar that was in our WEB-INF/lib directory was an old one. It looks like the newer struts.jar (from jdeveloper) we're using includes the tiles information. Once I removed tiles.jar, commons-dbcp, pool, resources, and services, it works now.
It looks like jdeveloper overwrites most of those files with it's built in struts integration, and we've just been lucky before that struts.jar was being loaded before tiles.jar and something with oas 10.1.3 is loading the jars in a different order--but I'm just guessing here. -
Updating a Deployed J2EE Application Component
Hi All,
I was going through this link below :
http://e-docs.bea.com/wls/docs61/adminguide/utils.html#1139180
Updating a Deployed J2EE Application
To update a specific component, enter the following commands:
% java weblogic.deploy -port 7001 -host localhost -component
Basic_example:sampleserver,exampleserver update weblogicpwd Basic_example c:\updatesample\ejb\basic\BasicStatefulTraderBean.jar
update will cause the application or component to be updated on all server instances
to which is targeted.
Does this require the application be deployed in a "Expanded Directory Format"
and "Auto-deployment" turned 'on' ? - which is not good for Production, I guess.
Regards,
Nathan PillaiHi Uday,
Steps to be followed !!!
1. Take a Copy of the .Ear to test.EAR
2. Rename test.Ear to test.Zip
3. Extract the Files present in the test.zip into a Folder 'test' (this folder has the .War file)
4. Rename .war to .Zip
5. Extract the Contents from .zip to a Folder(myRoot Folder should contain the JSP, WEB-INF, Filters, WebContent etc)
6. Open NWDS --> create a Web Container Project(myContainerWar) in J2EE perspective
7. Select myContainerWar --> right Click --> Choose IMPORT File --> Browse --> Select MYROOT folder created by us. FINISH
WAR holds the total Structure of the Web Component based application.
Meaning WAR structure will get created in the NWDS !!!!
Once you are finished with the Changes, you have to create a EA project in NWDS and add the new WAR to it. Build the .EAR and deploy it !!!
Thanks
Suresh KB -
Fastest way of re-deploying j2ee applications
I am using Iplanet Application server to deploy j2ee applications. I want to know the fastest way to redeploy whole application after making some changes in JSPs, Servlets and EJBs?
Do i have to pack the whole ear again and then re-deploy it again to see the changes or there is any alternative?If change is done in JSPs, u can test it copying in public_html folder in J2EE. And when JSPs are finalized make EAR file and redeploy it.But for EJBs u have to redeploy the EAR file again. Remember public_html folder contains files teporarily, if application is undeployed all the files are deleted.
-
Can i create more than one instance for single database?
HI
anybody can tell me how to create more than one instance for single database(without using RAC)?
thanks
KalanidhiAnandji,
I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
The main doubt of mine is that we create multiple instances accessing the same storage area.
Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
Why can't the same files be shared between the two instances in a same system ?
I know I am thinking a little bit confusing...
Anyway I need to test that also...
Mahesh. -
Generate one instance for all users in a Group
Hi All,
We have BO 3.1 with FP 2.6.
There is a report that needs to be schedule in such a way that it will generate only one instance for all the users belonging to u201CGlobalu201D community while for rest of the users wonu2019t see any instance of it. They will simply run the report on demand providing the prompt values.
I am able to run the report for whole u201CGlobalu201D group (using u2018schedule foru2019) option but the problem is it creates as many instances as the number of users I have in this group. As users of this group have same data level access, so primarily theyu2019ll get same report output. That is why it is not desirable to run this report for all of them instead there should be a way it creates one instance after each schedule for the whole community.
Please suggest.
Thanks,
ChandraHi Chandra,
I think there are still ways to use publications to achieve what you want.
For instance, I created the below scenario:
- Created 3 users (pub1, pub2, pub3) and put them in group (publication users)
- I created a publication and specified the "publication users" group as the enterprise recipients
- Set the destination to be Default & BusinessObjects Inbox. Set the "Send As" option to Shortcut instead of copy.
- Under Advanced, I set it to one db fetch for all recipients.
- Scheduled this and it ran the report once, and created a shortcut to that object in each users inbox (user in the group specified)
This meets most of your criteria. The rest of it should be handled by security on the objects/folders.
Another option may be Object Packages with the proper security setup.
Thanks
JB -
One instance for two different application
Hello,
I have to solve following problem..
need have one instance of object for two different application..fist is standard SE application and second is EE (web)..
SE application is a server..listen on and accepting connection from mobile phone..and EE application need to show list of connected devices and should say to SE application that new device was connected..
I would like to do this without database..only server and web app..
I have thought about RMI..but hope there is more simple solution..
Thanks a lot for your ideas.
DmitrijI would like to do this without database..only server and web app..You have your reasons for wanting this to be the case. If you are sure you don't want a DB, then pass the state of the object between the two ends using XML as the transport form. As someone said, you can use JMS or you can write an HTTP POST or probably other transport mechanisms other people will suggest to actually get it over the wire from one side to the other.
As to your question of how to sync state, just make the object you're sharing final after it's been created (on the side that creates it) and make the reference that receives it and holds it final also, after you've reconstructed it from the XML you received. -
Deploy applications in one instance
Hello I have a problem because when trying to deploy an application server for giving me this problem telling me that the type of file is invalid and I have tried both. As in war. Jar and gives me the same problem, if I could explain how to deploy an application, an application we simply appreciate what you, forgive my English
a greetingHi,
Thanks. I also realized that we can put in under web.xml and thats how we do it at the moment. However, we are looking at the more 'global' way in the sense that we do not need to do it for each of our web applications. Hence, I think that config.xml may be the best place to look for but up to now, I am quite pessimistic that we can configure this in the WebLogic server's level.
Any idea?
Best Regards
David -
Error in deploying J2EE application
Hello
I created EJB application and trying to deploy the same into my J2EE server (we are using J2EE engine of our XI WAS server).While deploying .ear file through NWDS its giving following error
"Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !"
we have mapped J2EE engine correctly i.e. Message Server IP and port. Still its giving this problem.Is it something need to be configure on J2EE server side?
Regards
AshishHi Ashish,
First Configure your J2EE Server correctly.
example:
In your work bench.
Go To windows - preference - SAP J2EE Engine
Select your J2EE engine accordingly..if you installed in it local the select SAP J2EE engine is installed on local host.
give instance name and system name.
ex: System name - F31
J2EE Instance - 30
SCS Instance - 31
close and open Webdynpro.
Go to J2EE Engine Tab.
Dispatcher ,SDM,Server0 Everything should be in Green colour.
Otherwise give some time to server for starting process.
Now It should work for you.
Now try to deploy your Application.
Regards,
Karthick -
Hi,
I am writing a J2EE application which (in theory, at least)
connects to an Oracle 9i database.
I have written a simple Java test app utilising only the
java.sql package classes (e.g. Connection, ResultSet) to directly
connect to the database. As long as the classes12.zip is in the
CLASSPATH it works fine.
Now I have written an Enterprise application (SessionBean,
Remote and Home interface and Client) which I am attempting to
deploy via deploytool.
If I include just the client jar and EJB jar in the application
it deploys okay but when I run the application (using runclient)
it produces the following error:
java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
(It is nested within other error output but that is the core
issue).
However if I try to include the JAR libraries into the app
(classes12.jar and nls_charset.jar from $ORACLE_HOME/jdbc/lib),
then I get the following output from deploytool when I hit the
"deploy" (or "redeploy") button:
Deployment error: invalid entry compressed size
(expected 14411 but got 14580 bytes)
Can someone please tell me what is going on???
How can I deploy the J2EE application including the Oracle
JDBC Driver???
My only other option at the moment is to place all the function-
-ality in the client and not use the J2EE framework.
Any help is greatly appreciated.
Regards,
Ben New
Leftclick Software Development
[email protected]OK Ben,
I admit I'm a bit confused. Let me see if I understand where you're
coming from.
You have written a J2EE application that includes a session bean,
correct? If so, your session bean needs to be deployed to an EJB
container. What container are you using? The Oracle 9i database
has an embedded EJB container which (theoretically) you can use.
However, as far as I know, Oracle recommends you use OC4J as the
EJB container. So again I ask, what EJB container are you using?
If, as you say, you are new to EJB, then I think you should
immediately start working wiht OC4J as your EJB container.
Did you look at the tutorial link I gave in my previous post? It
explains -- step by step -- how to create, deploy and run a J2EE
application using OC4J as the EJB container. It also has links to
introductory material for people without little knowledge of J2EE
and EJB.
I have 9iAS Enterprise Edition and 8.1.7.1.0 database server (and
OC4J) installed on my SUN machine. I cannot find any of the
utilities you mention -- "j2eeadmin","runclient" or "deploytool".
What Oracle software have you installed? What are the versions?
What platform are you using?
A J2EE application (according to the specification from SUN)
consists of modules. A module can either be a client module or an
EJB module. A client module can either be a java application client
or a web-based client (servlet or JSP). A J2EE application usually
contains one client module and one EJB module. A J2EE application
needs to be deployed to a J2EE container.
Hopefully the J2EE picture is becoming clearer. I think you need
to read some introductory material regarding J2EE if you intend
to become proficient at it.
I feel that you are under the impression that a J2EE application
is a glorified JDBC application. It isn't (as far as I'm aware).
Good Luck,
Avi. -
Deploying J2EE application with MDB
Hi,
I am looking for a solution to deploy a J2EE application with MDB and the resource provider as well. For now, I only see the solution to manually create a resource provider by the EM enterprise console or to add the resource provider into the application.xml in the oc4j instance.
Any help appreciated
PeterHi,
This looks like an incorrect AQ JMS Jar file. Please contact the AQ team if this is a known issue and if required log a tar against AQ.
Thanks
Raja -
No Data Source found error while deploying J2EE application
hi
i am new to Oracle9ias. I was going through the Oracle by Example tutorial available on the site. There i followed the steps to deploy a sample J2EE application. Acc to it i first created the datasource and then tried to deploy the application. But i am getting "datasource not found" error. I am totally unaware of the possible cause of this. The error in specific is as follows
Deployment failed: Nested exception Root Cause: No DataSource found at jdbc/hrDS. No DataSource found at jdbc/hrDS
Please help
thanks
nitinDocument is outdated & for now could you please follow http://dev.day.com/content/kb/home/cq5/Development/HowToConfigureSlingDatasource.html
-
Deployed J2EE application successfully. But cannot access the application
I installed SAP Netweaver 2004s and tried to create a Web application and an ear file looking at the example given at
http://help.sap.com/saphelp_nw04/helpdata/en/7f/5c93acbd1343d4be7d79dc298faa7b/frameset.htm
I followed all the steps listed there. The deployment from the Developer Studio showed success. When I try to access the application using the url
http://localhost:50000/Calculator/Calculator.jsp I get the following error. I am not sure why it is looking at com.sap.engine.docs.examples for the file.
The requested resource /Calculator/Calculator.jsp is not available
Details: File [Calculator/Calculator.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
Please let me know what I am possibly doing wrong here. Any help is very much appreciated.Hi Viji,
If you are opening the web browser from your desktop , instead of <localhost>, you should use the name of the machine on which your J2EE engine is installed.
Call the calculator application by entering its URL in the Web browser:
http://<host>:50000/<contextRoot>/<Name_of_JSP.jsp>
Where <host> is where j2ee is installed.
Regards,
Siddhesh -
Deploying multiple apps on one instance of wls 8.1
We currently have have one huge application (one ear file) running on one instance
of wls 8.1. We plan to break this up in 3 different application (3 different ear
files). We are using split
development directory structure of weblogic 8.1. Out problem is, we have some
ejbs and some war files (like servlets anf jsps) which are common across all the
applications. How do we manage this ? Do we make a different application for this
common component ?
Thanks in advance.
YogeshOut of curiousity, why are you splitting up the ear?
How do you intend to package the common ejbs/webapps across the 3 ear files?
If you're going to copy the common files into each application, then i
would probably have a separate build.xml that builds the common pieces.
The other apps can just copy these common pieces into their build
directory. If the common pieces aren't changing very frequently, then
this is pretty nice.
-- Rob
Yogesh Ranjan wrote:
We currently have have one huge application (one ear file) running on one instance
of wls 8.1. We plan to break this up in 3 different application (3 different ear
files). We are using split
development directory structure of weblogic 8.1. Out problem is, we have some
ejbs and some war files (like servlets anf jsps) which are common across all the
applications. How do we manage this ? Do we make a different application for this
common component ?
Thanks in advance.
Yogesh
Maybe you are looking for
-
Adf faces command button, bindings and ejb 3.0 persisting problem
When mapping the persist method to an adf command button it got this error: 1. JBO-29000: java.lang.IllegalArgumentException: PERSIST impossible sur l'objet détaché : hr.entity.Departments@1b21.; nested exception is: java.lang.IllegalArgumentExceptio
-
How do I transfer from iphone 4 to 4s while still leaving gaming apps on the iphone 4?
I would like to transfer all everything from my iphone 4 to a 4s while still leaving the gaming apps on the orginial iphone 4. My plan is to tranfer my phone number to the iphone 4s so that my son can use the iphone 4 as a gaming device only.
-
Hi all, The text in Sales order (va01) is not getting prented. so we are facing problem while doing production order (cohv). Please help. Thanks, Utpal
-
My phone (5530xm) won't start
i'm one of those unlucky ones. when i did an update on my nokia 5530xm, it just went hung, now, everytime i push the power button it just vibrates and won't do a thing. what should i do? got one more question, can i reformat my phone even it its not
-
IPhoto recognize all the faces show black pic
Iphoto 11 show me 1200 photo without faces but just only a black picture?How can solve? thk smelz