Can't invoke allaire.ejipt.tools.Deploy frm Ant using build.xml
This is a question to everyone.
If you know the answer please let us know and the entire community will be grateful. If u have used JRun well and good, if not and u are using any other J2EE server, and u use Ant in conjunction to build ur application, then u must know the answer. I don't as I'm pretty new to Ant.
I'm trying to build an ant script/ build.xml that might work with Eclipse or simlar ide, the purpose is to compile and deply the Ejbs. The following is what I have got, see attcahed code
Now, see, I have defined the follwing in my ant script that is included at the bottom.
<property name="JRUN_HOME" location="C:/JRun"></property>
<property name="distroot" location="${JRUN_HOME}/servers/default"></property>
<property name="deploy_dir" location="${distroot}/deploy"></property>
<property name="deploy_jvm" location="C:/java/jre/1.3.1/bin/java"/>
<property name="deploy_tool" location="allaire.ejipt.tools.Deploy"/>But then, this is the Deploy task:
<target name="Deploy" depends="Initialize, Compile, Jar, Dist">
<echo message="About to deploy ${jarfile} in ${deploy_dir} using ${deploy_jvm}..."/>
<java fork="true" classpathref="classpath" classname="${deploy_tool}" dir="${deploy_dir}" jvm="${deploy_jvm}">
<jvmarg value="-Djava.security.policy=${JRUN_HOME}/lib/jrun.policy"/>
<jvmarg value="-Dejipt.home=${JRUN_HOME}"/>
</java>
<echo message="DEPLOY SUCCESSFULY COMPLETED..."/>
</target>But, when i run the script using ant - all other tasks are successfull apart from the Deploy and this is what I get:
Deploy:
[echo] About to deploy H:\lib\mtrack_ant.jar in C:\JRun\servers\default\deploy using C:\java\jre\1.3.1\bin\java...
[java] java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy
[java] Exception in thread "main"
[java] Java Result: 1
[echo] DEPLOY SUCCESSFULY COMPLETED...Hence, my problem is java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy. Some how I cannot find out how to tell the java task to use allaire.ejipt.tools.Deploy to deploy the jar file thats alreday be copied to the deploy directory.
And off course the message is correct that 'java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy' - because there isn't any allaire/ejipt/tools/Deploy in my home directory. This class is in the ejipt.jar which is in the ${jrun-jardir} which I have mentioned in the Deploy task, but it still doesnt work
This is very intersting - looking forward to any response.
Regards
Pratim
Attached is the entire build.xml file:
<?xml version="1.0" encoding = "UTF-8"?>
<project name="IAPS" default="Build IAPS with JDK1.4.2" basedir=".">
<property name="bin" location="H:/classes2"/>
<property name="src" location="H:/src"/>
<property name="jardir" location="H:/lib"/>
<property name="jarfile" location="${jardir}/mtrack.jar"/>
<property name="JRUN_HOME" location="C:/JRun"></property>
<property name="jrun-jardir" location="${JRUN_HOME}/lib"/>
<property name="distroot" location="${JRUN_HOME}/servers/default"></property>
<property name="deploy_dir" location="${distroot}/deploy"></property>
<property name="deploy_jvm" location="C:/java/jre/1.3.1/bin/java"/>
<property name="deploy_tool" location="allaire.ejipt.tools.Deploy"/>
<target name="Build IAPS with JDK1.4.2" depends="Initialize, Jar, Dist, Deploy">
<echo message="Ant at work for building RSSd library on PD's laptop!"/>
</target>
<target name="Initialize">
<echo message="Removing classes and logs..."/>
<delete>
<fileset dir="${bin}">
<include name="**/*.class"/>
<exclude name="**/*.dll"/>
</fileset>
</delete>
<delete>
<fileset dir="H:/">
<include name="**/*.log"/>
</fileset>
</delete>
<mkdir dir="${bin}"/>
</target>
<path id="classpath">
<pathelement location="${bin}"/>
<fileset dir="${jardir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${jardir}/ext">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${jrun-jardir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="Compile" depends="Initialize">
<echo message="Starting compiling..."/>
<javac srcdir="${src}"
destdir="${bin}"
classpathref="classpath"
debug="on"
/>
<echo message="Compilation complete..."/>
</target>
<target name="Jar" depends="Compile">
<echo message="Staring jar..."/>
<jar destfile="${jarfile}" basedir="${bin}"/>
<echo message="Jar complete..."/>
</target>
<target name="Dist" depends="Initialize, Compile, Jar">
<echo message="Copying files to the different distributions..."/>
<copy file="${jarfile}" todir="${deploy_dir}" />
<echo message="Copying complete..."/>
<echo message="BUILD SUCCESSFULY COMPLETED..."/>
</target>
<target name="Deploy" depends="Initialize, Compile, Jar, Dist">
<echo message="About to deploy ${jarfile} in ${deploy_dir} using ${deploy_jvm}..."/>
<java fork="true"
jvm="${deploy_jvm}"
dir="${deploy_dir}"
classpath="${jrun-jardir}/**/*.jar"
classname="${deploy_tool}" >
<jvmarg value="-Djava.security.policy=${JRUN_HOME}/lib/jrun.policy"/>
<jvmarg value="-Dejipt.home=${JRUN_HOME}"/>
</java>
<echo message="DEPLOY SUCCESSFULY COMPLETED..."/>
</target>
</project>
This is a question to everyone.
If you know the answer please let us know and the entire community will be grateful. If u have used JRun well and good, if not and u are using any other J2EE server, and u use Ant in conjunction to build ur application, then u must know the answer. I don't as I'm pretty new to Ant.
I'm trying to build an ant script/ build.xml that might work with Eclipse or simlar ide, the purpose is to compile and deply the Ejbs. The following is what I have got, see attcahed code
Now, see, I have defined the follwing in my ant script that is included at the bottom.
<property name="JRUN_HOME" location="C:/JRun"></property>
<property name="distroot" location="${JRUN_HOME}/servers/default"></property>
<property name="deploy_dir" location="${distroot}/deploy"></property>
<property name="deploy_jvm" location="C:/java/jre/1.3.1/bin/java"/>
<property name="deploy_tool" location="allaire.ejipt.tools.Deploy"/>But then, this is the Deploy task:
<target name="Deploy" depends="Initialize, Compile, Jar, Dist">
<echo message="About to deploy ${jarfile} in ${deploy_dir} using ${deploy_jvm}..."/>
<java fork="true" classpathref="classpath" classname="${deploy_tool}" dir="${deploy_dir}" jvm="${deploy_jvm}">
<jvmarg value="-Djava.security.policy=${JRUN_HOME}/lib/jrun.policy"/>
<jvmarg value="-Dejipt.home=${JRUN_HOME}"/>
</java>
<echo message="DEPLOY SUCCESSFULY COMPLETED..."/>
</target>But, when i run the script using ant - all other tasks are successfull apart from the Deploy and this is what I get:
Deploy:
[echo] About to deploy H:\lib\mtrack_ant.jar in C:\JRun\servers\default\deploy using C:\java\jre\1.3.1\bin\java...
[java] java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy
[java] Exception in thread "main"
[java] Java Result: 1
[echo] DEPLOY SUCCESSFULY COMPLETED...Hence, my problem is java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy. Some how I cannot find out how to tell the java task to use allaire.ejipt.tools.Deploy to deploy the jar file thats alreday be copied to the deploy directory.
And off course the message is correct that 'java.lang.NoClassDefFoundError: H:\eclipse\workspace\AdvancedLab\allaire/ejipt/tools/Deploy' - because there isn't any allaire/ejipt/tools/Deploy in my home directory. This class is in the ejipt.jar which is in the ${jrun-jardir} which I have mentioned in the Deploy task, but it still doesnt work
This is very intersting - looking forward to any response.
Regards
Pratim
Attached is the entire build.xml file:
<?xml version="1.0" encoding = "UTF-8"?>
<project name="IAPS" default="Build IAPS with JDK1.4.2" basedir=".">
<property name="bin" location="H:/classes2"/>
<property name="src" location="H:/src"/>
<property name="jardir" location="H:/lib"/>
<property name="jarfile" location="${jardir}/mtrack.jar"/>
<property name="JRUN_HOME" location="C:/JRun"></property>
<property name="jrun-jardir" location="${JRUN_HOME}/lib"/>
<property name="distroot" location="${JRUN_HOME}/servers/default"></property>
<property name="deploy_dir" location="${distroot}/deploy"></property>
<property name="deploy_jvm" location="C:/java/jre/1.3.1/bin/java"/>
<property name="deploy_tool" location="allaire.ejipt.tools.Deploy"/>
<target name="Build IAPS with JDK1.4.2" depends="Initialize, Jar, Dist, Deploy">
<echo message="Ant at work for building RSSd library on PD's laptop!"/>
</target>
<target name="Initialize">
<echo message="Removing classes and logs..."/>
<delete>
<fileset dir="${bin}">
<include name="**/*.class"/>
<exclude name="**/*.dll"/>
</fileset>
</delete>
<delete>
<fileset dir="H:/">
<include name="**/*.log"/>
</fileset>
</delete>
<mkdir dir="${bin}"/>
</target>
<path id="classpath">
<pathelement location="${bin}"/>
<fileset dir="${jardir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${jardir}/ext">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${jrun-jardir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="Compile" depends="Initialize">
<echo message="Starting compiling..."/>
<javac srcdir="${src}"
destdir="${bin}"
classpathref="classpath"
debug="on"
/>
<echo message="Compilation complete..."/>
</target>
<target name="Jar" depends="Compile">
<echo message="Staring jar..."/>
<jar destfile="${jarfile}" basedir="${bin}"/>
<echo message="Jar complete..."/>
</target>
<target name="Dist" depends="Initialize, Compile, Jar">
<echo message="Copying files to the different distributions..."/>
<copy file="${jarfile}" todir="${deploy_dir}" />
<echo message="Copying complete..."/>
<echo message="BUILD SUCCESSFULY COMPLETED..."/>
</target>
<target name="Deploy" depends="Initialize, Compile, Jar, Dist">
<echo message="About to deploy ${jarfile} in ${deploy_dir} using ${deploy_jvm}..."/>
<java fork="true"
jvm="${deploy_jvm}"
dir="${deploy_dir}"
classpath="${jrun-jardir}/**/*.jar"
classname="${deploy_tool}" >
<jvmarg value="-Djava.security.policy=${JRUN_HOME}/lib/jrun.policy"/>
<jvmarg value="-Dejipt.home=${JRUN_HOME}"/>
</java>
<echo message="DEPLOY SUCCESSFULY COMPLETED..."/>
</target>
</project>
Similar Messages
-
AIA Installing and Deploying Demo Application failed:Build.xml not found
Hi,
i am trying to install demo application using following steps
Extract Foundation Pack Demo under <AIA_HOME>.
If not already done so, set environment variables:
For Linux (bash shell)
source <AIA_HOME>/aia_instances/<aia_instance>/bin/aiaenv.sh
For Windows
Navigate to aiaenv.bat located in <AIA_HOME>\aia_instances\<aia_instance>\bin
Run aiaenv.bat
You may have to assign higher memory values in your JVM parameter settings for demo to deploy if you have not set the maximum possible value already. Use the following three steps as guidance to configure JVM parameters:
Navigate to <Middleware home>\user_projects\domains\<domain_name>\bin
Update the following parameter in the setSOADomainEnv.sh (for Linux) and setSOADomainEnv.cmd (for Windows) file:
USER_MEM_ARGS=""-Xms2048M -Xmx2048M -XX:PermSize=256M -XX:MaxPermSize=512M -Xmn1228M -XX:SurvivorRatio=10""
Note: These are recommended values while using Sun JVM. Actual values that you set depend on your system configurations. When running on dedicated hosts, you can set the JVM heap size as high as possible. Higher value results in better performance. However this number is constrained by the operating system's addressable memory space.
Restart SOA server
Run the deployment script:
At the command line prompt, run the following command for your platform:
For Linux:
cd $AIA_HOME/samples/AIADemo/config
ant -f deployDemo.xml
For Windows:
cd %AIA_HOME%\samples\AIADemo\config
ant –f deployDemo.xml
while runiing the deployment script it showing build.xml not exist..
Error Details
D:\Soasuite\oracle\Middleware\SOASuite11gR1PS4\oracle_common\samples\AIADemo\con
fig>ant -f deployDemo.xml
Buildfile: build.xml does not exist!
Build failed
Any suggestions
Thanks in advanceHi
This is the location i am having my installation because in this location only MY AIA instance got created.
Here i am pasting my env variable setup in aiaenv.bat file
#set environment variables
set AIA_HOME=D:\\Soasuite\oracle\Middleware\SOASuite11gR1PS4\oracle_common
set MW_HOME=D:\\ORACLE\Middleware
set SOA_HOME=D:\\ORACLE\Middleware\Oracle_SOA1
set JAVA_HOME=D:\ORACLE\Middleware\jdk160_24\jre
set AIA_INSTANCE=%AIA_HOME%/aia_instances/AIAinst1
kindly help... -
How to deploy the application via Build.xml
Hi,
this is my first time using this cloud service. I have an open source application to be deploy in the cloud. This application come with ANT script (build.xml) and table scripts.
Would like to know how do I configure the eclipse or write the build script to deploy the application into the java service. In addition, how do I configure the java service (app server) to talk to the database?
many thanks
I look forward to your advices and guidance.Hello ,
You can get this information from Java Cloud Service learning center.
Java Cloud Service provides a SDK (Download) which includes ANT tasks library (As well as Maven Plugin) which can be used to extend the Ant build file to deploy the application to the cloud.
In case of App server talking to the Database , that part is already taken care of in the Oracle Java Cloud Service and associated Oracle Database Cloud Service. -
Can you tell me what tool and settings I used?
look at the picture, it seems I used a brush to do the red line and inner blue and outter white but I can't replicate the exact thing can you guys tell me what tools I used? The line at the bottom is the one I want to replicate. The line at the top is the one I get from simulating settings.
Make a new blank layer below palo 2, click back on palo 2 and choose Layer>Merge Down or Ctrl+E
Or if you want to maintain the layer name, make a blank layer below palo 2, click back on palo 2 and beside the blank layer, click in the box just to the right of the eye icon on
the blank layer to link the layers. Then go to Layer>Merge Linked or Ctrl+E
Message was edited by: R_Kelly -
Can we rename Ant build.xml?
Hi
Can we rename ant default build.xml name to any other name like myapp_build.xml?
I know this is not right forum;I alreday googled for this.But no luck.
Please help me.
Thanks
AnilYes - but then you will need to specify the -filename option on the ant command line.
-
Can not access sample & admin tools after configuring Oracle8.1.7
Hi all,
I am using WLS6.1(sp2) and WLPortal4.0(sp1).
I changed the default database(i.e. Cloudscape) to Oracle by following the doc
http://edocs.bea.com/wlp/docs40/deploygd/oraclnew.htm
But, after setting up the Oracle8.1.7, when i try to access the sample stock portal
from the homepage, i am getting the following exception
PortalPersistenceManager: portal 'portal/stockportal' not found
<Feb 20, 2002 12:33:19 PM EST> <Error> <HTTP> <[WebAppServletContext(1467076,stockportal,/stockportal)]
Servlet failed with S
ervletException
javax.servlet.ServletException: Received a null Portal object from the PortalManager.
at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalRequest(PortalWebflowServlet.java:194)
at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at jsp_servlet.__index._jspService(__index.java:92)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
even i can not access the admin tools.....i get the follwing error when i try
to access the portalTools/index.jsp
<Feb 20, 2002 12:38:18 PM EST> <Warning> <Webflow> <Webflow could not resolve
a destination given: appname [tools], namespace
[admin_main], origin [begin], event [defaultEvent] with request id [3121877];
Attempting to load Configuration-error-page.>
<Feb 20, 2002 12:38:18 PM EST> <Error> <Webflow> <Error while parsing uri /portalTools/application,
path null, query string n
amespace=admin_main - Webflow XML does not exist, is not loaded properly, or you
do not have a configuration-error-page defin
ed.
Exception[com.bea.p13n.appflow.exception.ConfigurationException: The configuration-error-page
node was not found in the webfl
ow xml file. for webapp [tools], namespace [admin_main]. While trying to display
CONFIGURATION ERROR: [Exception[com.bea.p13n
.appflow.exception.ConfigurationException: Bad Namespace - namespace [admin_main]
is not available for webflow execution. Mak
e sure the [admin_main.wf] file is deployed in webapp [tools].]],]
at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurationError(WebflowExecutorImpl.java:786)
at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:484)
at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:419)
at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at jsp_servlet.__index._jspService(__index.java:92)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
Am i missing any step here???
can anybody help me????
thanks
Vijayoops...i missed step5.
it is working now after doing the sync.
thanks
Vijay
"Daniel Selman" <[email protected]> wrote:
Did you sync the applications and load the sample data?
Sincerely,
Daniel Selman
"vijay bujula" <[email protected]> wrote in message
news:[email protected]...
Hi all,
I am using WLS6.1(sp2) and WLPortal4.0(sp1).
I changed the default database(i.e. Cloudscape) to Oracle by followingthe
doc
http://edocs.bea.com/wlp/docs40/deploygd/oraclnew.htm
But, after setting up the Oracle8.1.7, when i try to access the samplestock portal
from the homepage, i am getting the following exception
PortalPersistenceManager: portal 'portal/stockportal' not found
<Feb 20, 2002 12:33:19 PM EST> <Error> <HTTP><[WebAppServletContext(1467076,stockportal,/stockportal)]
Servlet failed with S
ervletException
javax.servlet.ServletException: Received a null Portal object fromthe
PortalManager.
atcom.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalReq
uest(PortalWebflowServlet.java:194)
atcom.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:241)
atweblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at jsp_servlet.__index._jspService(__index.java:92)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
even i can not access the admin tools.....i get the follwing errorwhen i
try
to access the portalTools/index.jsp
<Feb 20, 2002 12:38:18 PM EST> <Warning> <Webflow> <Webflow could notresolve
a destination given: appname [tools], namespace
[admin_main], origin [begin], event [defaultEvent] with request id[3121877];
Attempting to load Configuration-error-page.>
<Feb 20, 2002 12:38:18 PM EST> <Error> <Webflow> <Error while parsinguri
/portalTools/application,
path null, query string n
amespace=admin_main - Webflow XML does not exist, is not loaded properly,or you
do not have a configuration-error-page defin
ed.
Exception[com.bea.p13n.appflow.exception.ConfigurationException: The
configuration-error-page>> node was not found in the webfl>> ow xml file. for webapp [tools, namespace [admin_main]. While tryingto
display
CONFIGURATION ERROR: [Exception[com.bea.p13n
appflow.exception.ConfigurationException: Bad Namespace - namespace[admin_main]
is not available for webflow execution. Mak
e sure the [admin_main.wf] file is deployed in webapp [tools].]],]
atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurati
onError(WebflowExecutorImpl.java:786)
atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:484)
atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:419)
atcom.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowS
ervlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:241)
atweblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
at jsp_servlet.__index._jspService(__index.java:92)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
Am i missing any step here???
can anybody help me????
thanks
Vijay -
Hi:
Can I invoke a BPEL process/service which is deployed on Oracle 10g Release 3 (10.1.3.5.1) using Spring framework 2.5.x?
Is it the same way we access the webservices using JAX-WS web service proxies provided by Spring?
Regards
Sreedharthe bpel process is just like any other webservice, so i assume you should be able to invoke it list like a plain other webservice
http://forum.springsource.org/showthread.php?26088-How-do-you-call-webServices -
How can I invoke the web service manually in websphere?
Hi
I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
Thanks in advance
PedroHi Bo Wang,
Go to the Portal -> System Administration -> System Configuration
-> Portal Content folder
-> Open Visual Composer folder
There you can see the Webservice Systems you have created through VC.
You can delete the unwanted system here.
Regards,
Shemim -
How can one invoke a WebLogic EJB from a BPEL Server hosted on OC4J?
How can one invoke a WebLogic EJB from a BPEL Server hosted on OC4J?
Reason I ask is I keep getting this error:
javax.naming.NoInitialContextException: Cannot instantiate cla
ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
oundException: weblogic.jndi.WLInitialContextFactory]
Note: I am using <bpelx:exec> as a way to execute some java program.
Essentially my java client (essentially an EJB client hosted on Oc4J) needs access to wlclient.jar since it needs access to weblogic.jndi.WLInitialContextFactory. I have a EJB client running on BPEL server hosted on Oc4J that needs to access some EJBs hosted on weblogic.
Where do I place this wlclient.jar so that BPEL PM can start peacefully and at runtime discover the InitialContextFactory classes?
Placing it in the j2ee/home/applib doesn't solve the problem. The server fails to start up if I do this
I tried placing it in BPEL-INF\lib directory ...
I still get the same exception...see below for exception dump
I verified the BPEL suitcase, and it in fact does contain the jar file wlclient.jar
integration\orabpel\domains\default\deploy contains the bpel_BPELProcess2_1.0.jar file and snapshot of that is as follows:
<PRE>
│ bpel.xml
│ BPELProcess2.bpel
│ BPELProcess2.jpr
│ BPELProcess2.wsdl
│ bpel_BPELProcess2_1.0.jar
│ build.xml
│ buildxml.copy
│ graphics.xml
│
├───BPEL-INF
│ └───lib
│ myEJB.jar
│ wlclient.jar
│
├───META-INF
│ MANIFEST.MF
│
└───output
bpel_BPELProcess2_1.0.jar
</PRE>
I tried using the BPEL-INF\jar directory...Is this something the obant automatically detects? or do I have to modify the build.xml? I created this directory and let Jdev deploy to local BPEL server->default domain handle it
#####################3
I even tried copying the wlclient.jar to
integration\orabpel\system\classes but this doesn't help since the BPEL PM fails to start if I explode this jar into this directory.
In short,where do I place the wlclient.jar so that this exception can be contained.
I edited the build.xml to point to the jar, that too didn't work, unless I made some mistake in the file
<bpelc classpath="${basedir}/BPEL-INF/classes;${home}/system/classes;${home}/lib/j2ee_1.3.01.jar;${basedir}/BPEL-INF/jar/wlclient.jar" input="${basedir}/bpel.xml" rev="${rev}" deploy="${deploy}" />
</target>
</project>
DETAILS on ERROR
I get the following error
Process "BPELProcess2" (revision "1.0") successfully compiled.
<2005-12-14 09:17:55,770> <INFO> <default.collaxa.cube.engine.deployment> Proces
s "BPELProcess2" (revision "1.0") successfully loaded.
05/12/14 09:18:36 weblogic.jndi.WLInitialContextFactory
javax.naming.NoInitialContextException: Cannot instantiate cla
ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
oundException: weblogic.jndi.WLInitialContextFactory]
05/12/14 09:18:36 at javax.naming.spi.NamingManager.getInitialContext(Nami
ngManager.java:652)
05/12/14 09:18:36 at javax.naming.InitialContext.getDefaultInitCtx(Initial
Context.java:243)
05/12/14 09:18:36 at javax.naming.InitialContext.init(InitialContext.java:
219)
05/12/14 09:18:36 at javax.naming.InitialContext.<init>(InitialContext.jav
a:195)
05/12/14 09:18:36 at com.ejb.test.MapFinder.getDefaultMapName(Map
Finder.java:37)
##################3
with the bpelx all I have is two lines of code that creates a java object and calls a method on it.
The method does this:
private String initialContextFactory = "weblogic.jndi.WLInitialContextFactory";
private String providerUrl = "t3://localhost:7001";
private String urlPkgPrefixes = "";
private String mapEjbJndiName = "ejb/mycompany/Redlands";
public String getDefaultMapName() {
try {
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, getInitialContextFactory());
env.put(Context.PROVIDER_URL, getProviderUrl());
if (getUrlPkgPrefixes() != null && !getUrlPkgPrefixes().equals(""))
env.put(Context.URL_PKG_PREFIXES, getUrlPkgPrefixes());
System.out.println(" " + getInitialContextFactory());
System.out.println(" " + getProviderUrl());
System.out.println(" " + getUrlPkgPrefixes());
System.out.println(" " + getEjbName());
// Get a naming context
context = new InitialContext(env);
Object ms = context.lookup(getEjbName());
MyEJBHome home = (MyEJBHome ) PortableRemoteObject.narrow(ms, MyEJBHome.class);
myEjb = home.create();
return myEjb.getDefaultName();
} catch (RemoteException re){
System.out.println(re.getCause().getMessage());
catch (Exception ex) {
ex.printStackTrace();
return null; //if unable to resolve the context factory etc...
}I did exactly as you suggested. I edited the application.xml and added this
<library path="C:\ArcGIS\test\bea\wlclient.jar"/>
I didn't add weblogic because the needed classes were all in wlclient.jar
I also edited the BASE_OB_CLASSPATH to include this jar.
Here is the result when I just start BPEL PM Server. Somehow BPEL PM doesn't like to have wlclient.jar in its classpath during startup.
Failed to create "worker" bean; exception reported is: "javax.naming.NameNotFoun
dException: remaining name: env
at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:49)
at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:57)
at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:62)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.ejbCreate(WorkerBean.java
:49)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.evermind.server.ejb.MessageDrivenHome.getInstance(MessageDrivenHo
me.java:1235)
at com.evermind.server.ejb.MessageDrivenHome$2.run(MessageDrivenHome.jav
a:1150)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
<2005-12-29 13:39:05,281> <ERROR> <collaxa> <ServerManager::loadAllDomains>
ORABPEL START-UP ERROR!!!!!!!!
OraBPEL run-time system failed to start due to exception:
Could not initialize jms connection pool.
Could not initialize connection pool for connection factory "java:comp/env/jms/
ollaxa/BPELInvokerQueueFactory"; the reason is remaining name: env/jms/collaxa/
PELInvokerQueueFactory.
Note: So what I did was to removed the entry from application.xml and tried with just obsetenv.bat having the wlclient.jar added to it. This too failed!!
Here is a snapshot of the error I got.
Process "BPELProcess2" (revision "1.0") successfully compiled.
<2005-12-29 13:53:11,207> <INFO> <default.collaxa.cube.engine.deployment> Proces
s "BPELProcess2" (revision "1.0") successfully loaded.
05/12/29 13:53:32 Cannot instantiate class: weblogic.jndi.WLInitialContextFactor
y
05/12/29 13:53:32 javax.naming.NoInitialContextException: Cannot instantiate cla
ss: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotF
oundException: weblogic.jndi.WLInitialContextFactory]
05/12/29 13:53:32 at javax.naming.spi.NamingManager.getInitialContext(Nami
ngManager.java:652)
05/12/29 13:53:32 at javax.naming.InitialContext.getDefaultInitCtx(Initial
Context.java:243)
05/12/29 13:53:32 at javax.naming.InitialContext.init(InitialContext.java:
219)
05/12/29 13:53:32 at javax.naming.InitialContext.<init>(InitialContext.jav
a:195)
05/12/29 13:53:32 at com.esri.adf.ejb.test.MapFinder.getDefaultMapName(Map
Finder.java:57)
05/12/29 13:53:32 at bpel.p0.ExecLetBxExe1.execute(ExecLetBxExe1.java:62)
05/12/29 13:53:32 at com.collaxa.cube.engine.ext.wmp.BPELXExecWMP.__execut
eStatements(BPELXExecWMP.java:49)
05/12/29 13:53:32 at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perfo
rm(BPELActivityWMP.java:185)
05/12/29 13:53:32 at com.collaxa.cube.engine.CubeEngine.performActivity(Cu
beEngine.java:3398)
05/12/29 13:53:32 at com.collaxa.cube.engine.CubeEngine.handleWorkItem(Cub
eEngine.java:1905)
05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.message.instance.Per
formMessageHandler.handleLocal(PerformMessageHandler.java:75)
05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.DispatchHelper.handl
eLocalMessage(DispatchHelper.java:100)
05/12/29 13:53:32 at com.collaxa.cube.engine.dispatch.DispatchHelper.sendM -
Panic[cpu7]/thread=30000375d00: Can't invoke , error 2
Hi,
I am trying to install Solaris 9 into an Ultra Entreprise 3000 (client) from a JumpStart server. I did setup this new client with add_install_client, updated rules, sysidcfg and profiles, etc. ,but the client always stops with a "panic cpu" error message.
Requesting Internet address for 8:0:20:83:b9:4
Internet address is: (Address IP)
hostname: test5
Found 192.168.166.171 @ 8:0:20:83:b5:16
root server: test3 (Address IP)
root directory: /jumpstart/solaris_9/install/Solaris_9/Tools/Boot
Size: 0x5d91b+0x14bb5+0x2563f Bytes
SunOS Release 5.9 Version Generic_117171-07 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Ethernet address = 8:0:20:83:b9:4
Using default device instance data
mem = 524288K (0x20000000)
avail mem = 491601920
root nexus = 4-slot Sun Enterprise 3000
sbus0 at root: UPA 0x2 0x0 ...
sbus0 is /sbus@2,0
sbus1 at root: UPA 0x3 0x0 ...
sbus1 is /sbus@3,0
SUNW,hme0 : Sbus (Rev Id = 22) Found
hme0 at sbus1: SBus1 slot 0x3 offset 0x8c00000 and slot 0x3 offset 0x8c02000 and slot 0x3 offset 0x8c04000 and slot 0x3 offset 0x8c06000 and slot 0x3 offset 0x8c07000 SBus level 4 sparc9 ipl 7
hme0 is /sbus@3,0/SUNW,hme@3,8c00000
Requesting Internet address for 8:0:20:83:b9:4
SUNW,hme0 : Internal Transceiver Selected.
SUNW,hme0 : 100 Mbps Full-Duplex Link Up
Found my IP address: c0a8a6ad (IP Address)
hostname: test5
whoami: no domain name
root on test3:/jumpstart/solaris_9/install/Solaris_9/Tools/Boot fstype nfsdyn
fhc0 at root: UPA 0x6 0xf8800000
fhc0 is /fhc@6,f8800000
ac0 board 3 bank 0: base 0x0 size 256mb rstate 2 ostate 1 condition 1
ac0 board 3 bank 1: base 0x40 size 256mb rstate 2 ostate 1 condition 1
ac0 is /fhc@6,f8800000/ac@0,1000000
fhc1 at root: UPA 0x2 0xf8800000
fhc1 is /fhc@2,f8800000
ac1 is /fhc@2,f8800000/ac@0,1000000
central0 at root: UPA 0x1f 0x0 ...
fhc2 at root: UPA 0x0 0xf8800000
fhc2 is /central@1f,0/fhc@0,f8800000
sysctrl0 is /central@1f,0/fhc@0,f8800000/clock-board@0,900000
sysctrl0: Key switch is in the secure position
environ0 is /fhc@6,f8800000/environment@0,400000
environ1 is /fhc@2,f8800000/environment@0,400000
simmstat0 is /fhc@6,f8800000/simm-status@0,600000
sram0 is /fhc@6,f8800000/sram@0,200000
zs0 is /central@1f,0/fhc@0,f8800000/zs@0,902000
zs1 is /central@1f,0/fhc@0,f8800000/zs@0,904000
cpu6: UltraSPARC-II (portid 6 impl 0x11 ver 0x11 clock 248 MHz)
cpu7: UltraSPARC-II (portid 7 impl 0x11 ver 0x11 clock 248 MHz)
panic[cpu7]/thread=30000375d00: Can't invoke , error 2
000002a1001a5a40 genunix:icode+284 (1444c00, 0, 1438a38, 30000379438, 16, 0)
%l0-3: 00000000ffbfffec 00000000ffbffffb 0000000000000000 0000030000b35c08
%l4-7: 0000000000000000 00000000ffbffffc 00000000014579d0 0000000001457800
syncing file systems... done
skipping system dump - no dump device configured
rebooting...
Resetting...
Software Power ON
Could anyone please help ?
Many thanks, regards.Check the ports of Web services and those of BPEL, as Hambo have different communication ports.
Normally Webservices point to the port 8080 and BPEL to 18181 or 9084.
Check and I accounts.
Greetings. -
Deploy ejbs without using deployment tool in J2EE server
Hi,
IS there any way to deploy ejbs in J2EE without using the deployment tool? I am using the j2ee 1.2.1.
Thanks,
NipaWhen I was in my companies Java Boot Camp (6 week fulltime training in Java technologies) the class was split about 75/25 with 75% of the class using a deployment tool (I think it was WebGain). The other 25% did not use a deployment tool. I was one of the 25%.
What we did was write a Perl script that took care of all the necessary deployment steps. It has been awhile, and I no longer work for that company, but I'll try and dig up some of those scripts. (Can't promise I'll find them!)
BTW, the 25% group deployed more EJBs with less problems than those using the deployment tool... -
I just upgraded to LV2013SP1 and came across a VI that now is broken in my project: Set RIO Device Settings.vi (which is a part of RIOSystemReplication2009.zip). Apparently this happened in 2009 as well for a different VI in the same collection of tools (see Where-can-I-find-FPGA-replication-tool-for-labview-2009. I tried the mentioned VIs in this article but both of them are broken). Note that the Replication and Deployment (RAD) Utility does not seem to support the functionality that Set RIO Device Settings does, so I still need to use the old one.
Since the VI is password protected I cannot attempt to fix it. Might be something as simple as a type that changed...
Any help appreciated!
Rob
LV2011,LV2012,LV2013Hey Rob,
This problem has already been brought to NI R&D's attention, and they are working on a fix under Corrective Action Request (CAR) 454468. Unfortunately, until they fix the problem there may not be a way to correct the problem in the near future. The CAR is set for higher priority, so a fix could come shortly.
Regards,
Ryan -
(266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
on a different Application Server?
A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
however, it is a general goal to expand the functionality of the Workshop tool for
other App Servers.Just so you'll know Oracle9iAS also includes apache as the HTTP server.
As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs. -
How many parallel BPEL child processes can be invoked on single BPEL server
Hi,
Can anyone pls let me know
1. How many parallel BPEL child processes can be invoked on single BPEL server at same time?
2. How number of Invoker threads, Worker threads and DB connection pools are affecting the BPEL server's listener thread spawning capacity?
Thanks in advance.
-SHi James
Here is my problem. I need to do this for load balancing. I have two instances of SOA Suite running on single machine, i.e. two different BPEL servers. Now i need 2 BPEL instances on each server, i.e. two SOA Suite and four BPEL instances (Two BPEL servers on each SOA Suite)
I tried to create a new OC4J instance on my app server and named it as OC4J_new. By default OC4J instance would have these application installed:
ascontrol
ccore
coreman
datatags
default
esb-dt
esb-rt
gateway
hw_services
javasso
orabpel
orainfra
policymanager
ruleauthor
rulehelp
But when i create new OC4J instance, i can see only these applications:
ascontrol
datatags
default
javasso
How do i get rest of the applications in my new OC4J Instance??
I tried deploying .EAR files but it failed all the time. What are possible fixes?
Many thanks in advance -
How can I invoke BPEL process to run ?
Hi,
after deploying the bpel process, which way I can invoke it without BPEl console ?
Can I invoke it from inside of my stored procedure
or creating (and invoking then) concurrent-process in OEBS ?Clemen,
Thanks for the response.
Assuming that I created right xml(+ namespaces) in the stored procedure, put it into varchar2 parameter, and invoked BPEL WS. My question is how I can parse it?
Advise please. I'm a rookie on the XML.
I also tried to pass delimited string from plsql and then parse it using orcl:create-nodeset-from-delimited-string. Unfortunately I didn't figure out what I have to put as a QName parameter of that function. The documentation is insufficient. There is no any sample with that function. Another guy is also was struggling with it: create-nodeset-from-delimited-string
Maybe you can clarify it?
Thank you in advance.
Sergey.
Maybe you are looking for
-
How do I get an image on to a CD?
I ama trying to put an image on to a CD and can't get it to work. Help!
-
ITunes doesn't fit my Samsung screen. Why is it too big?
The iTunes interface is too large for my Samsung screen. There is no menu bar at the top. What must I do to make it fit?
-
Duplicate Sales Order Check run
Hi all, How to run a duplicate sales order check report? Thank you Vinu
-
Is the version PHP 5.2.6 fully compatible with version OCI8 1.2.5?
Good Morning everybody: The different versions of PHP and OCI8 under oracle documentation are: To PHP 5.2.7: OCI8 1.2.5 (Oracle Client 8i, 9i, 10g, 11g) To PHP 5.2.7: OCI8 1.2.5 (Oracle Client 10g, 11g) To PHP 4.3.9: OCI8 1.3.4 (Oracle Client 9iR2, 1
-
Extracting text from header, body of an InCopy table...
Hi folks, I have a script that runs in InCopy CS3 on the Windows platform and part of it extracts text from the header and body parts of a table. If the insertion point is in the header, I can put the text into a variable using... var textToExtract =