No, don't use exam/pax-exam-tutorial. Its not in the reactor and not
maintained.
sorry, will remove it if this really still exists. It was just not in my
focus anymore.

Use https://github.com/tonit/Learn-PaxExam as reference projects.

This will always use the latest released version to explain things.
Currently its 2.0.0. But 2.1.0 is theoretically out already, but there is an
upload problem to the staging area on oss.sonatype.org currently.
:(

On Thu, May 26, 2011 at 6:43 PM, Timothy Barthel <tim...@vsp.com> wrote:

>  I have all the tests from
> <root>exam\pax-exam-tutorial\src\test\java\org\ops4j\pax\exam\tutorial1
> running successfully in my workspace without using Maven ( I added the jars
> to the classpath manually).
>
> Not using Maven and Refresh/Clean/Build All did not help.
>
>  ------------------------------
> *From:* general-boun...@lists.ops4j.org [mailto:
> general-boun...@lists.ops4j.org] *On Behalf Of *Toni Menzel
> *Sent:* Thursday, May 26, 2011 9:30 AM
>
> *To:* General OPS4J
> *Subject:* Re: Pax-Exam test CLASSPATH
>
> Confusing ;)
> What i would like you to ask:
> You run Learn-PaxExam Project ?
> Use M2Eclipse?
>
> Do a "clean projects" prior launching the test/main?
> Just to cut off possible problems ..
>
>
> On Thu, May 26, 2011 at 5:03 PM, Timothy Barthel <tim...@vsp.com> wrote:
>
>>  RAD 8.0.1, I will try testing outside the IDE.
>>
>>  ------------------------------
>>  *From:* general-boun...@lists.ops4j.org [mailto:
>> general-boun...@lists.ops4j.org] *On Behalf Of *Toni Menzel
>> *Sent:* Thursday, May 26, 2011 12:02 AM
>>
>> *To:* General OPS4J
>> *Subject:* Re: Pax-Exam test CLASSPATH
>>
>>   no, tested with Eclipse & IntelliJ. Not Netbeans.
>>
>> On Thu, May 26, 2011 at 9:01 AM, Toni Menzel <t...@okidokiteam.com>wrote:
>>
>>> IDE ? (Tested with Eclipse and Netbeans).
>>> Of cause, the system must boot, for CXFLab you need Internet access from
>>> the JVM with possible maven proxies set in your .m2/settings.xml (if any).
>>>
>>>
>>> On Wed, May 25, 2011 at 11:13 PM, Timothy Barthel <tim...@vsp.com>wrote:
>>>
>>>>   I guess I am stuck. I can see the bundle containing the class I want
>>>> to test is deployed. The package for the class I want is exported but I
>>>> still cannot find the class. The CXFLaboratories example exits without
>>>> letting me issue commands.
>>>>
>>>>  ------------------------------
>>>>  *From:* general-boun...@lists.ops4j.org [mailto:
>>>> general-boun...@lists.ops4j.org] *On Behalf Of *Toni Menzel
>>>> *Sent:* Wednesday, May 25, 2011 10:24 AM
>>>>
>>>> *To:* General OPS4J
>>>> *Subject:* Re: Pax-Exam test CLASSPATH
>>>>
>>>>   about
>>>> 1.) It reports via log and stracktrace. How should it otherwise ?
>>>> 2.) If you are using the paxrunner container (which you do as it seams)
>>>> you can look at the paxrunner doc for that:
>>>> http://paxrunner.ops4j.org/display/paxrunner/Java+runtime+version
>>>> If there is no special option for it, you can pass all parameters using:
>>>> rawPaxRunnerOption(key,value)
>>>>
>>>> so, in your case:
>>>> rawPaxRunnerOption("javaHome","/System
>>>> /Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home")
>>>>
>>>> If you are using NativeConainer or want Exam to run in different JVM,
>>>> you set the JAVA_HOME environment variable.
>>>>
>>>> HTH
>>>>
>>>> On Wed, May 25, 2011 at 6:51 PM, Timothy Barthel <tim...@vsp.com>wrote:
>>>>
>>>>>  I think the issue is missing dependencies. I have been simplifying
>>>>> the bundle and had some success. This brings up two questions:
>>>>> 1) How can I get the framework to report unsatisfied dependencies (in
>>>>> my case they were j2ee libs)?
>>>>> 2) How can I control which JRE/JDK is used to run the framework?
>>>>>
>>>>>  ------------------------------
>>>>> *From:* general-boun...@lists.ops4j.org [mailto:
>>>>> general-boun...@lists.ops4j.org] *On Behalf Of *Timothy Barthel
>>>>> *Sent:* Tuesday, May 24, 2011 9:08 AM
>>>>> *To:* General OPS4J; General OPS4J
>>>>>
>>>>> *Subject:* RE: Pax-Exam test CLASSPATH
>>>>>
>>>>>    Yes,
>>>>>
>>>>> *public* *static* *void* main(String[] args) *throws* Exception {
>>>>>
>>>>> run as Java application.
>>>>>
>>>>> ------------------------------
>>>>> *From:* general-boun...@lists.ops4j.org on behalf of Toni Menzel
>>>>> *Sent:* Mon 5/23/2011 11:59 PM
>>>>> *To:* General OPS4J
>>>>> *Subject:* RE: Pax-Exam test CLASSPATH
>>>>>
>>>>>  Is it in a Main Methode? Because in a Test method the Test runner
>>>>> will quit the threads with force.  So it must be in a static Main and
>>>>> launched as java app.
>>>>> On May 24, 2011 1:56 AM, "Timothy Barthel" <tim...@vsp.com> wrote:
>>>>> > Here is my main:
>>>>> >
>>>>> > String gogoVersion = "0.8.0";
>>>>> > TestContainer container =
>>>>> > PaxExamRuntime.getTestContainerFactory().newInstance(combine(
>>>>> > TestListBundleWithMain.configure(),
>>>>> > options(mavenBundle().groupId("org.apache.felix")
>>>>> > .artifactId("org.apache.felix.gogo.runtime")
>>>>> > .version(gogoVersion),
>>>>> > mavenBundle().groupId("org.apache.felix")
>>>>> > .artifactId("org.apache.felix.gogo.shell")
>>>>> > .version(gogoVersion),
>>>>> > mavenBundle().groupId("org.apache.felix")
>>>>> > .artifactId("org.apache.felix.gogo.command")
>>>>> > .version(gogoVersion))));
>>>>> > container.start();
>>>>> >
>>>>> > Running the applicaiton I get this in stdout and then an exit:
>>>>> > ...
>>>>> > Welcome to Apache Felix Gogo
>>>>> >
>>>>> > g! [ RemoteBundleContextClient] - Remote bundle context found after
>>>>> 3344
>>>>> > millis
>>>>> >
>>>>> > How do I get it to wait for commands?
>>>>> >
>>>>> > ________________________________
>>>>> >
>>>>> > From: general-boun...@lists.ops4j.org
>>>>> > [mailto:general-boun...@lists.ops4j.org] On Behalf Of Toni Menzel
>>>>> > Sent: Monday, May 23, 2011 3:02 PM
>>>>> > To: General OPS4J
>>>>> > Subject: Re: Pax-Exam test CLASSPATH
>>>>> >
>>>>> >
>>>>> > its in the SPI artifact (pax-exam-spi) which you get via
>>>>> > pax-exam-native-container or paxrunner-container (which ever you
>>>>> use).
>>>>> >
>>>>> > On Mon, May 23, 2011 at 11:47 PM, Timothy Barthel <tim...@vsp.com>
>>>>> > wrote:
>>>>> >
>>>>> >
>>>>> > Is this Pax-Exam 2.0? I can't find class
>>>>> > org.ops4j.pax.exam.spi.container.PaxExamRuntime.
>>>>> >
>>>>> > ________________________________
>>>>> >
>>>>> >
>>>>> > From: general-boun...@lists.ops4j.org
>>>>> > [mailto:general-boun...@lists.ops4j.org] On Behalf Of Toni Menzel
>>>>> >
>>>>> > Sent: Monday, May 23, 2011 2:20 PM
>>>>> >
>>>>> > To: General OPS4J
>>>>> > Subject: Re: Pax-Exam test CLASSPATH
>>>>> >
>>>>> >
>>>>> > mmhh.. there is no real magic behind this, so i still bet
>>>>> > something fundamentally missing.
>>>>> >
>>>>> > What i usually do is using a litte Main entry point to
>>>>> > interactively access the environment you construct in your
>>>>> > @configuration like here:
>>>>> >
>>>>> >
>>>>> https://github.com/tonit/Learn-PaxExam/blob/master/lesson-cxf/src/test/j
>>>>> > ava/org/ops4j/pax/exam/learn/cxf/CXFLaboratories.java
>>>>> >
>>>>> > This lets you look at effective exports. Also you could use
>>>>> > "which <bundleid>
>>>>> > com.vsp.model.util.build.service.logentry.LogEntryService.
>>>>> >
>>>>> > Whats a common pitfall is that multiple bundles export the same
>>>>> > package but different content.
>>>>> >
>>>>> >
>>>>> > On Mon, May 23, 2011 at 11:12 PM, Timothy Barthel
>>>>> > <tim...@vsp.com> wrote:
>>>>> >
>>>>> >
>>>>> > Yes, I said it was com.vsp.il but it is actually
>>>>> > com.vsp.model. META-INF/MANIFEST.MF excerpt:
>>>>> >
>>>>> > Export-Package:
>>>>> > com.vsp.model.ancillary.service;version="1.0.0",
>>>>> > com.vsp.model.util.build;version="1.0.0",
>>>>> >
>>>>> > com.vsp.model.util.build.service.business.build;version="1.0.0",
>>>>> >
>>>>> >
>>>>> com.vsp.model.util.build.service.business.buildprocess;version="1.0.0",
>>>>> >
>>>>> > com.vsp.model.util.build.service.lifecycle.buildtype;version="1.0.0",
>>>>> >
>>>>> > com.vsp.model.util.build.service.lifecycle.logentry;version="1.0.0",
>>>>> >
>>>>> >
>>>>> > -----Original Message-----
>>>>> > From: general-boun...@lists.ops4j.org
>>>>> > [mailto:general-boun...@lists.ops4j.org] On Behalf Of Toni Menzel
>>>>> > Sent: Monday, May 23, 2011 2:07 PM
>>>>> > To: General OPS4J
>>>>> > Subject: Re: Pax-Exam test CLASSPATH
>>>>> >
>>>>> > Is one of your bundles exporting the package of
>>>>> >
>>>>> > com/vsp/model/util/build/service/lifecycle/logentry/LogEntryService ?
>>>>> > Your test ends up in a bundle that has a
>>>>> > Dynamic-ImportPackage * which
>>>>> > should find the class if your setup exports the package
>>>>> > somehwere.
>>>>> > Toni
>>>>> >
>>>>> > On Mon, May 23, 2011 at 10:55 PM, Timothy Barthel
>>>>> > <tim...@vsp.com> wrote:
>>>>> > > Hello,
>>>>> > >
>>>>> > > I am just getting started with Pax-Exam. My test code
>>>>> > cannot find the bundle
>>>>> > > code on the CLASSPATH. I am not using Maven and cannot
>>>>> > switch to it at this
>>>>> > > time. I have this configuration:
>>>>> > >
>>>>> > > @Configuration
>>>>> > > public static Option[] configure()
>>>>> > > {
>>>>> > > return options(
>>>>> > > equinox(),
>>>>> > > provision(
>>>>> > > ...
>>>>> > >
>>>>> > bundle("file:///tmp/com.vsp.il.jar"),
>>>>> > >
>>>>> > bundle("file:///tmp/com.vsp.model.jar"),
>>>>> > >
>>>>> > >
>>>>> > bundle("file:///tmp/com.vsp.util.build.lifecycle.module.jar"))
>>>>> > > );
>>>>> > > }
>>>>> > >
>>>>> > > And test:
>>>>> > >
>>>>> > > @Test
>>>>> > > public void findBuildById() {
>>>>> > > ClassLoader loader =
>>>>> > this.getClass().getClassLoader();
>>>>> > > System.out.println(loader);
>>>>> > > try {
>>>>> > > LogEntryService logService =
>>>>> > > ServiceUtil.lookup(LogEntryService.class);
>>>>> > > ...
>>>>> > > } catch (Exception e) {
>>>>> > > e.printStackTrace();
>>>>> > > fail("Caught exception");
>>>>> > > }
>>>>> > > }
>>>>> > >
>>>>> > > I get this eror: java.lang.NoClassDefFoundError:
>>>>> > >
>>>>> > com/vsp/model/util/build/service/lifecycle/logentry/LogEntryService
>>>>> > > ...
>>>>> > >
>>>>> > > I have another test that successfully lists the above
>>>>> > bundles. The interface
>>>>> > > in question is defined in the bundle com.vsp.il.jar
>>>>> > and the implementation
>>>>> > > is in com.vsp.util.build.lifecycle.module.jar. What
>>>>> > else do I need to do to
>>>>> > > make these bundles available to the test code at
>>>>> > runtime? Thanks.
>>>>> > >
>>>>> > > Tim
>>>>> > >
>>>>> > > MailGate.vsp.com <http://mailgate.vsp.com/> made the following
>>>>> annotations
>>>>> > >
>>>>> > ---------------------------------------------------------------------
>>>>> > > NOTICE: This message is intended only for the
>>>>> > individual to whom it is
>>>>> > > addressed and may contain information that is
>>>>> > confidential or privileged. If
>>>>> > > you are not the intended recipient, or the employee or
>>>>> > person responsible
>>>>> > > for delivering it to the intended recipient, you are
>>>>> > hereby notified that
>>>>> > > any dissemination, distribution, copying or use is
>>>>> > strictly prohibited. If
>>>>> > > you have received this communication in error, please
>>>>> > notify the sender and
>>>>> > > destroy or delete this communication immediately.
>>>>> > >
>>>>> > ---------------------------------------------------------------------
>>>>> > >
>>>>> > > _______________________________________________
>>>>> > > general mailing list
>>>>> > > general@lists.ops4j.org
>>>>> > > http://lists.ops4j.org/mailman/listinfo/general
>>>>> > >
>>>>> > >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Toni Menzel Source
>>>>> >
>>>>> > _______________________________________________
>>>>> > general mailing list
>>>>> > general@lists.ops4j.org
>>>>> > http://lists.ops4j.org/mailman/listinfo/general
>>>>> >
>>>>> > MailGate.vsp.com <http://mailgate.vsp.com/> made the following
>>>>> annotations
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> > NOTICE: This message is intended only for the individual
>>>>> > to whom it is addressed and may contain information that is
>>>>> confidential
>>>>> > or privileged. If you are not the intended recipient, or the employee
>>>>> or
>>>>> > person responsible for delivering it to the intended recipient, you
>>>>> are
>>>>> > hereby notified that any dissemination, distribution, copying or use
>>>>> is
>>>>> > strictly prohibited. If you have received this communication in
>>>>> error,
>>>>> > please notify the sender and destroy or delete this communication
>>>>> > immediately.
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > general mailing list
>>>>> > general@lists.ops4j.org
>>>>> > http://lists.ops4j.org/mailman/listinfo/general
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Toni Menzel Source <http://tonimenzel.com>
>>>>> >
>>>>> >
>>>>> >
>>>>> > MailGate.vsp.com <http://mailgate.vsp.com/> made the following
>>>>> annotations
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> > NOTICE: This message is intended only for the individual to whom
>>>>> > it is addressed and may contain information that is confidential or
>>>>> > privileged. If you are not the intended recipient, or the employee or
>>>>> > person responsible for delivering it to the intended recipient, you
>>>>> are
>>>>> > hereby notified that any dissemination, distribution, copying or use
>>>>> is
>>>>> > strictly prohibited. If you have received this communication in
>>>>> error,
>>>>> > please notify the sender and destroy or delete this communication
>>>>> > immediately.
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> >
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > general mailing list
>>>>> > general@lists.ops4j.org
>>>>> > http://lists.ops4j.org/mailman/listinfo/general
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Toni Menzel Source <http://tonimenzel.com>
>>>>> >
>>>>> >
>>>>> >
>>>>> > MailGate.vsp.com <http://mailgate.vsp.com/> made the following
>>>>> annotations
>>>>> > ---------------------------------------------------------------------
>>>>> > NOTICE: This message is intended only for the individual to whom it
>>>>> is addressed and may contain information that is confidential or 
>>>>> privileged.
>>>>> If you are not the intended recipient, or the employee or person 
>>>>> responsible
>>>>> for delivering it to the intended recipient, you are hereby notified that
>>>>> any dissemination, distribution, copying or use is strictly prohibited. If
>>>>> you have received this communication in error, please notify the sender 
>>>>> and
>>>>> destroy or delete this communication immediately.
>>>>> > ---------------------------------------------------------------------
>>>>> >
>>>>>
>>>>> MailGate.vsp.com made the following annotations
>>>>> ---------------------------------------------------------------------
>>>>> NOTICE: This message is intended only for the individual to whom it is
>>>>> addressed and may contain information that is confidential or privileged. 
>>>>> If
>>>>> you are not the intended recipient, or the employee or person responsible
>>>>> for delivering it to the intended recipient, you are hereby notified that
>>>>> any dissemination, distribution, copying or use is strictly prohibited. If
>>>>> you have received this communication in error, please notify the sender 
>>>>> and
>>>>> destroy or delete this communication immediately.
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>> MailGate.vsp.com made the following annotations
>>>>> ---------------------------------------------------------------------
>>>>> NOTICE: This message is intended only for the individual to whom it is
>>>>> addressed and may contain information that is confidential or privileged. 
>>>>> If
>>>>> you are not the intended recipient, or the employee or person responsible
>>>>> for delivering it to the intended recipient, you are hereby notified that
>>>>> any dissemination, distribution, copying or use is strictly prohibited. If
>>>>> you have received this communication in error, please notify the sender 
>>>>> and
>>>>> destroy or delete this communication immediately.
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> general mailing list
>>>>> general@lists.ops4j.org
>>>>> http://lists.ops4j.org/mailman/listinfo/general
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Toni Menzel Source <http://tonimenzel.com>
>>>>
>>>> MailGate.vsp.com made the following annotations
>>>> ---------------------------------------------------------------------
>>>> NOTICE: This message is intended only for the individual to whom it is
>>>> addressed and may contain information that is confidential or privileged. 
>>>> If
>>>> you are not the intended recipient, or the employee or person responsible
>>>> for delivering it to the intended recipient, you are hereby notified that
>>>> any dissemination, distribution, copying or use is strictly prohibited. If
>>>> you have received this communication in error, please notify the sender and
>>>> destroy or delete this communication immediately.
>>>> ---------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> general mailing list
>>>> general@lists.ops4j.org
>>>> http://lists.ops4j.org/mailman/listinfo/general
>>>>
>>>>
>>>
>>>
>>> --
>>> Toni Menzel Source <http://tonimenzel.com>
>>>
>>>
>>
>>
>> --
>> Toni Menzel Source <http://tonimenzel.com>
>>
>> MailGate.vsp.com made the following annotations
>> ---------------------------------------------------------------------
>> NOTICE: This message is intended only for the individual to whom it is
>> addressed and may contain information that is confidential or privileged. If
>> you are not the intended recipient, or the employee or person responsible
>> for delivering it to the intended recipient, you are hereby notified that
>> any dissemination, distribution, copying or use is strictly prohibited. If
>> you have received this communication in error, please notify the sender and
>> destroy or delete this communication immediately.
>> ---------------------------------------------------------------------
>>
>> _______________________________________________
>> general mailing list
>> general@lists.ops4j.org
>> http://lists.ops4j.org/mailman/listinfo/general
>>
>>
>
>
> --
> Toni Menzel Source <http://tonimenzel.com>
>
> MailGate.vsp.com made the following annotations
> ---------------------------------------------------------------------
> NOTICE: This message is intended only for the individual to whom it is
> addressed and may contain information that is confidential or privileged. If
> you are not the intended recipient, or the employee or person responsible
> for delivering it to the intended recipient, you are hereby notified that
> any dissemination, distribution, copying or use is strictly prohibited. If
> you have received this communication in error, please notify the sender and
> destroy or delete this communication immediately.
> ---------------------------------------------------------------------
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
>


-- 
Toni Menzel Source <http://tonimenzel.com>
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to