Red Hat JBoss Fuse 6.2.1: Osgi Missing Requirement: Oracle JDBC Driver - jboss

This is a problem that I am facing with Jboss fuse, where a dependency (Oracle JDBC JAR) is not found as an OSGI bundle.
The source code works fine when run locally, but errors out when deployed on a Karaf container.
A detailed explanation of the issue and associated source code is placed at:
https://developer.jboss.org/message/948643
Any suggestions on this would be welcome.
Thanks for your patience.
Prabal

The Oracle JAR File that you are trying to deploying on the Fuse Server is not a Maven Bundle.
So you'll need to Wrap and install the library using the following command :
install -s wrap:mvn:com.oracle/ojdbc6/<version>
Where the <version> refers to the version number of the jar file. Hope this helps.

Related

Java Project created in Eclipse on Windows.How to run this in Ubuntu-Server?

I wrote some programs for Oracle Service Instances using the SDK in Eclipse.I also included some Referenced Libraries in Eclipse Project.
Now I want to run those programs from that Eclipse Java Project on to differnt OS(Ubuntu-Server).
How can I do that? Help me doing this!
This question seems to be about how to run java code on Ubuntu, and is not specific to any Oracle SDKs.
In general, you should package the application as a jar in Eclipse, then move that jar to the Ubuntu server. Then run that jar from the command line on the Ubuntu server. For more info see this post.

Error installing JBoss BPM Suite

I have no experience with JBoss BPM Suite I'd like your help.
I'm trying to install the JBoss BPM Suite, downloaded jboss-bpmsuite-6.1.0.GA-installer.jar file in the jboss site, to start the installation and performed the command java -jar jboss-bpmsuite-6.1.0.GA- installer.jar.
The program ran and asked to accept LICENSE later I informed the installation path, but it happened the following error:
"The required product.conf file in.:/home/user/ tools is missing or malformed Please supply Either an empty directory or an EAP installation"
I am unable to resolve this issue, someone help me?
thank you
You first have to install EAP server. Install it into your root folder with any name (EAP-version). After installing it then install BPM suite and provide the installation path the same as the EAP server and you are done.
You have to install the EAP server first. Download the desired version, and install EAP.
Then you should define environment variables for $JAVA_HOME and $PATH (if they are not set).
Finally, execute 'java -jar /jboss-bpmsuite-.0.0.GA-installer.jar'
Create a new folder outside SRC where you have saved all the packages related to JBPM and provide the same path as of new folder. It will be resolved.

M2E WTP Copy Provided Jar

I have a custom classloader jar <scope>provided</scope> that must be in tomcat/lib before my webapp is run or else it fails to start. I'm using WTP. Is there some way that I can configure M2E/WTP to automatically copy this custom jar to tomcat/lib during the deploy process?
Edit:
It doesn't have to be using WTP, I could also use, for example, a solution using tomcat6-maven-plugin.
For running an embedded Tomcat instance with the Tomcat Maven plugin, add the JARs required in the Tomcat lib dir as dependencies of the Tomcat plugin itself as shown in this example with the derby and javamail dependencies.
I spent a lot of time researching this problem and here's what I've found:
The tomcat6-maven-plugin does not properly emulate the tomcat boot order, as seen in this jira issue as well as their tomcat6-maven-plugin source.
However, after more research I discovered another maven plugin that I didn't know existed: cargo. Thanks to their excellent documentation I was able to get my project running with the custom (and picky) class loader jar.

Dynamic Code Evolution Vm - For Ejb Jar Deployment

I'm working on EJB 3.0 with Jboss 6.1 at the moment. All the time after I change someshing in EJB modules (server side) I have to export JAR file to /jboss-6.1.0.Final/server/default/deploy
it's very uncomortable. I know that DCEVM can make that automatically. I've just install Dynamic Code Evolution VM but now I dont undestand what should I do now? Do I need any DCEVM plugin for Eclipse?
this is my Screen, i use Ubuntu 12.04:
http://i.stack.imgur.com/ixcku.png
Here you can find instructions:
http://blog.rafaelsanches.com/2012/02/02/spring-mvc-velocity-dcevm/

Servicemix 4.4 & hot deploy

I'm newbie with servicemix 4.x. I've tried servicemix 4.4 and servicemix-fuse 4.4 with both of them I have the same problem. I've tried to deploy samples to the deploy dir and nothing happens. Servicemix runs, I check the log (tail -f servicemix.log) and there's no message about deploying. I've tried to find some docs about hot deploy under 4.4 but I couldn't find anything.
As I can remember hotdeploy worked out of the box with servicemix 3.x, I just copied zips to hotdeploy dir.
Thanks,
Hubi
I believe ServiceMix 4.4 will hot deploy (<servicemix home>/deploy) files of two types: OSGi bundles and JBI service assemblies. That is, jar files (and exploded jar files) that contain the extra OSGi or JBI meta-information, OSGI blueprint xml files, and Spring xml files, which it assumes are OSGi. ServiceMix 4.4 will not deploy vanilla jar files as its not clear how you would want it to load them - would you want it to wrap it as an OSGi bundle, guessing at imports and exports...
Its not clear from your question what samples you are having problems with. A quick look at most of the ServiceMix samples seems that most of them are OSGi bundles (Maven packaging == bundle), which all should hot deploy when copied to the deploy directory.
If you know your jar files are, say OSGi bundles, then I'd check the <servicemix home>/etc/org.apache.felix.fileinstall-deploy.cfg file's felix.fileinstall.dir property to ensure that its configured to pick up from the directory you think. I'd also check that the File Installer and Deployer services are installed in running. Those typically are within the first 30 services installed, and don't show up on an osgi:list, so you can try
karaf#root> osgi:ls | grep Deployer
If you do not see them, check for modifications to the etc/startup.properties file - someone may have removed those services...
Hope that helps,
Scott
FuseSource
I'm using apache-servicemix-4.4.1-fuse-01-11 and hotdeploy works for me for JBI as well as OSGI based packages (zip for JBI and jar for OSGI).
Try to find your installed packages by running on the karaf console:
osgi:list | grep 'YourBundleName'
if its there all should be ok, you can install and uninstall bundles using other two commands:
osgi:install yourbundlename
osgi:uninstall yourbundlename
Once you have your bundle installed you can see the log output by issuing the following command (works only on Fuse ESB from what I know):
log:tail