I am trying to find a way to build Ruleapp.jar from command line and going through this link, and found a command.
java -jar Build_Command_Line_executable_archive -config configuration_file
Trying to figure out what "Build_Command_Line_executable_archive" is and from where I can get this jar to execute the above command
The "Build_Command_Line_executable_archive" is a jar file that comes with ODM. You should be able to find it with the other ODM installation files. On my computer, this file is at:
C:\IBM\ODM89\buildcommand\rules-compiler\rules-compiler.jar
Note: In v8.9.1, there is a defect in the build command tool that causes the RuleApp archive that is generated to include the file "META-INF/archive.xml" that contains 'resuri' instead of 'reslib'. You have to manually edit this file in the RuleApp archive to fix it or write a script to do it for you.
Related
I have created a project using Robot Framework in Eclipse via RED. I want to know how can I run this project via Windows Command Line, so that I can create a Jenkins job to run it at a particular time ? I have tried using the steps for running Eclipse Project from command line via Debug mode, but it is not helping.
Please find the project structure below
I also tried to reach this location and run this test suit using the command
Robot Test_Suite.robot, but then I'm getting below 2 errors
1.) Importing test library 'Excel_Library' failed: ImportError: No module named Excel_Library. This file is a python file which I have written to support Excel operations and it is present at below location in the project -
2.) No Such File Or Directory - Path_To_External_Input\\External_Inputs.xls
This file contains the input which is being read before performing operations related to test suite and it is present at below location -
Do I need to add those in the command line if so how to take care of that ? This project run smoothly from eclipse but only problem is coming from command line.
It seems that you are able to run robot correctly, although I would prefer lowercase R with robot command.
1) I think you have misspelled the library name. If it's a pip package, try ExcelLibrary instead, and check that you have installed it by pip list command or equivalent.
2) Please check the path. Without additional info on how and where the file is called and where the file is located are needed.
When I click generate and copy WSDL it returns error like this:
ant -f H:\\Projects\\NetBeansProjects\\wsCiscoCallBack\\nbproject\\build-
impl.xml wsgen-CiscoCallBack
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Compiling 3 source files to H:\Projects\NetBeansProjects\wsCiscoCallBack\build\web\WEB-INF\classes
wsgen-init:
wsgen-CiscoCallBack:
JAX-WS RI 2.2.11-b150120.1832
command line: **wsgen"C:\Program Files\Java\jdk1.8.0_121\jre\bin\java.exe" -d H:\Projects\NetBeansProjects\wsCiscoCallBack\build\generated-sources\jax-ws -Xendorsed -keep -s H:\Projects\NetBeansProjects\wsCiscoCallBack\build\generated-sources\jax-ws -verbose -classpath "C:\Program Files\Java\jdk1.8.0_121\lib\tools.jar;H:\Projects\NetBeansProjects\wsCiscoCallBack\build\web\WEB-INF\classes;C:\Program Files\glassfish-4.1.1\glassfish\modules\webservices-osgi.jar;C:\Program Files\glassfish-4.1.1\glassfish\modules\endorsed\webservices-api-osgi.jar;C:\Program Files\glassfish-4.1.1\glassfish\modules\jaxb-osgi.jar;C:\Program Files\glassfish-4.1.1\glassfish\modules\endorsed\jaxb-api.jar" -wsdl -r H:\Projects\NetBeansProjects\wsCiscoCallBack\build\generated-sources\jax-ws\resources ws.CiscoCallBack**
H:\Projects\NetBeansProjects\wsCiscoCallBack\nbproject\jaxws-build.xml:26: Error starting wsgen: class com.sun.tools.javac.api.JavacTool
I've read NetBeans forums and they said something like this:
For Netbeans 8.2 and Windows 7, the default ant settings for Netbeans
are incorrect; if you check the error, you will find that wsgen"C....
are not seperated. A space should be between those two i.e. wsgen
"C..... So either fix the ant settings or copy the command and correct
it before running it again.
I understood that i should add space between them. But how can i add this space in NetBeans 8.2? Please anyone can help me. I'm struggling with it almost four hours.
You got to open your operative system prompt and change directory to your JDK/bin folder, unless you added the JDK/bin path to system path.
Then on Netbeans copy all the row with wsgen wrong path.
Back on the prompt and paste the wrong row, add the space between wsgen and "C:... , then go to the end of the code you pasted and press ENTER.
If all is OK wsdl and xsd files will be added at your project inside Netbeans.
I recently created sbt task to do the deployment stuff which include shell script. In the sbt task, I am using sbt-IO to zip the shell script file.
However, it looks like shell script inside zip file doesnt preserve the file permission. I know java.util.zip doesnt preserve permission as well but Gradle did, so what else solutions I have in sbt project if I still want to use sbt-io and I dont want to use command line zip plugin library like sbt-native-package
I created a small Zend Framework application from command prompt using Zend_Tool.
I deployed it in apache server htdocs folder and it is running fine.
Now I need to deploy it to Zend Server. For that i used a command zdpack pack appname.
While trying that i am getting lot of errors like
deployment.xml is missing
I created it in the app root folder.
Then i got
appnaama/data folder is missing error
I created a data folder.
Then
zend-scripts missing
error....
Please help me in deploying an applicaiton created from zf create project projname in Zend server and run it in the browser.
You need to come out of the directory when calling zdpack pack command. If you pack the file inside the project directory you get the "deployment.xml is missing" error.
Pass the following commands at the location where you are creating the
zpk file. For illustration, I will be doing it in the myapp folder of my desktop.
C:\Users\lura\Desktop\myapp> zdpack.exe create demoapp
Move into the directory using cd demoapp and list the directory. Copy your php codes into the data folder. The scripts folder and deployment.xml file can be left as it is. Next run the validate command when inside the directory.
C:\Users\lura\Desktop\myapp\demoapp> zdpack.exe validate --schema="C:\Program Files (x86)\Zend\ZendServer\share\deployment.xsd" deployment.xml
now you can move a folder back with the command cd .. and execute the following.
C:\Users\lura\Desktop\myapp>zdpack pack demoapp
That's it! The zpk file is created! A screenshot of my cmd.
This YouTube tutorial will help, if your still confused. To execute on Linux and for more info read this documentation from zend.
You are using zdpack command wrong!
Step 1: Open shell and ls or cd into the zend workspace.
Step 2: use "zdpack create <ProjectName>" command. It will create deployment.xml, data and script directories. Refresh project explorer you will see changes.
Step 3: Configure deployment.xml if needed.
Step 4: Use "zdpack pack <ProjectName>" command to create zpk file.
That's all.
I think you just pass incorrect path to the app.
Try following this scheme:
zdpack pack <path>/ProjectName
to generate required files.
Step 1: Create skeleton from the zend server zdpack command
#/usr/local/zend/bin/zdpack create <project-name>
It will create project skeleton.
Step 2: Configure deployment.xml if needed.After that check your Deployment.xml is valid.
# /usr/local/zend/bin/zdpack validate --schema="/usr/local/zend/share/deployment.xsd" deployment.xml
Step 3: Now create the zpk file for the aplication
# /usr/local/zend/bin/zdpack pack <project-name>
I am investigating how to use both Glassfish and Ant buildfiles. I've written a build script (for the first time) which will create a WAR file of my basic Hello World app.
I am then trying to deploy this WAR to Glassfish as part of the build script. I found details of the glassfish-deploy task and have managed to get this included in the build script after including the ant-task jar file in the class path.
However, when I run the script I get the message:
[glassfish-deploy] Install Directory of application server not known. Specify either the installDir attribute or the asinstall.dir property
I've tried to find out what is meant by this, but can find no reference to either the installDir attribute or the asinstall.dir property. I have managed to deploy the created WAR file through Glassfish's admin webpage but I cannot seem to get this Ant script to do it successfully.
Any pointers or guidance would be most helpful.
OKay after a lightbulb moment I managed to resolve this by editing the task in my build script so it is now <glassfish-deploy file="${name}.war" installDir="C:\\glassfish3\\glassfish" force="true"/>
As it appears that the ant script does not know where Glassfish is installed. This resolves the issue and the script runs (and workds) However the next stage is to figure out how to do this without having to hardcode the location into into the build script. Especially if I want to write a script that can deploy the WAR file to a remote server.