I am using WSO2 Integrator 6.2.0 with Maven car deploy plugin version - 1.1.1 and Maven car plugin version 2.1.1, and I am trying to redeploy Integrator CAR artifact using maven command -
1) To undeploy: mvn clean deploy -Doperation=undeploy -Dmaven.deploy.skip=true -Dmaven.car.deploy.skip=false
However, upon executing this command, I get the following error - Deploying SampleCompositeApplication.car to https://localhost:9444/carbon/ Failed.: Transport error: 302 Error: Found -> [Help 1]
[ERROR]
Any insights into this will be appreciated.
The default port for WSO2 EI is 9443. Please change the serverUrl in the pom file and try it again.
Related
We are trying to create a WSO2 ESB cartridge to run on Openshift but haven't had much success yet. Is it even possible to run WSO2 ESB on Openshift or do we have to rely on Fuse ESB? Happy to run WSO2 either through cartridge option or just an EAR file if that's possible.
I was trying to install WSO2 ESB in an Openshift DIY cartridge. But I'm getting an port binding issue. The nasty thing is the message does not say which port it is unable to be bind into.
Please let me know if you passed this stage while trying to deploy WSO2 ESB in Openshift.
[esb3-yasas.rhcloud.com bin]> sh wso2server.sh
Starting WSO2 Carbon (in unsupported JDK) [ERROR] CARBON is
supported only on JDK 1.6 and 1.7 JAVA_HOME environment variable is
set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/java/jdk1.8.0_45/
CARBON_HOME environment variable is set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/esb Java
HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0 Error: Exception thrown
by the agent : java.rmi.server.ExportException: Port already in use:
0; nested exception is:
java.net.BindException: Permission denied
Snapshot
Thanks !
We are having problems compiling kernel wso2 esb and wso2
Jdk -> jdk1.7.0_60
Error wso2 esb 4.8.1
[ERROR] Failed to execute goal on project org.wso2.esb.integration.core: Could not resolve dependencies for project org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.0: Could not find artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.wso2.esb.integration.core: Could not resolve dependencies for project org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.0: Could not find artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
Error wso2carbon-kernel 4.2.0
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project wss4j: Compilation failure: Compilation failure:
[ERROR] /sources/wso2/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24] EncryptionKey is internal proprietary API and may be removed in a future release
[ERROR]
A greeting and thanks.
As Asela mentioned kernal switch to java 1.6 and for the ESB failure, you can build [1] to get rid of that issue.
[1]-http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0002/dependencies/wss4j/1.5.11-wso2v6/
You can not use JDK 1.6 to build the WSO2 platform. Please check WSO2 docs from here
If you want to build the product from the source distribution, you
must use JDK 1.6 instead of JDK 1.7.
But it says that you can run the product on JDK 1.7
Oracle and IBM JRE 1.7 are also supported when running (not building)
WSO2 products.
I created test.car in WSO2 Developer Studio 3.5.0. CAR contains your default example SimpleStockQuoteSample. I can deploy this CAR into WS02 ESB Server 4.8.1. successfully. CAR is listed in CarbonAplication and works correctly.
When I try to deploy same CAR into SW02 Carbon Server 4.2.0, it fails on
No artifacts found to be deployed in this server. Ignoring Carbon Application : test.car
Can you help me?
This is because the Server Role for the artifacts inside your CAR is "EnterpriseServiceBus" : edit the pom.xml of your Carbon app in Dev Studio and look at Dependencies -> artifact / Server Role
Actually you need to do 2 steps:
Modify the wso2esb carbon.xml file in config folder.
location: {base}wso2esb-4.9.0\repository\conf -- carbon.xml
Add the ApplicationServer as role in the tag ServerRoles.
<Role>ApplicationServer</Role>
Modify in your eclipse develop studio the Role of your application to ApplicationServer, this is into Dependencies->artifact and modify the Role.
Today when I tried to run the sample application hello-java which from git#github.com:SpringSource/cloudfoundry-samples.git, I got the following errors when start the application,
Starting hello-java-from-linux-1... FAILED
CFoundry::AppStagingError: 310: Staging failed: 'Staging task failed:
Staging plugin failed: /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.64/lib/vcap/staging/plugin/java_web/plugin.rb:28:in block in stage_application': Web application staging failed: web.xml not found (RuntimeError)
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.64/lib/vcap/staging/plugin/java_web/plugin.rb:22:inchdir'
from /var/vcap/packages/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.64/lib/vcap/staging/plugin/java_web/plugin.rb:22:in stage_application'
from /var/vcap/packages/stager/bin/run_plugin:19:in'
I've checked the target war "hello-java-1.0.war" built by maven, the web.xml has been already packaged under WEB-INF.
Here is the pom.xml of the sample application,
http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
org.cloudfoundry.samples
hello-java
1.0
war
javax.servlet
servlet-api
2.5
provided
And here are the vmc version and maven version info,
- vmc 0.4.7,
- Apache Maven 3.0.4
Can anyone help on how to solve the issue? Thanks a lot!
BTW, I've searched the cloudfoundry support site, and found some tips to check log files, however seems that I cannot get log files to check the real error, I ran into the following issues when tried to get the log files.
[niy#niy-fedora hello-java]$ vmc files hello-java-from-linux-1 logs
Getting file contents... FAILED
CFoundry::AppStopped: 305: Operation not permitted on a stopped app
For more information, see ~/.vmc/crash
When deploying a java or spring WAR with vmc it's important to be in the same directory as the WAR file at the time you execute vmc.
I downloaded binary version for WSO2 ESB 4.0.3
Now when i run wso2server.bat , it simply executes for 2-3 seconds and quits with followin output:
>wso2server.bat
JAVA_HOME environment variable is set to D:\Java\jdk1.6.0_24
CARBON_HOME environment variable is set to D:\iprint\WSO2ES~1.3\bin\..
[2012-11-08 10:02:12,250] INFO - Main Initializing system...
[2012-11-08 10:02:12,375] INFO - HttpTransport Created Connector [HTTP_11_NIO:/
/*:9763]
[2012-11-08 10:02:12,390] INFO - HttpTransport Created Connector [HTTPS_11_NIO:
//*:9443]
[2012-11-08 10:02:12,453] INFO - TomcatCarbonWebappDeployer Deployed Carbon web
app: StandardEngine[Tomcat].StandardHost[defaulthost].StandardContext[/]
[2012-11-08 10:02:12,593] INFO - TransactionFactory Starting Atomikos Transacti
on Manager 3.7.0
>
I can not find anything in the logs as well.
The documentation also seems to be poor for 4.0.3 on wso2.org site as there is no step on how to configure DB for the ESB.
Thanks
deepak
WSO2 ESB documentation clearly specifies these information. As you are working with 4.0.3 version, this is the doc location. http://docs.wso2.org/wiki/display/ESB403
And please follow up; http://docs.wso2.org/wiki/display/ESB403/Installing+ESB+on+Windows+from+Binary+Distribution to run the ESB on windows.
Adding a db:
http://docs.wso2.org/wiki/display/ESB403/Adding+a+Database
FYI: Latest WSO2 ESB can be downloaded from http://wso2.com/products/enterprise-service-bus/
ESB 4.5.1 doc: http://docs.wso2.org/wiki/display/ESB451/Enterprise+Service+Bus+Documentation
Thanks
Thilini