Karaf 4.x and declarative services

2014-02-28 Thread asookazian2
Just read this post by James Strachan: Please verify if DS will replace blueprint in Karafe 4.x thx. http://java.dzone.com/articles/fabric8-jboss-fuse-and-apache -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-x-and-declarative-services-tp4032000.html Sent from

installing a specific feature version in karaf 3.0.0

2014-03-03 Thread asookazian2
I'm working on a JPA/Hibernate sample project and it's calling for the following bundle installs: install -s mvn:org.hibernate.common/hibernate-commons-annotations/4.0.4.Final install -s mvn:org.hibernate/hibernate-core/4.2.7.Final install -s mvn:org.hibernate/hibernate-entitymanager/4.2.7.Final

Re: installing a specific feature version in karaf 3.0.0

2014-03-03 Thread asookazian2
thanks for the quick responses. -- View this message in context: http://karaf.922171.n3.nabble.com/installing-a-specific-feature-version-in-karaf-3-0-0-tp4032022p4032027.html Sent from the Karaf - User mailing list archive at Nabble.com.

performance metrics blueprint vs. declarative services in karaf 3.0.x

2014-03-03 Thread asookazian2
Any info on perf metrics on DS vs. BP? thx. -- View this message in context: http://karaf.922171.n3.nabble.com/performance-metrics-blueprint-vs-declarative-services-in-karaf-3-0-x-tp4032028.html Sent from the Karaf - User mailing list archive at Nabble.com.

unable to getRealPath for servlet context

2014-03-05 Thread asookazian2
I found the following Jetty bug report: http://jira.codehaus.org/browse/JETTY-675 http://jira.codehaus.org/browse/JETTY-675 User states the following: ServletContext.getRealPath() returns null instead of returning the root dir of the webapp I am able to reproduce this behavior in my WAR

seeing the latest features in Karaf

2014-03-05 Thread asookazian2
I know about feature:list cmd. but I'd like to see the features I have installed after extracting karaf out-of-the-box. Maybe at least showing the date that each feature was installed and sort by date would be nice. -- View this message in context:

Re: seeing the latest features in Karaf

2014-03-05 Thread asookazian2
please do so thx -- View this message in context: http://karaf.922171.n3.nabble.com/seeing-the-latest-features-in-Karaf-tp4032110p4032113.html Sent from the Karaf - User mailing list archive at Nabble.com.

RE: unable to getRealPath for servlet context

2014-03-05 Thread asookazian2
Thx for quick response. What is the equivalent to FileLocator in karaf? -- View this message in context: http://karaf.922171.n3.nabble.com/unable-to-getRealPath-for-servlet-context-tp4032109p4032114.html Sent from the Karaf - User mailing list archive at Nabble.com.

RE: unable to getRealPath for servlet context

2014-03-05 Thread asookazian2
So I tried the recommended approach in this thread and getting the following now: karaf@root() start 265 karaf@root() java.lang.NullPointerException at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:313) at

RE: unable to getRealPath for servlet context

2014-03-05 Thread asookazian2
Sorry i replied before reading your reply a few mins ago. I didn't change the karaf.framework to equinox but i basically added the following dependency to my pom: dependency groupIdorg.mod4j.org.eclipse.equinox/groupId artifactIdcommon/artifactId

RE: unable to getRealPath for servlet context

2014-03-05 Thread asookazian2
OK so I made the change in config.properties to point as follows: karaf.framework=equinox saved, stopped, started karaf in debug mode i've attached a debugger session in Eclipse and see now: url = bundleentry://243.fwk42630947/ so that's not null any more. now i get the following warning in

uninstalling multiple bundles in one command

2014-03-10 Thread asookazian2
I have the following features.xml that I feature:repo-add and feature:install. features xmlns=http://karaf.apache.org/xmlns/features/v1.0.0; feature name=fancyfoods version=1.0.0 bundlemvn:fancyfoods/fancyfoods.api/1.0.0/bundle bundlemvn:fancyfoods/fancyfoods.web/1.0.0/bundle

removing features

2014-03-10 Thread asookazian2
Say i have feature:list with no installed bundles for cxf. I want to remove these features b/c I want to install a different version of cxf. How do I achieve this removal? thx. -- View this message in context: http://karaf.922171.n3.nabble.com/removing-features-tp4032164.html Sent from the

mass uninstall features from same repo

2014-03-10 Thread asookazian2
I made a mistake and installed features for cxf from mvn:org.apache.cxf.karaf/apache-cxf/LATEST/xml/features. I want to install features for cxf from mvn:org.apache.cxf.karaf/apache-cxf/2.7.10/xml/features. How do I mass uninstall all the features for

not seeing the blueprint.xml file in my WAR bundle

2014-03-11 Thread asookazian2
Try to create a WAR bundle with MANIFEST.MF and blueprint.xml. I have the following in my MANIFEST.MF: Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml The blueprint.xml file exists in PROJECT/src/main/resources/OSGI-INF/blueprint/blueprint.xml I am including the MANIFEST.MF as follows in

karaf PermGen space problem

2014-03-11 Thread asookazian2
karaf@root() halt Error executing command: PermGen space karaf 3.0.0 please advise thx. -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-PermGen-space-problem-tp4032187.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf PermGen space problem

2014-03-11 Thread asookazian2
one of our reasons for moving to OSGi is to be able to take advantage of updating individual modules without having to restart the container. If this issue exists, can we not be safe in planning to do updates like that? -- View this message in context:

rules when writing manifest.mf

2014-03-13 Thread asookazian2
when you import packages like the following: javax.xml.transform does it import sub-packages as well (e.g. javax.xml.transform.stream) or do you explicitly need to import that separately? does the order of the jar's listed in the bundle-classpath matter? e.g. if I moved a JAR further up in the

Re: rules when writing manifest.mf

2014-03-13 Thread asookazian2
http://www.aqute.biz/Blog/2007-02-19 http://www.aqute.biz/Blog/2007-02-19 When the OSGi framework loads a class from a bundle, it will consult the Bundle-ClassPath. It will look in the places indicated on the Bundle-ClassPath * in the given order. * -- View this message in context:

potential classpath or classloading issue with OSGi-ified WAR mega-bundle

2014-03-13 Thread asookazian2
I am getting the following exception while executing a use case of my OSGi-ified mega-bundle WAR application in karaf 3.0.0. javax.xml.transform.TransformerException: Can't transform to a Result of type javax.xml.transform.stream.StreamResult at

Re: rules when writing manifest.mf

2014-03-13 Thread asookazian2
are the imports in the Import-Package section processed first before the JARs in the Bundle-Classpath section? -- View this message in context: http://karaf.922171.n3.nabble.com/rules-when-writing-manifest-mf-tp4032239p4032246.html Sent from the Karaf - User mailing list archive at

Re: potential classpath or classloading issue with OSGi-ified WAR mega-bundle

2014-03-13 Thread asookazian2
I apparently fixed this problem by adding the following lines in the Import-Package of the MANIFEST.MF (by hand, I'm not using maven-bundle-plugin and javax.xml.transform was already existing so I only added the last 2): ,javax.xml.transform ,javax.xml.transform.dom ,javax.xml.transform.stream

Re: potential classpath or classloading issue with OSGi-ified WAR mega-bundle

2014-03-13 Thread asookazian2
There was no ClassNotFoundException here: javax.xml.transform.TransformerException: Can't transform to a Result of type javax.xml.transform.stream.StreamResult at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:302) at

no source code in project using mvn-bundle-plugin

2014-03-13 Thread asookazian2
I have a project which builds a mega-bundle WAR. This project references another maven project with src code. The WAR project does not have any src code. Is it possible to use the maven-bundle-plugin in this situation to generate the MANIFEST.MF or do the mvn projects need to be re-architected

Re: potential classpath or classloading issue with OSGi-ified WAR mega-bundle

2014-03-13 Thread asookazian2
I'm not 100% sure but I don't recall seeing any ClassNotFoundException anywhere in relation to this particular problem. -- View this message in context: http://karaf.922171.n3.nabble.com/potential-classpath-or-classloading-issue-with-OSGi-ified-WAR-mega-bundle-tp4032245p4032254.html Sent from

using version=0 in Import-Package

2014-03-19 Thread asookazian2
what does version=0 mean/do? Import-Packagecom.mysql.jdbc;resolution:=optional;version=0/Import-Package Also, I have optional JARs b/c we're not sure which RDBMS vendor the client will be using. But I want maven-bundle-plugin to resolve all the other dependencies in Import-Package for me. How

disturbing behavior while debugging bundle WAR in karaf 3.0.0

2014-03-19 Thread asookazian2
I was using javax.naming.directory.SearchControls and had failed to import javax.naming.directory in my manifest.mf, but had imported other javax.naming packages (javax.naming ,javax.naming.event ,javax.naming.ldap ,javax.naming.spi), and no error was given at start or run time. Adding the import

best practice using maven-bundle-plugin for Import-Package

2014-03-19 Thread asookazian2
What is best practice for using maven-bundle-plugin for Import-Package? do we need to leave it out in the instructions or use Import-Package*/Import-Package? also, i noticed it is not listing javax.naming.directory package if I leave it out. My app does not behave correctly if it is not in the

getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
I have a WAR which deploys fine and not getting the exception when using AD in GF v3. I have a mega-bundle WAR (based on same WAR above) in karaf 3.0.0 which is giving following exception when I exec the same use case in front-end: javax.naming.PartialResultException [Root exception is

Re: getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
javax.naming.PartialResultException [Root exception is javax.naming.NotContextException: Cannot create context for: ldap://ForestDnsZones.internal.nextgatesolutions.com/DC=ForestDnsZones,DC=internal,DC=nextgatesolutions,DC=com; remaining name 'DC=internal,DC=nextgatesolutions,DC=com'] at

Re: getting PartialResultException using AD in karaf 3.0.0

2014-03-19 Thread asookazian2
this java doc helped: http://docs.oracle.com/javase/6/docs/api/javax/naming/NamingEnumeration.html using hasMoreElements() and nextElement() which doesn't throw that exception and I see my users during import now. I'm not sure why I have this problem in Karaf but not Glassfish -- View

Blueprint XML bean ID uniqueness rules

2014-03-21 Thread asookazian2
If I have a blueprint XML file for a datasource with a bean ID of X, does that have to be unique within the container? Or just unique within a blueprint XML? -- View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-XML-bean-ID-uniqueness-rules-tp4032376.html Sent from the

karaf 3.0.0 jdbc:create does not support MSSQL server?

2014-03-21 Thread asookazian2
when will MSSQL server be supported for jdbc:create? major vendor! -- View this message in context: http://karaf.922171.n3.nabble.com/karaf-3-0-0-jdbc-create-does-not-support-MSSQL-server-tp4032378.html Sent from the Karaf - User mailing list archive at Nabble.com.

Spec version implemented by Karaf 3.0.0

2014-03-21 Thread asookazian2
Which version of the OSGi spec is implemented by karaf 3.0.0? -- View this message in context: http://karaf.922171.n3.nabble.com/Spec-version-implemented-by-Karaf-3-0-0-tp4032380.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: cannot resolve to absolute file path in karaf 3.0.0

2014-03-26 Thread asookazian2
must the WAR be expanded or not to solve this problem? If yes, how? If no, what is the solution? thx. -- View this message in context: http://karaf.922171.n3.nabble.com/cannot-resolve-to-absolute-file-path-in-karaf-3-0-0-tp4032407p4032419.html Sent from the Karaf - User mailing list archive

bundle:refresh

2014-03-27 Thread asookazian2
what is the purpose of the refresh command in Karaf 3.0.x? What effect does it have on the bundle lifecycle? I have a WAB (mega bundle WAR) that I just re-built using mvn. I run 'update xxx'. Do I need to run 'refresh xxx' as well? Typically I update WAB bundle and halt Karaf and restart

refresh causes ClassCastException in 3.0.0

2014-03-27 Thread asookazian2
Bundle is currently active. we exec 'refresh xxx' for that bundle and start that bundle. how to handle this as I've read the same class has been loaded by 2 different classloaders and thus the exception... Caused by: java.lang.ClassCastException:

Which OSGi framework is Karaf using?

2014-03-27 Thread asookazian2
exec 'shell:info' to find out e.g. Karaf Karaf version 3.0.0 OSGi Framework org.apache.felix.framework - 4.2.1 -- View this message in context: http://karaf.922171.n3.nabble.com/Which-OSGi-framework-is-Karaf-using-tp4032438.html Sent from the Karaf - User

Installing EAR in karaf 3.0.0 getting exception

2014-04-01 Thread asookazian2
Hi I have an EAR with a JAR exposing SOAP web service and several other supporting JARs. I tried to install on karaf 3.0.0 and getting this exception please help thx. I converted the EJB to a POJO but keeping EAR for now. Is there a better way? 2014-04-01 15:43:19,241 | ERROR | Local user

Re: Installing EAR in karaf 3.0.0 getting exception

2014-04-02 Thread asookazian2
After some digging/experimentation, I ended up re-extracting fresh karaf 3.0.0. Deploying a known good mega-bundle WAR. Extracting and compressing using Mac Finder utility to .zip then convert to .war (via Get Info) and the install fails with same exception. So it's not the contents necessarily

Re: Unable to start blueprint container for bundle null

2014-04-02 Thread asookazian2
?xml version=1.0 encoding=UTF-8? blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:jaxws=http://cxf.apache.org/blueprint/jaxws; xsi:schemaLocation=http://www.osgi.org/xmlns/blueprint/v1.0.0

Re: Unable to start blueprint container for bundle null

2014-04-02 Thread asookazian2
seems that the root cause for this was that the default manifest.mf was being packaged with the EAR... -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-start-blueprint-container-for-bundle-null-tp4032543p4032545.html Sent from the Karaf - User mailing list archive

Karaf 3.x examples?

2014-04-15 Thread asookazian2
are there any karaf java example project/code including in the distro? I remember Spring and Seam frmwks had this... -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-3-x-examples-tp4032778.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: cannot resolve to absolute file path in karaf 3.0.0

2014-04-15 Thread asookazian2
We have the following config in our web.xml: servlet servlet-nameSpring MVC Dispatcher Servlet/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/servlet-class init-param param-namecontextConfigLocation/param-name

Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
Code: import org.springframework.context.support.ClassPathXmlApplicationContext; ... ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(workflow-ws-context.xml); also tried: ClassPathXmlApplicationContext context = new

error ungetting service in karaf 3.0.0

2014-04-16 Thread asookazian2
This is the first time I'm seeing this exception when i uninstall bundle or halt system. Please provide more info as to why this may be happening and how to fix. I modified the WAB code to use slf4j instead of log4j and util logging. thx. admin@NextGate uninstall 245 ERROR: Bundle

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples/war-spring-osgi I'm trying to build and test this sample project but it's failing: [INFO] Changes detected - recompiling the module! [INFO] Compiling 1 source file to

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
Same error on multiple builds: org.ops4j.pax.web/samples/helloworld-hs org.ops4j.pax.web/samples/war-spring -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032808.html Sent from the Karaf - User

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
Fails with 3.0.5 and 3.2.1 as well. Looks like mvn is using 1.6 JDK to compile. Not having any problem with my work project builds however. NextGates-MacBook-Pro:helloworld-hs arbisookazian$ mvn -version Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
ok setting JAVA_HOME to installation path for JDK 7 fixed that problem. now i successfully did 'mvn clean install' for the spring osgi pom and getting following on startup in karaf 3.0.0: admin@NextGate install

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
manifest.mf from WAR: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Bundle Plugin Built-By: arbisookazian Build-Jdk: 1.7.0_51 Bnd-LastModified: 1397686489449 Bundle-Classpath: WEB-INF/classes Bundle-Description: Pax Web Samples Bundle-DocURL:

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
there is no WEB-INF/lib with these spring dependencies in the WAR/WAB. So which other bundles/projects are required for installation in karaf to test this spring osgi karaf web app??? -- View this message in context:

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
war-spring/pom.xml: Bundle-Classpath WEB-INF/classes, WEB-INF/lib/aopalliance-1.0.jar, WEB-INF/lib/commons-logging-1.1.1.jar, WEB-INF/lib/spring-aop-3.1.0.RELEASE.jar,

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
Made the bundle-classpath match for both but there is no WEB-INF/lib directory being created by mvn during mvn install... -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032817.html Sent from the

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
Ok the problem was that some of the dependencies in the osgi spring pom were defined as provided, etc. so none of the libs were making it into the web-inf/lib dir, now they're there. I am able to install and activate the war-spring.war (OSGi spring version). I am able to navigate to

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-16 Thread asookazian2
just realized those code samples from org.ops4j.pax.web don't use this type of code: ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(WEB-INF/classes/workflow-ws-context.xml); and it's not able to resolve that reference to that resource. how to handle? -- View this

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-21 Thread asookazian2
I've tried deploying as an exploded WAR into the karaf deploy directory but that doesn't work either... -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032887.html Sent from the Karaf - User

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-21 Thread asookazian2
I tried absolute file path and file name and that doesn't work either. Please advise how to resolve this, taking too long -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-find-resource-using-Spring-ClassPathXmlApplicationContext-tp4032805p4032889.html Sent from

Re: Unable to find resource using Spring ClassPathXmlApplicationContext

2014-04-21 Thread asookazian2
This seems to work (this is a public static synchronized method in class MyClass): ClassLoader cl = Thread.currentThread().getContextClassLoader(); //Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());

JDBC connection pooling best practice

2014-04-21 Thread asookazian2
What is the official Karaf recommendation for connection pooling: C3PO, spring-jdbc, DBCP? We are supporting multiple db's like oracle, mysql and sql server. thx. -- View this message in context: http://karaf.922171.n3.nabble.com/JDBC-connection-pooling-best-practice-tp4032894.html Sent from

Re: JDBC connection pooling best practice

2014-04-21 Thread asookazian2
I any real world scenario you will need pooling for the DataSource. To achieve this you have two good options: 1. Use a pooling datasource from the vendor: DB Class Derby org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource MySQL

Spring related exception on update only

2014-04-24 Thread asookazian2
I'm getting a Spring related exception (consistently) when I update my WAB bundle but it doesn't reproduce afterwards when I halt and start karaf 3.0.0. Has anybody seen this and why does it happen? -- View this message in context:

Re: using ant target to run complex db setup functionality

2014-04-25 Thread asookazian2
btw, in the bundle-classpath in the manifest.mf for the WAB, the service JAR is in the WEB-INF/lib dir. This is the JAR that has the service and DAO layer code that my ant JAR needs to use. -- View this message in context:

Re: using ant target to run complex db setup functionality

2014-04-25 Thread asookazian2
since this is db setup, we just discussed doing this outside of karaf as the user may not have setup karaf yet. so i will look into a stand-alone spring app now. -- View this message in context:

Re: Spring related exception on update only

2014-04-25 Thread asookazian2
admin@NextGate list | grep -i spring 149 | Active | 50 | 3.14.0 | Apache XBean :: Spring After update of my WAB, I did: refresh -f 149 saw some activity in the karaf.log I refreshed my web page for the WAB and getting 404 (unless I halt/start karaf, then it works). -- View this

datasource jndi lookup problem in WAB

2014-04-25 Thread asookazian2
I have the following datasource.xml that is referenced by another xml file during Spring bootstrap: beans xmlns=http://www.springframework.org/schema/beans; xmlns:context=http://www.springframework.org/schema/context; xmlns:tx=http://www.springframework.org/schema/tx;

Does not exist in file system

2014-04-25 Thread asookazian2
We have the following Spring bean config: bean id=sqlSessionFactory class=org.mybatis.spring.SqlSessionFactoryBean property name=dataSource ref=dataSource / property name=mapperLocations list

Re: Does not exist in file system

2014-04-25 Thread asookazian2
bundle-classpath in WAB manifest.mf looks correct regarding foo.jar and bar.jar: Bundle-ClassPath., WEB-INF/classes ,WEB-INF/lib/foo.jar ,WEB-INF/lib/bar.jar /Bundle-ClassPath -- View this message in context:

Re: datasource jndi lookup problem in WAB

2014-04-25 Thread asookazian2
Thx but I ended up using this instead in Spring context xml (it works in another app): bean id=propertyConfigurer class=org.springframework.beans.factory.config.PropertyPlaceholderConfigurer property name=locations list

Re: classpath resources in generated bundle

2014-04-25 Thread asookazian2
I just tried the following: Export-Package WEB-INF.lib /Export-Package and it does not show up in the maven-bundle-plugin generated MANIFEST.MF... -- View this message in context: http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-tp3961913p4032977.html Sent

Re: classpath resources in generated bundle

2014-04-25 Thread asookazian2
I tried the following: Import-Package com.nextgate.mm.mappers ,org.activiti.db.mapping.entity /Import-Package Export-Packagecom.nextgate.mm.mappers.* ,org.activiti.db.mapping.entity.* /Export-Package And maven-bundle-plugin is not adding those in the manifest.mf. Same

Re: classpath resources in generated bundle

2014-04-25 Thread asookazian2
Those packages exists in JARs in WEB-INF/lib dir in the WAB. -- View this message in context: http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-tp3961913p4032979.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: classpath resources in generated bundle

2014-04-25 Thread asookazian2
Well wierd thing is that I could not see those packages in two text editors and exploding the WAR. But apparently it was there otherwise I would not see this exception in karaf after update: 2014-04-25 15:27:29,217 | ERROR | Local user karaf | ShellUtil | 48 -

Re: Does not exist in file system

2014-04-25 Thread asookazian2
used tip from this thread: http://fusesource.com/forums/message.jspa?messageID=15551 http://fusesource.com/forums/message.jspa?messageID=15551 in order for the export-package to show up in the manifest.mf, I had to use: Export-Package '=WEB-INF.lib' /Export-Package But still getting

Re: Does not exist in file system

2014-04-28 Thread asookazian2
bean id=sqlSessionFactory class=org.mybatis.spring.SqlSessionFactoryBean property name=dataSource ref=dataSource / property name=mapperLocations list valueclasspath*:/WEB-INF/lib/com/nextgate/mm/mappers/*.xml/value

Re: Does not exist in file system

2014-04-28 Thread asookazian2
adding reference to related thread: http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-td3961913.html#a4032977 http://karaf.922171.n3.nabble.com/classpath-resources-in-generated-bundle-td3961913.html#a4032977 -- View this message in context:

Re: Does not exist in file system

2014-04-29 Thread asookazian2
I have tried to simplify the trouble-shooting of this problem by cloning the Eclipse project and breaking down to bare bones classes, xml, etc. Now the problem I'm having is that the Spring beans config xml does not seem to be being found and/or parsed b/c I have an invalid bean config in there

Using Spring WebApplicationInitializer in karaf

2014-04-29 Thread asookazian2
I am trying the following code (replaces web.xml) in embedded Jetty 9.0.6 and onStartup method is being invoked and the Spring context xml is being loaded/parsed. When I deploy in karaf 3.0.0 onStartup is not invoked. Any idea why? There are no exceptions in the karaf log. public class

Re: Does not exist in file system

2014-04-30 Thread asookazian2
As a workaround solution to this classpath resolution issue, I copied the xml files and the corresponding packages (folder structures) into src/main/resources and referenced them as follows: bean id=sqlSessionFactory class=org.mybatis.spring.SqlSessionFactoryBean

Getting ClassNotFoundException in runtime only

2014-05-02 Thread asookazian2
Hi there is the following exception I'm seeing during runtime execution of web GUI for our application. I have added javax.xml.ws.handler to the export-package in the manifest.mf. When I startup karaf I don't see any exceptions. Why do we get this runtime exception but not during Karaf startup?

copying karaf high level folder for testing purposes

2014-05-12 Thread asookazian2
I am copying an existing working karaf extraction with features/bundles installed, etc. I'm doing this to jump start testing so I don't have to uninstall/install all features/bundles all over again every test cycle. It seems that there are some hard-codings in some config files in karaf that

org.osgi.framework.BundleException: Unable to acquire global lock for resolve

2014-05-15 Thread asookazian2
Seen the following error on Karaf 3.0.1 startup a couple times in the past 2 days. Is this related to this thread: http://apache-felix.18485.x6.nabble.com/Discuss-About-quot-Unable-to-acquire-global-lock-for-resolve-quot-td5006519.html ? admin@NextGate ERROR: Bundle

trying to use YourKit with Karaf 3.0.1

2014-05-15 Thread asookazian2
Mac OS X Mavericks, Karaf 3.0.1, JDK 7 I'm following the YourKit setup instructions here: http://karaf.apache.org/manual/latest-2.3.x/developers-guide/debugging.html http://karaf.apache.org/manual/latest-2.3.x/developers-guide/debugging.html My coworker got it working quickly on Windows. I

Profiling apps/bundles on karaf 3.0.1

2014-05-15 Thread asookazian2
We would like to profile some apps. http://blog.knowhowlab.org/2010/03/osgi-tips-osgi-profiling-yourkit.html http://blog.knowhowlab.org/2010/03/osgi-tips-osgi-profiling-yourkit.html which profiling tool (e.g. VisualVM, YourKit, etc) is recommended with karaf 3.x? thx. -- View this message

reassigning bundle id to a bundle

2014-05-15 Thread asookazian2
If there is a bundle id 201 available (201 was uninstalled) and I have a bundle with bundle id 300, can I reassign the bundle id to 201 for bundle id 300? -- View this message in context: http://karaf.922171.n3.nabble.com/reassigning-bundle-id-to-a-bundle-tp4033058.html Sent from the Karaf -

uninstall bundle id range is not working consistently in 3.0.1

2014-05-16 Thread asookazian2
Is anybody else seeing that if you exec 'uninstall 32-40' for example not all the corresponding bundleid folders in the data/cache dir are being deleted? seems like a bug... 3.0.1 -- View this message in context:

start levels for datasource files in deploy dir

2014-05-16 Thread asookazian2
we copy datasource-*.xml files into the karaf/deploy dir. How do we enable/set start levels for these bundles so that they are started prior to the bundles that use/depend on them? -- View this message in context:

Re: start levels for datasource files in deploy dir

2014-05-16 Thread asookazian2
we are making JNDI lookups to get the data source, so how do we reference as a service? -- View this message in context: http://karaf.922171.n3.nabble.com/start-levels-for-datasource-files-in-deploy-dir-tp4033155p4033162.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: start levels for datasource files in deploy dir

2014-05-16 Thread asookazian2
Also, at least in some of our cases, we are doing the JNDI lookup from Spring context xml. thx. -- View this message in context: http://karaf.922171.n3.nabble.com/start-levels-for-datasource-files-in-deploy-dir-tp4033155p4033163.html Sent from the Karaf - User mailing list archive at

Cellar for karaf 3.0.1 active/active and failover clustering

2014-05-20 Thread asookazian2
http://karaf.apache.org/index/subprojects/cellar/cellar-download.html http://karaf.apache.org/index/subprojects/cellar/cellar-download.html which version of cellar is compatible/recommended for clustering with karaf 3.0.x? where is the link to the user guide??? latest cellar seems to be

Re: Apache Cellar

2014-05-20 Thread asookazian2
so is there currently a GA version of Cellar available for Karaf 3.0.1?? -- View this message in context: http://karaf.922171.n3.nabble.com/Apache-Cellar-tp4028400p4033205.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-05-20 Thread asookazian2
This link: http://karaf.apache.org/sub-projects/cellar/download.html http://karaf.apache.org/sub-projects/cellar/download.html seems to be broken. It was found here: http://karaf.apache.org/manual/cellar/latest/user-guide/installation.html

Re: Cellar for karaf 3.0.1 active/active and failover clustering

2014-05-20 Thread asookazian2
Would the following git clone cmd get the 3.0.0-SNAPSHOT (head)? git clone https://git-wip-us.apache.org/repos/asf/karaf-cellar.git cave -- View this message in context: http://karaf.922171.n3.nabble.com/Cellar-for-karaf-3-0-1-active-active-and-failover-clustering-tp4033204p4033209.html Sent

CXF regenerating a WSDL

2014-05-27 Thread asookazian2
I have an existing WAR mega-bundle (WAB). I run the following cmds: update 123 refresh 123 I refresh the WSDL page in my browser but I notice that the change I'm expecting is not there. I halt then start karaf, then refresh the WSDL and the changes have been affected. When does CXF/karaf

Re: CXF regenerating a WSDL

2014-05-28 Thread asookazian2
When I deploy a WAB (mega-bundle WAR) to karaf which has a SOAP web service endpoint defined with the appropriate annotations like @WebService, @WebMethod, @WebResult, etc. where is the WSDL stored in karaf file system? e.g. I navigate to: http://localhost:8181/ws/MyManagerWS?wsdl Where is that

alias is already in use in this or another context

2014-05-29 Thread asookazian2
When I halt the karaf server, I get the following exception. This is a new exception for us, please explain how to fix/resolve. thx. admin@NextGate halt admin@NextGate ERROR: Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [106] EventDispatcher: Error during dispatch.

Re: alias is already in use in this or another context

2014-05-29 Thread asookazian2
We have recently upgraded some features/bundles that may be causing this behavior as follows: ActiveMQ: 5.9.1 hawtio: 1.4.1 Camel: 2.13.1 -- View this message in context: http://karaf.922171.n3.nabble.com/alias-is-already-in-use-in-this-or-another-context-tp4033324p404.html Sent from the

Re: alias is already in use in this or another context

2014-05-30 Thread asookazian2
admin@NextGate http:list ID | Servlet | Servlet-Name | State | Alias | Url

Re: alias is already in use in this or another context

2014-05-30 Thread asookazian2
reverted to AMQ 5.9.0 seems to fix the double-registering of /ws... -- View this message in context: http://karaf.922171.n3.nabble.com/alias-is-already-in-use-in-this-or-another-context-tp4033324p4033355.html Sent from the Karaf - User mailing list archive at Nabble.com.

cmd to reload shell.init.script

2014-06-10 Thread asookazian2
Is there a console cmd to reload shell.init.script or must you restart karaf? -- View this message in context: http://karaf.922171.n3.nabble.com/cmd-to-reload-shell-init-script-tp4033458.html Sent from the Karaf - User mailing list archive at Nabble.com.

  1   2   3   >