POS - Printer problems continued

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

POS - Printer problems continued

Branden Strickland
Hello all, hope everyone is well.

I'm getting the typical "message: Service does not exist in loaded JCL
registry" apon booting the POS, but i've changed my pos-container.xml file
as stated below back to the NullReceipt setting.  It still won't boot.
(config file below)

Would there be anything else stopping me?  Must I rebuild the enviroment, or
something I'm missing?

Thanks gents!

 <container name="jpos.device-container"
class="org.ofbiz.pos.container.JposDeviceContainer">
        <property name="CashDrawer.1" value="NullCashDrawer"/>
        <property name="Receipt" value="NullReceipt"/>
        <property name="Keyboard" value="GenericKeyboard"/>
        <property name="Scanner" value="GenericScanner"/>
        <property name="Msr" value="TestMsr"/>
        <property name="PinPad" value="[NOT IMPLEMENTED]"/>
        <property name="Journal" value="[NOT IMPLEMENTED]"/>
        <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
        <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
        <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
    </container>
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Jacques Le Roux
Administrator
It should work, send us more of your log around the error. Did you check carefully your jpos.xml file ?

Jacques

From: "Branden Strickland" <[hidden email]>

> Hello all, hope everyone is well.
>
> I'm getting the typical "message: Service does not exist in loaded JCL
> registry" apon booting the POS, but i've changed my pos-container.xml file
> as stated below back to the NullReceipt setting.  It still won't boot.
> (config file below)
>
> Would there be anything else stopping me?  Must I rebuild the enviroment, or
> something I'm missing?
>
> Thanks gents!
>
> <container name="jpos.device-container"
> class="org.ofbiz.pos.container.JposDeviceContainer">
>        <property name="CashDrawer.1" value="NullCashDrawer"/>
>        <property name="Receipt" value="NullReceipt"/>
>        <property name="Keyboard" value="GenericKeyboard"/>
>        <property name="Scanner" value="GenericScanner"/>
>        <property name="Msr" value="TestMsr"/>
>        <property name="PinPad" value="[NOT IMPLEMENTED]"/>
>        <property name="Journal" value="[NOT IMPLEMENTED]"/>
>        <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
>        <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
>        <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
>    </container>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Dan Shields-3
What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
contents (after running the Epson installer) made evident some interesting
classpath paradoxes in the way jpos is intialized.  I have several theories
about this that I am attempting to understand.  To test one theory, I moved
the jpos.xml file so that it resides on the bootclasspath rather than in
specialpurpose/pos/config, to my surprise this FIXED the problem!

On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
[hidden email]> wrote:

> It should work, send us more of your log around the error. Did you check
> carefully your jpos.xml file ?
>
> Jacques
>
> From: "Branden Strickland" <[hidden email]>
>
>  Hello all, hope everyone is well.
> >
> > I'm getting the typical "message: Service does not exist in loaded JCL
> > registry" apon booting the POS, but i've changed my pos-container.xml
> > file
> > as stated below back to the NullReceipt setting.  It still won't boot.
> > (config file below)
> >
> > Would there be anything else stopping me?  Must I rebuild the
> > enviroment, or
> > something I'm missing?
> >
> > Thanks gents!
> >
> > <container name="jpos.device-container"
> > class="org.ofbiz.pos.container.JposDeviceContainer">
> >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> >       <property name="Receipt" value="NullReceipt"/>
> >       <property name="Keyboard" value="GenericKeyboard"/>
> >       <property name="Scanner" value="GenericScanner"/>
> >       <property name="Msr" value="TestMsr"/>
> >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> >       <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
> >   </container>
> >
> >
Reply | Threaded
Open this post in threaded view
|

RE: POS - Printer problems continued

Christopher L
Now that you mention the $JAVA_HOME/jre/lib/ext directory...

I haven't always had success when directions call for putting files in that directory.  In particular, the only way I was able to get my cash drawer working in linux is to put the serial port configuration file (javax.comm.properties) in the classpath.  According to the instructions, that file should have been fine in $JAVA_HOME/jre/lib/ext.

I haven't experienced the particular problem you mention though.

C

> Date: Sun, 6 Apr 2008 19:21:57 -0400
> From: [hidden email]
> To: [hidden email]; [hidden email]
> Subject: Re: POS - Printer problems continued
>
> What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
> contents (after running the Epson installer) made evident some interesting
> classpath paradoxes in the way jpos is intialized.  I have several theories
> about this that I am attempting to understand.  To test one theory, I moved
> the jpos.xml file so that it resides on the bootclasspath rather than in
> specialpurpose/pos/config, to my surprise this FIXED the problem!
>
> On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
> > It should work, send us more of your log around the error. Did you check
> > carefully your jpos.xml file ?
> >
> > Jacques
> >
> > From: "Branden Strickland" <[hidden email]>
> >
> >  Hello all, hope everyone is well.
> > >
> > > I'm getting the typical "message: Service does not exist in loaded JCL
> > > registry" apon booting the POS, but i've changed my pos-container.xml
> > > file
> > > as stated below back to the NullReceipt setting.  It still won't boot.
> > > (config file below)
> > >
> > > Would there be anything else stopping me?  Must I rebuild the
> > > enviroment, or
> > > something I'm missing?
> > >
> > > Thanks gents!
> > >
> > > <container name="jpos.device-container"
> > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > >       <property name="Receipt" value="NullReceipt"/>
> > >       <property name="Keyboard" value="GenericKeyboard"/>
> > >       <property name="Scanner" value="GenericScanner"/>
> > >       <property name="Msr" value="TestMsr"/>
> > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > >       <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
> > >   </container>
> > >
> > >
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Branden Strickland
wow... Gentlemen, you bring to light a few theories I've been mucking around
with.  The epson ADK 1.11 and it's install directions are.....shaky at best.
The README  and INSTALLATION files that come with the install don't reflect
that of the PDF you can get off the site.

Also The RXTX install instructions are outdated as it's Revision 2 and some
of the errors and directories they have you mess with turn in to witch
hunts!

I'll look into this and give what you suggest  a try.

Just out of curiousity.....How does one add files to the classpath in
ubuntu?   You're not speaking of just adding them to $PATH?  correct?  The
sys admin stuff is easy, it's this new JAVA craziness thats throwing me off!
:P

P.S.  I had been messing with the $JAVA_HOME/jre/lib/ext directory! YIKES!
I'll get it fixed!

On Sun, Apr 6, 2008 at 8:55 PM, Christopher L <[hidden email]>
wrote:

> Now that you mention the $JAVA_HOME/jre/lib/ext directory...
>
> I haven't always had success when directions call for putting files in
> that directory.  In particular, the only way I was able to get my cash
> drawer working in linux is to put the serial port configuration file
> (javax.comm.properties) in the classpath.  According to the instructions,
> that file should have been fine in $JAVA_HOME/jre/lib/ext.
>
> I haven't experienced the particular problem you mention though.
>
> C
>
> > Date: Sun, 6 Apr 2008 19:21:57 -0400
> > From: [hidden email]
> > To: [hidden email]; [hidden email]
> > Subject: Re: POS - Printer problems continued
> >
> > What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
> > contents (after running the Epson installer) made evident some
> interesting
> > classpath paradoxes in the way jpos is intialized.  I have several
> theories
> > about this that I am attempting to understand.  To test one theory, I
> moved
> > the jpos.xml file so that it resides on the bootclasspath rather than in
> > specialpurpose/pos/config, to my surprise this FIXED the problem!
> >
> > On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> > [hidden email]> wrote:
> >
> > > It should work, send us more of your log around the error. Did you
> check
> > > carefully your jpos.xml file ?
> > >
> > > Jacques
> > >
> > > From: "Branden Strickland" <[hidden email]>
> > >
> > >  Hello all, hope everyone is well.
> > > >
> > > > I'm getting the typical "message: Service does not exist in loaded
> JCL
> > > > registry" apon booting the POS, but i've changed my
> pos-container.xml
> > > > file
> > > > as stated below back to the NullReceipt setting.  It still won't
> boot.
> > > > (config file below)
> > > >
> > > > Would there be anything else stopping me?  Must I rebuild the
> > > > enviroment, or
> > > > something I'm missing?
> > > >
> > > > Thanks gents!
> > > >
> > > > <container name="jpos.device-container"
> > > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > > >       <property name="Receipt" value="NullReceipt"/>
> > > >       <property name="Keyboard" value="GenericKeyboard"/>
> > > >       <property name="Scanner" value="GenericScanner"/>
> > > >       <property name="Msr" value="TestMsr"/>
> > > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
> > > >   </container>
> > > >
> > > >
>
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Branden Strickland
FYI the full error.log file for the start up issue I'm having! If you want
the debug or something else, just let me know.  I'm looking into reading up
on this bootclasspath and classpath nonsense.  At the very least, I'm going
to need to learn it anyway, so I'll take a look into it and if anyone has
tidbits to help me along this path. I'd appritiate it!

2008-04-07 12:25:54,545 (main) [       DeviceLoader.java:62 :ERROR]
---- exception report
----------------------------------------------------------
JPOS Exception
Exception: jpos.JposException
Message: Service does not exist in loaded JCL registry
---- stack trace
---------------------------------------------------------------
jpos.JposException: Service does not exist in loaded JCL registry
jpos.loader.simple.SimpleServiceManager.createConnection(Unknown Source)
jpos.loader.JposServiceLoader.findService(Unknown Source)
jpos.BaseJposControl.open(Unknown Source)
org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)
org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:60)
org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50)
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79)
org.ofbiz.base.start.Start.startStartLoaders(Start.java:261)
org.ofbiz.base.start.Start.startServer(Start.java:310)
org.ofbiz.base.start.Start.start(Start.java:314)
org.ofbiz.base.start.Start.main(Start.java:397)
--------------------------------------------------------------------------------

2008-04-07 12:25:55,743 (OFBiz_Shutdown_Hook) [
DeviceLoader.java:241:ERROR]
---- exception report
----------------------------------------------------------
JPOS Exception
Exception: jpos.JposException
Message: Control not opened
---- stack trace
---------------------------------------------------------------
jpos.JposException: Control not opened
jpos.BaseJposControl.release(Unknown Source)
org.ofbiz.pos.device.GenericDevice.close(GenericDevice.java:55)
org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:208)
org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
org.ofbiz.base.start.Start.access$000(Start.java:43)
org.ofbiz.base.start.Start$2.run(Start.java:276)
--------------------------------------------------------------------------------

2008-04-07 12:25:55,745 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:66
:ERROR]
---- exception report
----------------------------------------------------------
Exception: org.ofbiz.base.util.GeneralException
Message: null
---- stack trace
---------------------------------------------------------------
org.ofbiz.base.util.GeneralException
org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:242)
org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
org.ofbiz.base.start.Start.access$000(Start.java:43)
org.ofbiz.base.start.Start$2.run(Start.java:276)
--------------------------------------------------------------------------------




On Mon, Apr 7, 2008 at 10:44 AM, Branden Strickland <
[hidden email]> wrote:

> wow... Gentlemen, you bring to light a few theories I've been mucking
> around with.  The epson ADK 1.11 and it's install directions are.....shaky
> at best. The README  and INSTALLATION files that come with the install don't
> reflect that of the PDF you can get off the site.
>
> Also The RXTX install instructions are outdated as it's Revision 2 and
> some of the errors and directories they have you mess with turn in to witch
> hunts!
>
> I'll look into this and give what you suggest  a try.
>
> Just out of curiousity.....How does one add files to the classpath in
> ubuntu?   You're not speaking of just adding them to $PATH?  correct?  The
> sys admin stuff is easy, it's this new JAVA craziness thats throwing me off!
> :P
>
> P.S.  I had been messing with the $JAVA_HOME/jre/lib/ext directory!
> YIKES!  I'll get it fixed!
>
> On Sun, Apr 6, 2008 at 8:55 PM, Christopher L <[hidden email]>
> wrote:
>
> > Now that you mention the $JAVA_HOME/jre/lib/ext directory...
> >
> > I haven't always had success when directions call for putting files in
> > that directory.  In particular, the only way I was able to get my cash
> > drawer working in linux is to put the serial port configuration file
> > (javax.comm.properties) in the classpath.  According to the instructions,
> > that file should have been fine in $JAVA_HOME/jre/lib/ext.
> >
> > I haven't experienced the particular problem you mention though.
> >
> > C
> >
> > > Date: Sun, 6 Apr 2008 19:21:57 -0400
> > > From: [hidden email]
> > > To: [hidden email]; [hidden email]
> > > Subject: Re: POS - Printer problems continued
> > >
> > > What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
> > > contents (after running the Epson installer) made evident some
> > interesting
> > > classpath paradoxes in the way jpos is intialized.  I have several
> > theories
> > > about this that I am attempting to understand.  To test one theory, I
> > moved
> > > the jpos.xml file so that it resides on the bootclasspath rather than
> > in
> > > specialpurpose/pos/config, to my surprise this FIXED the problem!
> > >
> > > On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> > > [hidden email]> wrote:
> > >
> > > > It should work, send us more of your log around the error. Did you
> > check
> > > > carefully your jpos.xml file ?
> > > >
> > > > Jacques
> > > >
> > > > From: "Branden Strickland" <[hidden email]>
> > > >
> > > >  Hello all, hope everyone is well.
> > > > >
> > > > > I'm getting the typical "message: Service does not exist in loaded
> > JCL
> > > > > registry" apon booting the POS, but i've changed my
> > pos-container.xml
> > > > > file
> > > > > as stated below back to the NullReceipt setting.  It still won't
> > boot.
> > > > > (config file below)
> > > > >
> > > > > Would there be anything else stopping me?  Must I rebuild the
> > > > > enviroment, or
> > > > > something I'm missing?
> > > > >
> > > > > Thanks gents!
> > > > >
> > > > > <container name="jpos.device-container"
> > > > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > > > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > > > >       <property name="Receipt" value="NullReceipt"/>
> > > > >       <property name="Keyboard" value="GenericKeyboard"/>
> > > > >       <property name="Scanner" value="GenericScanner"/>
> > > > >       <property name="Msr" value="TestMsr"/>
> > > > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > > > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > > > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > > > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > > > >       <property name="SignatureCapture" value="[NOT
> > IMPLEMENTED]"/>
> > > > >   </container>
> > > > >
> > > > >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Branden Strickland
Contents of $JAVA_HOME/jre/lib/ext...Also, I've appended the
/etc/environment to add for a classpath (thats how I've read to do it in
ubuntu anyway) and I've added
/opt/java6/jdk1.6.0_05/jre/lib:/opt/java6/jdk1.6.0_05/jre/lib/ext/:$JAVA_HOME/lib:.

I may have more than I need there, but with my only small growing knowledge
of the JAVA environment it's all i could muster to put in!

RXTXcomm.jar
comm.jar
commbk.jar
dnsns.jar
epsonupos.jar
jai_codec.jar
jai_core.jar
javax.comm.properties
jpos.xml
jpos111.jar
linuxUsbDriver.jar
localedata.jar
meta-index
mlibwrapper_jai.jar
pos.jar
sunjce_provider.jar
sunpkcs11.jar
uposcommon.jar
xercesImpl.jar
xml-apis.jar


On Mon, Apr 7, 2008 at 12:35 PM, Branden Strickland <
[hidden email]> wrote:

> FYI the full error.log file for the start up issue I'm having! If you want
> the debug or something else, just let me know.  I'm looking into reading up
> on this bootclasspath and classpath nonsense.  At the very least, I'm going
> to need to learn it anyway, so I'll take a look into it and if anyone has
> tidbits to help me along this path. I'd appritiate it!
>
> 2008-04-07 12:25:54,545 (main) [       DeviceLoader.java:62 :ERROR]
> ---- exception report
> ----------------------------------------------------------
> JPOS Exception
> Exception: jpos.JposException
> Message: Service does not exist in loaded JCL registry
> ---- stack trace
> ---------------------------------------------------------------
> jpos.JposException: Service does not exist in loaded JCL registry
> jpos.loader.simple.SimpleServiceManager.createConnection(Unknown Source)
> jpos.loader.JposServiceLoader.findService(Unknown Source)
> jpos.BaseJposControl.open(Unknown Source)
> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)
> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:60)
>
> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50)
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79)
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261)
> org.ofbiz.base.start.Start.startServer(Start.java:310)
> org.ofbiz.base.start.Start.start(Start.java:314)
> org.ofbiz.base.start.Start.main(Start.java:397)
>
> --------------------------------------------------------------------------------
>
> 2008-04-07 12:25:55,743 (OFBiz_Shutdown_Hook) [
> DeviceLoader.java:241:ERROR]
> ---- exception report
> ----------------------------------------------------------
> JPOS Exception
> Exception: jpos.JposException
> Message: Control not opened
> ---- stack trace
> ---------------------------------------------------------------
> jpos.JposException: Control not opened
> jpos.BaseJposControl.release(Unknown Source)
> org.ofbiz.pos.device.GenericDevice.close(GenericDevice.java:55)
> org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:208)
>
> org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
> org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
> org.ofbiz.base.start.Start.access$000(Start.java:43)
> org.ofbiz.base.start.Start$2.run(Start.java:276)
>
> --------------------------------------------------------------------------------
>
> 2008-04-07 12:25:55,745 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:66
> :ERROR]
> ---- exception report
> ----------------------------------------------------------
> Exception: org.ofbiz.base.util.GeneralException
> Message: null
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.base.util.GeneralException
> org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:242)
>
> org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
> org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
> org.ofbiz.base.start.Start.access$000(Start.java:43)
> org.ofbiz.base.start.Start$2.run(Start.java:276)
>
> --------------------------------------------------------------------------------
>
>
>
>
>
> On Mon, Apr 7, 2008 at 10:44 AM, Branden Strickland <
> [hidden email]> wrote:
>
> > wow... Gentlemen, you bring to light a few theories I've been mucking
> > around with.  The epson ADK 1.11 and it's install directions are.....shaky
> > at best. The README  and INSTALLATION files that come with the install don't
> > reflect that of the PDF you can get off the site.
> >
> > Also The RXTX install instructions are outdated as it's Revision 2 and
> > some of the errors and directories they have you mess with turn in to witch
> > hunts!
> >
> > I'll look into this and give what you suggest  a try.
> >
> > Just out of curiousity.....How does one add files to the classpath in
> > ubuntu?   You're not speaking of just adding them to $PATH?  correct?  The
> > sys admin stuff is easy, it's this new JAVA craziness thats throwing me off!
> > :P
> >
> > P.S.  I had been messing with the $JAVA_HOME/jre/lib/ext directory!
> > YIKES!  I'll get it fixed!
> >
> > On Sun, Apr 6, 2008 at 8:55 PM, Christopher L <[hidden email]>
> > wrote:
> >
> > > Now that you mention the $JAVA_HOME/jre/lib/ext directory...
> > >
> > > I haven't always had success when directions call for putting files in
> > > that directory.  In particular, the only way I was able to get my cash
> > > drawer working in linux is to put the serial port configuration file
> > > (javax.comm.properties) in the classpath.  According to the instructions,
> > > that file should have been fine in $JAVA_HOME/jre/lib/ext.
> > >
> > > I haven't experienced the particular problem you mention though.
> > >
> > > C
> > >
> > > > Date: Sun, 6 Apr 2008 19:21:57 -0400
> > > > From: [hidden email]
> > > > To: [hidden email]; [hidden email]
> > > > Subject: Re: POS - Printer problems continued
> > > >
> > > > What is the contents of your $JAVA_HOME/jre/lib/ext directory?
> > > It's
> > > > contents (after running the Epson installer) made evident some
> > > interesting
> > > > classpath paradoxes in the way jpos is intialized.  I have several
> > > theories
> > > > about this that I am attempting to understand.  To test one theory,
> > > I moved
> > > > the jpos.xml file so that it resides on the bootclasspath rather
> > > than in
> > > > specialpurpose/pos/config, to my surprise this FIXED the problem!
> > > >
> > > > On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> > > > [hidden email]> wrote:
> > > >
> > > > > It should work, send us more of your log around the error. Did you
> > > check
> > > > > carefully your jpos.xml file ?
> > > > >
> > > > > Jacques
> > > > >
> > > > > From: "Branden Strickland" <[hidden email]>
> > > > >
> > > > >  Hello all, hope everyone is well.
> > > > > >
> > > > > > I'm getting the typical "message: Service does not exist in
> > > loaded JCL
> > > > > > registry" apon booting the POS, but i've changed my
> > > pos-container.xml
> > > > > > file
> > > > > > as stated below back to the NullReceipt setting.  It still won't
> > > boot.
> > > > > > (config file below)
> > > > > >
> > > > > > Would there be anything else stopping me?  Must I rebuild the
> > > > > > enviroment, or
> > > > > > something I'm missing?
> > > > > >
> > > > > > Thanks gents!
> > > > > >
> > > > > > <container name="jpos.device-container"
> > > > > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > > > > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > > > > >       <property name="Receipt" value="NullReceipt"/>
> > > > > >       <property name="Keyboard" value="GenericKeyboard"/>
> > > > > >       <property name="Scanner" value="GenericScanner"/>
> > > > > >       <property name="Msr" value="TestMsr"/>
> > > > > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > > > > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > > > > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > > > > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > > > > >       <property name="SignatureCapture" value="[NOT
> > > IMPLEMENTED]"/>
> > > > > >   </container>
> > > > > >
> > > > > >
> > >
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Jacques Le Roux
Administrator
In reply to this post by Christopher L
Hi Chris,

Did you try to use -Djava.ext.dirs ? Not sure it's still right but you may be interested by this
http://www.yoda.arachsys.com/java/extensions.html

Jacques

From: "Christopher L" <[hidden email]>
Now that you mention the $JAVA_HOME/jre/lib/ext directory...

I haven't always had success when directions call for putting files in that directory.  In particular, the only way I was able to
get my cash drawer working in linux is to put the serial port configuration file (javax.comm.properties) in the classpath.
According to the instructions, that file should have been fine in $JAVA_HOME/jre/lib/ext.

I haven't experienced the particular problem you mention though.

C

> Date: Sun, 6 Apr 2008 19:21:57 -0400
> From: [hidden email]
> To: [hidden email]; [hidden email]
> Subject: Re: POS - Printer problems continued
>
> What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
> contents (after running the Epson installer) made evident some interesting
> classpath paradoxes in the way jpos is intialized.  I have several theories
> about this that I am attempting to understand.  To test one theory, I moved
> the jpos.xml file so that it resides on the bootclasspath rather than in
> specialpurpose/pos/config, to my surprise this FIXED the problem!
>
> On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
> > It should work, send us more of your log around the error. Did you check
> > carefully your jpos.xml file ?
> >
> > Jacques
> >
> > From: "Branden Strickland" <[hidden email]>
> >
> >  Hello all, hope everyone is well.
> > >
> > > I'm getting the typical "message: Service does not exist in loaded JCL
> > > registry" apon booting the POS, but i've changed my pos-container.xml
> > > file
> > > as stated below back to the NullReceipt setting.  It still won't boot.
> > > (config file below)
> > >
> > > Would there be anything else stopping me?  Must I rebuild the
> > > enviroment, or
> > > something I'm missing?
> > >
> > > Thanks gents!
> > >
> > > <container name="jpos.device-container"
> > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > >       <property name="Receipt" value="NullReceipt"/>
> > >       <property name="Keyboard" value="GenericKeyboard"/>
> > >       <property name="Scanner" value="GenericScanner"/>
> > >       <property name="Msr" value="TestMsr"/>
> > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > >       <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
> > >   </container>
> > >
> > >

Reply | Threaded
Open this post in threaded view
|

Re: POS - Printer problems continued

Jacques Le Roux
Administrator
In reply to this post by Branden Strickland
IIRW, with my Epson TM-T88III and ADK 1.8, I simply put

epsonJposServiceCommon.jar and epsonJposService180.jar in specialpurpose\pos\lib
and comm.jar in jdk1.5.0_11\jre\lib\ext
and it worked.

Actually It was working since I suspect one of the commits related to https://issues.apache.org/jira/browse/OFBIZ-1630 and related
tasks to have broken the POS in the trunk (maybe r646697 or r643923)

Jacques

From: "Branden Strickland" <[hidden email]>

> Contents of $JAVA_HOME/jre/lib/ext...Also, I've appended the
> /etc/environment to add for a classpath (thats how I've read to do it in
> ubuntu anyway) and I've added
> /opt/java6/jdk1.6.0_05/jre/lib:/opt/java6/jdk1.6.0_05/jre/lib/ext/:$JAVA_HOME/lib:.
>
> I may have more than I need there, but with my only small growing knowledge
> of the JAVA environment it's all i could muster to put in!
>
> RXTXcomm.jar
> comm.jar
> commbk.jar
> dnsns.jar
> epsonupos.jar
> jai_codec.jar
> jai_core.jar
> javax.comm.properties
> jpos.xml
> jpos111.jar
> linuxUsbDriver.jar
> localedata.jar
> meta-index
> mlibwrapper_jai.jar
> pos.jar
> sunjce_provider.jar
> sunpkcs11.jar
> uposcommon.jar
> xercesImpl.jar
> xml-apis.jar
>
>
> On Mon, Apr 7, 2008 at 12:35 PM, Branden Strickland <
> [hidden email]> wrote:
>
>> FYI the full error.log file for the start up issue I'm having! If you want
>> the debug or something else, just let me know.  I'm looking into reading up
>> on this bootclasspath and classpath nonsense.  At the very least, I'm going
>> to need to learn it anyway, so I'll take a look into it and if anyone has
>> tidbits to help me along this path. I'd appritiate it!
>>
>> 2008-04-07 12:25:54,545 (main) [       DeviceLoader.java:62 :ERROR]
>> ---- exception report
>> ----------------------------------------------------------
>> JPOS Exception
>> Exception: jpos.JposException
>> Message: Service does not exist in loaded JCL registry
>> ---- stack trace
>> ---------------------------------------------------------------
>> jpos.JposException: Service does not exist in loaded JCL registry
>> jpos.loader.simple.SimpleServiceManager.createConnection(Unknown Source)
>> jpos.loader.JposServiceLoader.findService(Unknown Source)
>> jpos.BaseJposControl.open(Unknown Source)
>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44)
>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:60)
>>
>> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50)
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79)
>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261)
>> org.ofbiz.base.start.Start.startServer(Start.java:310)
>> org.ofbiz.base.start.Start.start(Start.java:314)
>> org.ofbiz.base.start.Start.main(Start.java:397)
>>
>> --------------------------------------------------------------------------------
>>
>> 2008-04-07 12:25:55,743 (OFBiz_Shutdown_Hook) [
>> DeviceLoader.java:241:ERROR]
>> ---- exception report
>> ----------------------------------------------------------
>> JPOS Exception
>> Exception: jpos.JposException
>> Message: Control not opened
>> ---- stack trace
>> ---------------------------------------------------------------
>> jpos.JposException: Control not opened
>> jpos.BaseJposControl.release(Unknown Source)
>> org.ofbiz.pos.device.GenericDevice.close(GenericDevice.java:55)
>> org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:208)
>>
>> org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
>> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
>> org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
>> org.ofbiz.base.start.Start.access$000(Start.java:43)
>> org.ofbiz.base.start.Start$2.run(Start.java:276)
>>
>> --------------------------------------------------------------------------------
>>
>> 2008-04-07 12:25:55,745 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:66
>> :ERROR]
>> ---- exception report
>> ----------------------------------------------------------
>> Exception: org.ofbiz.base.util.GeneralException
>> Message: null
>> ---- stack trace
>> ---------------------------------------------------------------
>> org.ofbiz.base.util.GeneralException
>> org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:242)
>>
>> org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:63)
>> org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:100)
>> org.ofbiz.base.start.Start.shutdownServer(Start.java:299)
>> org.ofbiz.base.start.Start.access$000(Start.java:43)
>> org.ofbiz.base.start.Start$2.run(Start.java:276)
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>> On Mon, Apr 7, 2008 at 10:44 AM, Branden Strickland <
>> [hidden email]> wrote:
>>
>> > wow... Gentlemen, you bring to light a few theories I've been mucking
>> > around with.  The epson ADK 1.11 and it's install directions are.....shaky
>> > at best. The README  and INSTALLATION files that come with the install don't
>> > reflect that of the PDF you can get off the site.
>> >
>> > Also The RXTX install instructions are outdated as it's Revision 2 and
>> > some of the errors and directories they have you mess with turn in to witch
>> > hunts!
>> >
>> > I'll look into this and give what you suggest  a try.
>> >
>> > Just out of curiousity.....How does one add files to the classpath in
>> > ubuntu?   You're not speaking of just adding them to $PATH?  correct?  The
>> > sys admin stuff is easy, it's this new JAVA craziness thats throwing me off!
>> > :P
>> >
>> > P.S.  I had been messing with the $JAVA_HOME/jre/lib/ext directory!
>> > YIKES!  I'll get it fixed!
>> >
>> > On Sun, Apr 6, 2008 at 8:55 PM, Christopher L <[hidden email]>
>> > wrote:
>> >
>> > > Now that you mention the $JAVA_HOME/jre/lib/ext directory...
>> > >
>> > > I haven't always had success when directions call for putting files in
>> > > that directory.  In particular, the only way I was able to get my cash
>> > > drawer working in linux is to put the serial port configuration file
>> > > (javax.comm.properties) in the classpath.  According to the instructions,
>> > > that file should have been fine in $JAVA_HOME/jre/lib/ext.
>> > >
>> > > I haven't experienced the particular problem you mention though.
>> > >
>> > > C
>> > >
>> > > > Date: Sun, 6 Apr 2008 19:21:57 -0400
>> > > > From: [hidden email]
>> > > > To: [hidden email]; [hidden email]
>> > > > Subject: Re: POS - Printer problems continued
>> > > >
>> > > > What is the contents of your $JAVA_HOME/jre/lib/ext directory?
>> > > It's
>> > > > contents (after running the Epson installer) made evident some
>> > > interesting
>> > > > classpath paradoxes in the way jpos is intialized.  I have several
>> > > theories
>> > > > about this that I am attempting to understand.  To test one theory,
>> > > I moved
>> > > > the jpos.xml file so that it resides on the bootclasspath rather
>> > > than in
>> > > > specialpurpose/pos/config, to my surprise this FIXED the problem!
>> > > >
>> > > > On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
>> > > > [hidden email]> wrote:
>> > > >
>> > > > > It should work, send us more of your log around the error. Did you
>> > > check
>> > > > > carefully your jpos.xml file ?
>> > > > >
>> > > > > Jacques
>> > > > >
>> > > > > From: "Branden Strickland" <[hidden email]>
>> > > > >
>> > > > >  Hello all, hope everyone is well.
>> > > > > >
>> > > > > > I'm getting the typical "message: Service does not exist in
>> > > loaded JCL
>> > > > > > registry" apon booting the POS, but i've changed my
>> > > pos-container.xml
>> > > > > > file
>> > > > > > as stated below back to the NullReceipt setting.  It still won't
>> > > boot.
>> > > > > > (config file below)
>> > > > > >
>> > > > > > Would there be anything else stopping me?  Must I rebuild the
>> > > > > > enviroment, or
>> > > > > > something I'm missing?
>> > > > > >
>> > > > > > Thanks gents!
>> > > > > >
>> > > > > > <container name="jpos.device-container"
>> > > > > > class="org.ofbiz.pos.container.JposDeviceContainer">
>> > > > > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
>> > > > > >       <property name="Receipt" value="NullReceipt"/>
>> > > > > >       <property name="Keyboard" value="GenericKeyboard"/>
>> > > > > >       <property name="Scanner" value="GenericScanner"/>
>> > > > > >       <property name="Msr" value="TestMsr"/>
>> > > > > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
>> > > > > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
>> > > > > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
>> > > > > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
>> > > > > >       <property name="SignatureCapture" value="[NOT
>> > > IMPLEMENTED]"/>
>> > > > > >   </container>
>> > > > > >
>> > > > > >
>> > >
>> >
>> >
>>
>

Reply | Threaded
Open this post in threaded view
|

RE: POS - Printer problems continued

Christopher L
In reply to this post by Jacques Le Roux
Thanks for the tip.

I hadn't used that parameter, though I wonder if my linux distro changes the default to something strange.

C

> From: [hidden email]
> To: [hidden email]
> Subject: Re: POS - Printer problems continued
> Date: Fri, 11 Apr 2008 09:55:38 +0200
>
> Hi Chris,
>
> Did you try to use -Djava.ext.dirs ? Not sure it's still right but you may be interested by this
> http://www.yoda.arachsys.com/java/extensions.html
>
> Jacques
>
> From: "Christopher L" <[hidden email]>
> Now that you mention the $JAVA_HOME/jre/lib/ext directory...
>
> I haven't always had success when directions call for putting files in that directory.  In particular, the only way I was able to
> get my cash drawer working in linux is to put the serial port configuration file (javax.comm.properties) in the classpath.
> According to the instructions, that file should have been fine in $JAVA_HOME/jre/lib/ext.
>
> I haven't experienced the particular problem you mention though.
>
> C
>
> > Date: Sun, 6 Apr 2008 19:21:57 -0400
> > From: [hidden email]
> > To: [hidden email]; [hidden email]
> > Subject: Re: POS - Printer problems continued
> >
> > What is the contents of your $JAVA_HOME/jre/lib/ext directory?   It's
> > contents (after running the Epson installer) made evident some interesting
> > classpath paradoxes in the way jpos is intialized.  I have several theories
> > about this that I am attempting to understand.  To test one theory, I moved
> > the jpos.xml file so that it resides on the bootclasspath rather than in
> > specialpurpose/pos/config, to my surprise this FIXED the problem!
> >
> > On Sun, Apr 6, 2008 at 4:30 PM, Jacques Le Roux <
> > [hidden email]> wrote:
> >
> > > It should work, send us more of your log around the error. Did you check
> > > carefully your jpos.xml file ?
> > >
> > > Jacques
> > >
> > > From: "Branden Strickland" <[hidden email]>
> > >
> > >  Hello all, hope everyone is well.
> > > >
> > > > I'm getting the typical "message: Service does not exist in loaded JCL
> > > > registry" apon booting the POS, but i've changed my pos-container.xml
> > > > file
> > > > as stated below back to the NullReceipt setting.  It still won't boot.
> > > > (config file below)
> > > >
> > > > Would there be anything else stopping me?  Must I rebuild the
> > > > enviroment, or
> > > > something I'm missing?
> > > >
> > > > Thanks gents!
> > > >
> > > > <container name="jpos.device-container"
> > > > class="org.ofbiz.pos.container.JposDeviceContainer">
> > > >       <property name="CashDrawer.1" value="NullCashDrawer"/>
> > > >       <property name="Receipt" value="NullReceipt"/>
> > > >       <property name="Keyboard" value="GenericKeyboard"/>
> > > >       <property name="Scanner" value="GenericScanner"/>
> > > >       <property name="Msr" value="TestMsr"/>
> > > >       <property name="PinPad" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="Journal" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="LineDisplay" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="CheckScanner" value="[NOT IMPLEMENTED]"/>
> > > >       <property name="SignatureCapture" value="[NOT IMPLEMENTED]"/>
> > > >   </container>
> > > >
> > > >
>