Re: Party invitation, emails?

2011-03-28 Thread pankaj savita
 Hi Luca,
 For Sending Party Invitation via email you also need to create email
template that you want to send. May be this code could help you.
 First Create your email template...say
D:\workspace\ofbiz\hot-deploy\testproject\templates\email\testEmailTemplate.ftl
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8/

div class=logo LOGO HERE... /div
 /head
body
p class=tabletextSimply click the link below to sign up!/p
 a
href=${baseUrl}/control/verifyemail?partyInvitationId=${parameters.partyInvitationId}${baseUrl}/control/verifyemail/a
 p class=tabletextPrivacy Policy/p
/body
 /html

Controller entry:
request-map uri=createTestInvitation
security https=false auth=true/
event type=service invoke=createTestInvitation/
response name=success type=view value=testInvites/
/request-map
Service Definition entry:
service name=createTestInvitation engine=simple
location=com/invites/TestInviteServices.xml
invoke=createTestInvitation
attribute name=emailAddress type=String mode=IN
optional=false/
attribute name=toName type=String mode=IN optional=false/
attribute name=partyIdFrom type=String mode=IN
optional=false/
/service
Simple Method entry:
simple-method method-name=createTestInvitation short-description=Creates
a Invitation
set field=findPartyCtx.address
from-field=parameters.emailAddress/
call-service service-name=findPartyFromEmailAddress
in-map-name=findPartyCtx
result-to-field result-name=partyId
field-name=parameters.partyId/
/call-service
if-not-empty field-name=parameters.partyId
entity-one entity-name=PartyRole value-name=partyRole
field-map field-name=partyId
env-name=parameters.partyId/
field-map field-name=roleTypeId value=TESTTYPE/!--
Here plz change ur roletypeid--
/entity-one
/if-not-empty
if-empty field-name=partyRole
set field=createTestInvitationCtx.partyId
from-field=parameters.partyId/
set field=createTestInvitationCtx.partyIdFrom
from-field=parameters.partyIdFrom/
set field=createTestInvitationCtx.emailAddress
from-field=parameters.emailAddress/
set field=createTestInvitationCtx.toName
from-field=parameters.toName/
set field=createTestInvitationCtx.statusId
value=PARTYINV_SENT/
call-service service-name=createPartyInvitation
in-map-name=createTestInvitationCtx
result-to-field result-name=partyInvitationId
field-name=parameters.partyInvitationId/
/call-service
set field=createPartyInvRoleAssocCtx.partyInvitationId
from-field=parameters.partyInvitationId/
set field=createPartyInvRoleAssocCtx.roleTypeId
value=TESTTYPE/!-- Here plz change ur roletypeid--
call-service service-name=createPartyInvitationRoleAssoc
in-map-name=createPartyInvRoleAssocCtx/

!-- Send Invitation Email --
entity-and entity-name=ProductStoreEmailSetting
list-name=productStoreEmailSettings
 field-map field-name=emailType
value=PRDS_PARTYINV_EMAIL/
/entity-and
first-from-list list-name=productStoreEmailSettings
entry-name=storeEmail/
if-not-empty field-name=bodyScreenLocation
map-name=storeEmail
set field=bodyParameters.partyInvitationId
from-field=parameters.partyInvitationId/set
set field=emailParams.sendTo
from-field=parameters.emailAddress/
set field=emailParams.subject
from-field=storeEmail.subject/
set field=emailParams.sendFrom
from-field=storeEmail.fromAddress/
set field=emailParams.sendCc
from-field=storeEmail.ccAddress/
set field=emailParams.sendBcc
from-field=storeEmail.bccAddress/
set field=emailParams.contentType
from-field=storeEmail.contentType/
set field=emailParams.bodyParameters
from-field=bodyParameters/
set field=emailParams.bodyScreenUri
from-field=storeEmail.bodyScreenLocation/
map-to-map to-map-name=emailParams.bodyParameters
map-name=bodyParameters/
call-service-asynch service-name=sendMailFromScreen
in-map-name=emailParams/
/if-not-empty
/if-empty
/simple-method

Now do the email settings in general.properties file..
https://cwiki.apache.org/OFBTECH/apache-ofbiz-technical-production-setup-guide.html
 Hope this could help you..

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Mon, Mar 28, 2011 at 8:26 AM, Luca Zago luca.z...@gmail.com wrote:

 Hi,
 I didn't find any documentation, or notes about the Party Invitation
 functionality.
 Actually from the code i can see that creating

Re: Party invitation, emails?

2011-03-28 Thread pankaj savita
Yes  Luca you can customize it using OFBiz. Its all there in OFBiz.

Sorry I missed to mention this

Basically *ProductStorePaymentSetting *is an Entity that stores information
and some configuration settings needed to send mail. Based on productStoreId
and emailType we fetch all this informations.



FYI all other configuration settings to send mail done in general.properties
file.

You need to prepare demo store data for that first.

Reffer : ofbiz-10.04\specialpurpose\ecommerce\data\DemoProduct.xml



To load demo data you also need to do entry in your ofbiz-component.xml

entity-resource type=data reader-name=demo loader=main
location=data/DemoProduct.xml/



If you want you can also write Event in java to send mail : Reffer *
tellAFriend* event in
ofbiz-10.04\applications\product\src\org\ofbiz\product\product\ProductEvent.java



You can study *sendMailFromScreen* Service in EmailServices class

ofbiz-10.04\framework\common\src\org\ofbiz\common\email\EmailServices.java



-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com



On Mon, Mar 28, 2011 at 8:54 PM, Luca Zago luca.z...@gmail.com wrote:

 really thanks a lot!
 I supposed i should write some code to make it working, and i imagine, i
 can 'extend'
 in this way the default application, not to re write the screens.  Is it a
 bad practice?
 One additional question, what is the productStoreEmailSettings you used in
 the code,
 is it the map where the email configuration settings are stored?

 regards,
 Luca


 On Mon, Mar 28, 2011 at 9:19 AM, pankaj savita pankajsav...@gmail.comwrote:

  Hi Luca,
  For Sending Party Invitation via email you also need to create email
 template that you want to send. May be this code could help you.
  First Create your email template...say

 D:\workspace\ofbiz\hot-deploy\testproject\templates\email\testEmailTemplate.ftl
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
 head
  meta http-equiv=Content-Type content=text/html; charset=UTF-8/

 div class=logo LOGO HERE... /div
  /head
 body
 p class=tabletextSimply click the link below to sign up!/p
  a

 href=${baseUrl}/control/verifyemail?partyInvitationId=${parameters.partyInvitationId}${baseUrl}/control/verifyemail/a
  p class=tabletextPrivacy Policy/p
 /body
  /html

 Controller entry:
request-map uri=createTestInvitation
security https=false auth=true/
event type=service invoke=createTestInvitation/
response name=success type=view value=testInvites/
/request-map
 Service Definition entry:
service name=createTestInvitation engine=simple
location=com/invites/TestInviteServices.xml
 invoke=createTestInvitation
attribute name=emailAddress type=String mode=IN
 optional=false/
attribute name=toName type=String mode=IN optional=false/
attribute name=partyIdFrom type=String mode=IN
 optional=false/
/service
 Simple Method entry:
 simple-method method-name=createTestInvitation
 short-description=Creates
 a Invitation
set field=findPartyCtx.address
 from-field=parameters.emailAddress/
call-service service-name=findPartyFromEmailAddress
 in-map-name=findPartyCtx
result-to-field result-name=partyId
 field-name=parameters.partyId/
/call-service
if-not-empty field-name=parameters.partyId
entity-one entity-name=PartyRole value-name=partyRole
field-map field-name=partyId
 env-name=parameters.partyId/
field-map field-name=roleTypeId value=TESTTYPE/!--
 Here plz change ur roletypeid--
/entity-one
/if-not-empty
if-empty field-name=partyRole
set field=createTestInvitationCtx.partyId
 from-field=parameters.partyId/
set field=createTestInvitationCtx.partyIdFrom
 from-field=parameters.partyIdFrom/
set field=createTestInvitationCtx.emailAddress
 from-field=parameters.emailAddress/
set field=createTestInvitationCtx.toName
 from-field=parameters.toName/
set field=createTestInvitationCtx.statusId
 value=PARTYINV_SENT/
call-service service-name=createPartyInvitation
 in-map-name=createTestInvitationCtx
result-to-field result-name=partyInvitationId
 field-name=parameters.partyInvitationId/
/call-service
set field=createPartyInvRoleAssocCtx.partyInvitationId
 from-field=parameters.partyInvitationId/
set field=createPartyInvRoleAssocCtx.roleTypeId
 value=TESTTYPE/!-- Here plz change ur roletypeid--
call-service service-name=createPartyInvitationRoleAssoc
 in-map-name=createPartyInvRoleAssocCtx/

!-- Send Invitation Email --
entity-and entity-name=ProductStoreEmailSetting
 list-name=productStoreEmailSettings
 field-map field-name=emailType
 value=PRDS_PARTYINV_EMAIL

Re: Attaching a PDF to a FO-FTL generated PDF

2010-12-11 Thread pankaj savita
Hi James,

   One Solution is that you can modify your PDF once FOP is done with
it. First you need to convert the PDF's in Byte Array.
   Then this Utility Class to Merge Multiple PDF's will help you. Its
takes the list of Byte Array  returns a
   Byte Array after Merging in a sequence passed by you.


import java.io.ByteArrayOutputStream;
import java.util.Iterator;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.lowagie.text.Document;
import com.lowagie.text.pdf.PdfCopy;
import com.lowagie.text.pdf.PdfImportedPage;
import com.lowagie.text.pdf.PdfReader;

@SuppressWarnings(unchecked)
public class MergePDFs {
private static Logger logger = LoggerFactory.getLogger(MergePDFs.class);
private ByteArrayOutputStream outStream = new ByteArrayOutputStream();
private Document document = null;
private PdfCopy  writer = null;

public byte[] mergePdfs(List pdfList) {
byte[] array = null;
try {
if(logger.isDebugEnabled()) logger.debug(Inside mergePdfs
method. Number of documents to merge :  + pdfList.size());
Iterator iteratorPDFs = pdfList.iterator();
while(iteratorPDFs.hasNext()){
byte[] byteArray = (byte[]) iteratorPDFs.next();
addToPDF(byteArray);
}
closeDocs();
array = getMergedPdfByteArray();
if(null != array) {
if(logger.isDebugEnabled()) logger.debug(Got merged pdf.
Length is  + array.length +  bytes.);
} else {
if(logger.isDebugEnabled()) logger.debug(Merge byte array
is:  + array);
}
}
catch (Exception e) {
if(logger.isDebugEnabled()) logger.error(Exception occured
while merging pdfs. Exception : + e.toString());
}
return array;
}

public byte[] getMergedPdfByteArray()
{
if (outStream != null)
{
if(logger.isDebugEnabled()) logger.debug(Inside
getMergedPdfByteArray.);
return this.getOutStream().toByteArray();
}
else
{
return null;
}
}

public void addToPDF(byte[] pdfByteArray) {
try {
PdfReader reader = new PdfReader(pdfByteArray);
int numberOfPages = reader.getNumberOfPages();

if (document == null) {
document = new Document(reader.getPageSizeWithRotation(1));
writer = new PdfCopy(document, outStream);
document.open();
}

PdfImportedPage page;
for (int i = 0; i  numberOfPages;) {
++i;
page = writer.getImportedPage(reader, i);
writer.addPage(page);
}
}
catch (Exception e) {
if(logger.isDebugEnabled()) logger.error(Exception occured
while adding byte array to PDF. Exception : + e.toString());
}
}

public void closeDocs() {
try {
if(logger.isDebugEnabled()) logger.debug(Close document 
outStream);
document.close();
outStream.close();
}
catch (Exception e) {
if(logger.isDebugEnabled()) logger.error(Exception occured
while closeDocs method. Exception : + e.toString());
}
}

public ByteArrayOutputStream getOutStream() {
return outStream;
}
}

Another option as David has suggested, combine the XSL:FO files before the
FOP rendering to a single PDF file. You can try if you have knowledge of
XSL:FO.

Hope this will help you.


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com





On Thu, Dec 9, 2010 at 2:36 PM, David E Jones d...@me.com wrote:


 Yes, there are a few libraries that can combine PDFs (iText is another
 one), and there is another option too: combine the XSL:FO files before the
 FOP rendering to a single PDF file. To do that you'll have to create your
 own decorator that allows for multiple page sequences, and so on. I had the
 pleasure of doing this to get sales order and invoice into a single document
 and it worked fine, and is only a bit of a pain... ;)

 -David


 On Dec 8, 2010, at 10:44 PM, Scott Gray wrote:

  Hi James,
 
  It's unlikely because PDF is just an output format for FOP.  You'd
 probably need to find a separate library that can modify the pdf once FOP is
 done with it.
 
  Try Apache PDFBox (http://pdfbox.apache.org/) the main page mentions a
 feature to merge PDF docs.
 
  Regards
  Scott
 
  HotWax Media
  http://www.hotwaxmedia.com
 
  On 9/12/2010, at 10:40 AM, James McGill wrote:
 
  I have a situation where I need to generate a PDF (purchase order
  document), but also attach another PDF document to the end of it.  I
  can't generate this document via PDF, I just want to append it so that
  when you get the order, you get this page as well.
 
  Can FO-FTL handle this?
 
  --
  James McGill
  Phoenix AZ
 




Re: Ofbiz Version 9.04 Issue for the Strings with Special Characters

2010-12-10 Thread pankaj savita
Hi Deepa,

Service 'IN' parameters are validated. Default is allow-html=none. So
you must try this:

1) attribute name=scanResult type=String mode=IN optional=false
alllow-html=safe/
or
2) attribute name=scanResult type=String mode=IN optional=false
alllow-html=any/

   This will allow Special Characters.


 --
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com



On Wed, Dec 8, 2010 at 5:34 PM, Deepa Priolkar dee...@techmahindra.comwrote:

 Hi,



 I am trying to invoke one of my service as webservice by exporting it.



 The input parameters for this service is Strings, snippet of the code



 service name=updateScanResult export=true auth=false
 engine=java

location=org.pci.scan.services.ASVScanService
 invoke=updateASVScanResult

descriptionInternalize the scan result and store components in
 the persistent store/description

attribute name=scanResult type=String mode=IN
 optional=false/

 /service



 I am passing some Strings like NexposeReport
 version=\1.0\scansscan id=\4\ name=\finalScanName\ /



 But for above input I am getting error message,

 org.ofbiz.service.ServiceValidationException: In field [scanResult]
 less-than () and greater-than () symbols are not allowed



 I am totally stuck because of this issue.



 Thanks in advance.



 Regards,

 Deepa






 Disclaimer:
  This message and the information contained herein is proprietary and
 confidential and subject to the Tech Mahindra policy statement, you may
 review the policy at a href=http://www.techmahindra.com/Disclaimer.html
 http://www.techmahindra.com/Disclaimer.html/a externally and a href=
 http://tim.techmahindra.com/Disclaimer.html;
 http://tim.techmahindra.com/Disclaimer.html/a internally within Tech
 Mahindra.



Re: Event Service

2010-12-06 Thread pankaj savita
Hi Jacques,

One more point can be added...
In Service we can perform additional check for authentication. After
controller it will recheck for auth=true in service.
But in Event we don't have this facility, Events are called directly form
the controller.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Sun, Dec 5, 2010 at 4:39 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 Done at
 https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Miscellaneous
 from http://markmail.org/message/bie7fqs4f6bk6ykx

 Really a beautiful piece of simple collaboration

 Thanks guys!

 Jacques

 From: Jacques Le Roux jacques.le.r...@les7arts.com

  This thread contains a pretty complete definition of event vs service. I
 will try to put this in FAQ... some day...

 Thanks guys!

 Jacques

 From: Bilgin Ibryam bibr...@gmail.com

 Hans Bakker wrote:

 An event is specific local piece functionality normally used in one
 place for one purpose and called from its location.

 A service is a piece of functionality which can be located anywhere on
 the network, is most of time used in several different places and is
 called by its 'name'

 Regards,
 Hans

  In addition, in case of events you have access to HttpServletRequest
 and HttpServletResponse obejcts and you can read/write whatever you want.
 In case of services, you have access only to service parameters.

 Bilgin







Re: Modify the Did You Know? screenlet content

2010-10-20 Thread pankaj savita
In ofbiz10.04\specialpurpose\ecommerce\webapp\ecommerce\content\factoids.ftl
file.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476

2010/10/20 Juan Jesús Cremades Monserrat relic...@gmail.com

 Hi!

 I want to modify the widget Did you know in my main eCommerce portal.
 Where in the admin tool must I go? Thanks





Mail to: pankajsav...@gmail.com


Re: Modify the Did You Know? screenlet content

2010-10-20 Thread pankaj savita
Also look at ProductPromo Entity, there promoText filed contains information
that are displayed in Special Offers div.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Wed, Oct 20, 2010 at 5:15 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 BTW, a contribution would be appreciated

 Thanks

 Jacques


 Jacques Le Roux wrote:

 Have a look at DemoProductI18nData.xml

 Jacques

 Juan Jesús Cremades Monserrat wrote:

 Mmm, not exactly. At the demo data I have:

Did you know?
   * The resale value of widgets after five years is 46% higher than that
 of
 competitors.
   * Did you know that widget users live twice as long as their non-widget
 counterparts?

 If I want to modify this sentences/information, exists some tool in the
 manager? The same in blocks like Special Offers

 Thanks!!

 2010/10/20 pankaj savita pankajsav...@gmail.com

  In

 ofbiz10.04\specialpurpose\ecommerce\webapp\ecommerce\content\factoids.ftl
 file.

 --
 Thanks  Regards,
 Pankaj Savita
 Mob: +91 9890262476

 2010/10/20 Juan Jesús Cremades Monserrat relic...@gmail.com

  Hi!

 I want to modify the widget Did you know in my main eCommerce portal.
 Where in the admin tool must I go? Thanks





 Mail to: pankajsav...@gmail.com






Re: Deploying ofbiz10.04 on Jboss-4.2.2 using oracle10g

2010-10-19 Thread pankaj savita
Hi Jacques,

I have followed all the steps to deploy OFBiz on Jboss application server
using oracle given in:
https://cwiki.apache.org/confluence/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers

Used localoracle in entityengine.xml.

Created new file oracle-ds.xml in
ofbiz10.04\framework\appserver\templates\jboss422\patches folder  also
jboss-4.2.2.GA\server\default\deploy folder with following entries:
 jndi-nameOFBizDS/jndi-name
 connection-urljdbc:oracle:thin:@127.0.0.1:1521:XE/connection-url
 driver-classoracle.jdbc.driver.OracleDriver/driver-class
 user-nameofbiz/user-name
 passwordofbiz/password
 mbean code=org.jboss.jdbc.HypersonicDatabase
name=jboss:service=OFBiz/

Changed build.xml file for oracle as:
target name=generate depends=installOracle description=/
target name=installOracle depends=clean
!-- install oracle --
copy file=${ofbizHome}/framework/entity/lib/jdbc/ojdbc14.jar
todir=../../lib//

copy todir=.
fileset
dir=${ofbizHome}/framework/appserver/templates/jboss422/patches/
include name=oracle*.xml/
/fileset
/copy
/target

When I start Jboss server by run.bat, resulting in Error configuring
ControlEventListener.
Some Error logs given below

2010-10-19 11:06:09,921 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/accounting]]
Error configuring application listener of class
org.ofbiz.webapp.control.ControlEventListener
java.lang.ClassNotFoundException:
org.ofbiz.webapp.control.ControlEventListener
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
.
.
2010-10-19 11:06:09,921 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/accounting]]
Error configuring application listener of class
org.ofbiz.webapp.control.LoginEventListener
java.lang.ClassNotFoundException:
org.ofbiz.webapp.control.LoginEventListener
..
.

2010-10-19 11:06:09,921 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/accounting]]
Skipped installing application listeners due to previous error(s)
2010-10-19 11:06:09,921 ERROR [org.apache.catalina.core.StandardContext]
Error listenerStart
2010-10-19 11:06:09,921 ERROR [org.apache.catalina.core.StandardContext]
Context [/accounting] startup failed due to previous errors
2010-10-19 11:06:09,937 DEBUG [org.jboss.web.WebModule] Starting failed
jboss.web.deployment:war=accounting.war,id=-86378835
2010-10-19 11:06:09,937 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2010-10-19 11:06:09,937 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2010-10-19 11:06:09,937 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
org.jboss.deployment.DeploymentException: URL file:/C:/IndusJDE/
jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ deployment
failed
at
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
.
.
2010-10-19 11:06:09,952 DEBUG
[org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for:
file:/C:/IndusJDE/jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/ -
file:/C:/IndusJDE/
jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/META-INF/application.xml
2010-10-19 11:06:09,952 ERROR
[org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment
listing:

--- Incompletely deployed packages ---
org.jboss.deployment.deploymenti...@fad9f6ad { url=file:/C:/IndusJDE/
jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ }
  deployer: MBeanProxyExt[jboss.web:service=WebServer]
  status: Deployment FAILED reason: URL file:/C:/IndusJDE/
jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/ deployment
failed
  state: FAILED
  watch: file:/C:/IndusJDE/
jboss-4.2.2.GA/server/default/deploy/ofbiz.ear/accounting.war/WEB-INF/web.xml
  altDD: null
  lastDeployed: 1287466569186
  lastModified: 1287404573060
  mbeans:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=accounting.war,id=-86378835
  State: FAILED



Is there something wrong in my JBoss Configuration? or something is missing?



-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com



On Mon, Oct 18, 2010 at 4:05 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 From: pankaj savita pankajsav...@gmail.com

  Hi,

 How to deploy ofbiz10.04 on Jboss-4.2.2 using oracle10g?
 I found documentation for deploying OFBiz on jboss-4.2.2 using derby
 database, But I need to use
 oracle10g as a database.

 https://cwiki.apache.org/confluence/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers


 Will It be done only by changing connection-url  driver-class from derby
 to
 oracle or anything else need

Re: web path address problem, Is it a bug?

2010-10-18 Thread pankaj savita
We just need to write URL
http://localhost:8080/practice/
then it internally append control/main to it.
It is defined in indes.jsp : %response.sendRedirect(control/main);%.


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Mon, Oct 18, 2010 at 9:34 AM, Atul Vani atul.v...@hotwaxmedia.comwrote:

 We generally use URLs of this type

 http://localhost:8080/practice/control/*


 So, the correct URL for main page would be


 http://localhost:8080/practice/control/main


 And for person page it would be


 http://localhost:8080/practice/control/person


 --
 Thanks  Regards
 Atul Vani
 Enterprise Software Developer
 HotWax Media Pvt. Ltd.
 http://www.hotwaxmedia.com/
 We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for
 yourself.


 Santosh Singh wrote:

 *Hi all,
 we are novice for ofbiz.*
 yesterday when we are trying  to create the Practice Application,
 noticed
 that
 on hitting the address in address bar of browser
 *http://localhost:8080/practice/control/person/main
 *or* http://localhost:8080/practice/control/main*, we got the same output
 of
 main page

 *http://localhost:8080/practice/control/main/person
 * or* http://localhost:8080/practice/main/person*, we got the same output
 of
 Person page.


 After a hrs of struggling found that it is also happens on the following
 links of demo site.

 *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus
 http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus*
 out put are same.
 again it repeated with this also.

 *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main
 http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main*
  *
 *Are we doing something wrong or silly mistakes? or it is a kind of bug
 some redirection problem or something else.

 Please guide us, your great help will be appreciated whole heartedly.

 Kashi, Himanshu  Santosh Singh.





Deploying ofbiz10.04 on Jboss-4.2.2 using oracle10g

2010-10-18 Thread pankaj savita
Hi,

How to deploy ofbiz10.04 on Jboss-4.2.2 using oracle10g?
I found documentation for deploying OFBiz on jboss-4.2.2 using derby
database, But I need to use
oracle10g as a database.
https://cwiki.apache.org/confluence/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers


Will It be done only by changing connection-url  driver-class from derby to
oracle or anything else need to be done?


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


Re: How to set Screen level viewIndex and viewSize specification for the reports

2010-10-14 Thread pankaj savita
 Try this:

 actions
  set field=viewIndex from-field=parameters.VIEW_INDEX
type=Integer default-value=0/
  set field=viewSize from-field=parameters.VIEW_SIZE type=Integer
default-value=1000/
 /actions

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Thu, May 20, 2010 at 7:57 PM, prasanthi_ofbiz 
prasanthi.sreeramjammise...@tcs.com wrote:


 Hi All,
 I want to show all the list of records in a single screen for Trial Balance
 report. I don't want to change global level. I tried with the below code in
 the screen but its not reflecting
  set field=viewIndex from-field=parameters.VIEW_INDEX type=Integer
 default-value=0/
  set field=viewSize value=1000 type=Integer default-value=1000/

 Help me out..

 Regards
 Prasanthi
 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/How-to-set-Screen-level-viewIndex-and-viewSize-specification-for-the-reports-tp2224634p2224634.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Entity engine compare columns

2010-10-11 Thread pankaj savita
Hi Varun,

You can make EntityCondition using:

EntityCondition.makeCondition(USER_LOGIN_ID,
EntityOperator.GREATER_THAN_EQUAL_TO, PARTY_ID)

or

EntityCondition.makeCondition(USER_LOGIN_ID,
EntityOperator.LESS_THAN_EQUAL_TO, PARTY_ID)


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Mon, Oct 11, 2010 at 4:40 PM, varun bhansaly vbhans...@gmail.com wrote:

 Hi,
 Is it possible to compare two columns using the entity engine,
 For eg, write a query like this -
 SELECT * FROM USER_LOGIN WHERE USER_LOGIN_ID  PARTY_ID

 --
 Regards,
 Varun Bhansaly



Re: Entity engine compare columns

2010-10-11 Thread pankaj savita
In entitymodel.xml partyId will be defined as:
   field name=partyId type=id-ne/field

 In java service you can get  compare using:
   String partyId = getPartyId(context);
   if (UtilValidate.isEmpty(partyId)) { //your code...}

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Mon, Oct 11, 2010 at 6:47 PM, varun bhansaly vbhans...@gmail.com wrote:

 Thanks, but I wish to compare two columns.
 BTW, if I write this in java service, what should be the type for partyId ?

 On Mon, Oct 11, 2010 at 6:43 PM, Chirag Manocha cmano...@emforium.com
 wrote:

  Hi Varun,
  Following will work for you :-
  EntityCondition.makeCondition(USER_LOGIN_ID,
  EntityJoinOperator.NOT_EQUAL, partyId)
 
  Regards
  --
  Chirag Manocha
  Emforium Software Pvt. Ltd. | ALL-IN Software
  +91-98735-47457 | +91-98263-19099
  Please don't print this Email unless you really need to - this will
  preserve trees on planet earth.
 
 
 
 
  From: pankaj savita pankajsav...@gmail.com
  To: user@ofbiz.apache.org
  Sent: Monday, October 11, 2010 6:12:44 PM
  Subject: Re: Entity engine compare columns
 
  Hi Varun,
 
  You can make EntityCondition using:
 
  EntityCondition.makeCondition(USER_LOGIN_ID,
  EntityOperator.GREATER_THAN_EQUAL_TO, PARTY_ID)
 
  or
 
  EntityCondition.makeCondition(USER_LOGIN_ID,
  EntityOperator.LESS_THAN_EQUAL_TO, PARTY_ID)
 
 
  --
  Thanks  Regards,
  Pankaj Savita
  Mob: +91 9890262476
  Mail to: pankajsav...@gmail.com
 
 
  On Mon, Oct 11, 2010 at 4:40 PM, varun bhansaly vbhans...@gmail.com
  wrote:
 
   Hi,
   Is it possible to compare two columns using the entity engine,
   For eg, write a query like this -
   SELECT * FROM USER_LOGIN WHERE USER_LOGIN_ID  PARTY_ID
  
   --
   Regards,
   Varun Bhansaly
  
 
 


 --
 Regards,
 Varun Bhansaly



Re: ./startofbiz.sh doesn't start : JDK problem ?

2010-10-06 Thread pankaj savita
Check your class path entries for ofbiz10.04:

JAVA_HOME
C:\Program Files\Java\jdk1.6.0_20

CLASSPATH
C:\Program Files\Java\jdk1.6.0_20\lib;C:\Program
Files\Java\jdk1.6.0_20\jre\lib

PATH
C:\Program Files\Java\jdk1.6.0_20\bin

Then try to bulid using ant run-install command if its build successfully
start the
server using java -jar ofbiz.jar.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com



On Wed, Oct 6, 2010 at 2:39 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 You must use Sun (arg Oracle ;o) OpenJDK does not work with OFBiz yet...
 Also try with ./ant rather (uses 1.7.1) I know there are some issues with
 1.8

 Jacques

 From: f...@free.fr

  Hello,

 Here is what I've done :
  svn co http://svn.apache.org/repos/asf/ofbiz/branches/release10.04
Ofbiz-10.04
  cd Ofbiz-10.04
  ant run-install

 Here, I'm using the Sun (well, Oracle) jdk on a linux Debian amd64 laptop
 :
  ~ § java -version
  java version 1.6.0_21
  Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
  Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
 The build is successful. Then, ./startofbiz.sh :

  Set OFBIZ_HOME to - /srv/www/Ofbiz-10.04
  Exception in thread main java.net.SocketException: Invalid argument
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
 at java.net.ServerSocket.bind(ServerSocket.java:319)
 at java.net.ServerSocket.init(ServerSocket.java:185)
 at org.ofbiz.base.start.Start.initListenerThread(Start.java:167)
 at org.ofbiz.base.start.Start.init(Start.java:93)
 at org.ofbiz.base.start.Start.main(Start.java:410)

 Same story with stable release 9.04.

 BUT, when I use OpenJDK :
  ~ § java -version
  java version 1.6.0_18
  OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-2)
  OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)

 9.04 builds successfully, and starts like a charm, whereas 10.04 fails
 to compile :

  build:
[echo] [build] == Start Building Framework (Compile) ==
  .../...
  classes:
   [javac16] /srv/www/Ofbiz-10.04/common.xml:93: warning:
 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
 to false for repeatable builds
   [javac16] Compiling 55 source files to
 /srv/www/Ofbiz-10.04/applications/product/build/classes
   [javac16]
 /srv/www/Ofbiz-10.04/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1231:
 cannot find symbol
   [javac16] symbol  : method
 add(java.util.Mapjava.lang.String,java.lang.Object)
   [javac16] location: interface
 java.util.Listjava.util.Mapjava.lang.String,java.lang.String
   [javac16]
 featureCountList.add(UtilMisc.toMap(productFeatureId, (String)
 searchResult.get(pfacProductFeatureId), productFeatureTypeId, (String)
 searchResult.get(pfcProductFeatureTypeId), description, (String)
 searchResult.get(pfcDescription), featureCount, Long.toString((Long)
 searchResult.get(featureCount;
   [javac16] ^
   [javac16] 1 error

  BUILD FAILED
  /srv/www/Ofbiz-10.04/build.xml:186: The following error occurred while
 executing this line:
  /srv/www/Ofbiz-10.04/applications/build.xml:67: The following error
 occurred while executing this line:
  /srv/www/Ofbiz-10.04/macros.xml:27: The following error occurred while
 executing this line:
  /srv/www/Ofbiz-10.04/common.xml:93: Compile failed; see the compiler
 error output for details.

 I'm using ant 1.8 :
  ~ § ant -version
  Apache Ant version 1.8.0 compiled on March 11 2010

 Any idea ?







Re: ./startofbiz.sh doesn't start : JDK problem ?

2010-10-06 Thread pankaj savita
Also make sure that your port 8080 is not used by another resource, to avoid
JVM bind problem.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Wed, Oct 6, 2010 at 2:58 PM, Christian Geisert 
christian.geis...@isu-gmbh.de wrote:

 f...@free.fr schrieb:

  Hello,

 Here is what I've done :
  svn co http://svn.apache.org/repos/asf/ofbiz/branches/release10.04
 Ofbiz-10.04
  cd Ofbiz-10.04
  ant run-install

 Here, I'm using the Sun (well, Oracle) jdk on a linux Debian amd64 laptop
 :
  ~ § java -version
  java version 1.6.0_21
  Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
  Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
 The build is successful. Then, ./startofbiz.sh :

  Set OFBIZ_HOME to - /srv/www/Ofbiz-10.04
  Exception in thread main java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.init(ServerSocket.java:185)
at org.ofbiz.base.start.Start.initListenerThread(Start.java:167)
at org.ofbiz.base.start.Start.init(Start.java:93)
at org.ofbiz.base.start.Start.main(Start.java:410)


 Have a look at the value ADMIN_PORT in startofbiz.sh, seems like something
 is wrong with this value.

 Regards
 Christian



Re: Users - Can any body of you update the new Freemarker Template jar file

2010-10-04 Thread pankaj savita
Hi Shereen,

   You can download freemarker jar from here:

   http://www.freemarker.org/eclipse/freemarker/plugins/


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Mon, Oct 4, 2010 at 2:40 PM, Shereen sheri_ash...@hotmail.com wrote:


 I'm searching for a freemarker eclipse plugin it will help me a lot writing
 ftl but I duno from where do download it would anyone please tell me a link
 where i can download this jar.?
 I searched in some other forums and links the gave me are no longer
 available.
 I'm using eclipse galileo
 Thanks a lot
 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/Users-Can-any-body-of-you-update-the-new-Freemarker-Template-jar-file-tp139177p2954010.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: want to know if any validation exists

2010-10-01 Thread pankaj savita
Hi Soumya,

   You can do validation in your simple method by using condition like:

   condition
or
and
notif-empty
field=parameters.thruDate//not
if-compare-field operator=less
field=timeEntry.fromDate to-field=parameters.thruDate/
/and
if-empty field=parameters.thruDate/
/or
/condition

 Refer
ofbiz10.04\applications\workeffort\script\org\ofbiz\workeffort\timesheet\TimesheetServices.xml


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Fri, Oct 1, 2010 at 5:01 PM, soumya jyoti guru somu.gur...@gmail.comwrote:

 Hi all,
I  am facing a problem while validating two dates used in the
 same form (start date, end date).I have written a code
 for create and there I had included two fields named as start date and
 end date.
   The problem is that the data gets created even if the start
 date=2010-09-30 and the end date=2010-09-01 which changes the meaning
 of the two fields.Can anybody suggest me a way to show a error
 message while this is done.
 with regards
 Soumya



Re: how is jndi used in ofbiz?

2010-09-27 Thread pankaj savita
Hi Chris,

This link could help you to understand OFBiz Setup  JNDI Configuration.

http://svn.apache.org/repos/asf/ofbiz/site/docs/config_deploy_maint.html


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com



On Sun, Sep 26, 2010 at 11:12 PM, chris snow chsnow...@gmail.com wrote:

 Hi BJ,

 I was specifically looking at 9.04, GeronimoContainer - it is binding
 the GeronimoTransactionManager to jndi:

InitialContext ic = new InitialContext();
ic.rebind(java:comp/UserTransaction, new
 GeronimoTransactionManager());

 But in the GeronimoTransactionFactory it looks like JNDI is bypassed:

   static {
// creates an instance of Geronimo transaction context, etc
 with a local transaction factory which is not bound to a registry
try {
transactionLog = new UnrecoverableLog();
geronimoTransactionManager = new
 GeronimoTransactionManager(defaultTransactionTimeoutSeconds,
 (XidFactory)new XidFactoryImpl(), transactionLog);
} catch (XAException e) {
Debug.logError(e, Error initializing Geronimo transaction
 manager:  + e.toString(), module);
}
}

 So is the JNDI binding not used?



Re: Form

2010-09-27 Thread pankaj savita
Hi Naveen,

 You can use entity-and to get the list of products.

 set field=productId
from-field=parameters.productId/
 entity-and entity-name=Product list=products
field-map field-name=productId/
order-by field-name=fromDate/
 /entity-and


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Mon, Sep 27, 2010 at 6:13 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 Have a look at the dependent dropdown in widget examples screen.

 Jacques

 From: Naveen Kumar naveen.new...@gmail.com

  Hi All,

 I have a scenario, where i want to fetch a list of values for a form
 field,
 based on the value in the previous field,
 can anyone suggest me how to implement this one.

 For Example:- In sales order creation, based on productId, I want a list
 of
 values, associated to that product,
 which will be dropdown values for another field in the same form.

 Regards,
 Naveen.





Re: upload a file and check by java event

2010-09-24 Thread pankaj savita
Hi Fai Kwong,

If you want to upload a file, No need to write code for uploading its
already present there in OFBiz framework.
You can also see functionality of uploading in party component. Create a
new party(person/customer) you   can see section 'Party Content' for browse
and uploading file. Just you have to select purpose  mime/type.
If you want to update click on link of party content created (say
10010). It takes you to the Parties/PARTY CONTENT tab there you can Edit 
upload another file.

Code flow can be started from 'createPartyContent' request in party
controller. There is a simple method
'createPartyContent' in
component://party/script/org/ofbiz/party/party/PartySimpleEvents.xml
file which  internally calls uploadImageAndParameters() method of class
'org.ofbiz.content.layout.LayoutWorker' which converts file into byte
arrray, then it calls service 'createPartyContent' which upload byte array
of the file to the Database.

You just need to go through the code. That can help you.

---
 Thanks  Regards,
Pankaj Savita
Mob: 09890262476
Email: 
pankajsav...@gmail.comhttp://redir.aspx/?C=172aa0592ccc4a40a7119b8b86b626f8URL=mailto%3apankajsavita%40gmail.com


On Fri, Sep 24, 2010 at 11:31 AM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 Fai Kwong,

 Beware you were sending your email to
 user-subscr...@ofbiz.apache.org
 user-unsubscr...@ofbiz.apache.org
 dev-subscr...@ofbiz.apache.org
 dev-unsubscr...@ofbiz.apache.org
 user@ofbiz.apache.org
 d...@ofbiz.apache.org
 y.kw...@hotmail.com

 I guess you wanted only user@ofbiz.apache.org
 Please check
 https://cwiki.apache.org/confluence/display/OFBADMIN/Mailing+Lists

 Jacques

 From: BJ Freeman bjf...@free-man.net

  if I understand you are asking about fileupload
 take a look at the code for uploading an image in the
 catatlog-product-content


 =
 BJ Freeman
 Strategic Power Office with Supplier Automation  
 http://www.businessesnetwork.com/automation/viewforum.php?f=52
 Specialtymarket.com  http://www.specialtymarket.com/
 Systems Integrator-- Glad to Assist

 Chat  Y! messenger: bjfr33man
 Fai Kwong sent the following on 9/23/2010 9:14 PM:



 Dear ofbiz,

 I would like to attach a file and check that by a java event. I have done
 that by the example module.

 https://weberp.dyndns-server.com:8443/example/control/main

 I have created the servlet page for the web and done some code in
 controller that call the java event, but my problem is that how the java
 file can read that attachment file?

 Here I also attached some of my code.







Re: Login default page questions

2010-09-23 Thread pankaj savita
 Hi Shereen,

   Currently ofbiz10.04 uses 'tomahawk' theme. In your case if there is
'bizznesstime' theme, No need to change framework/images.

You can customize default login page by first putting your images/logos
in *ofbiz10.04\themes\bizznesstime\webapp\bizznesstime\images* folder.

   Now you need to change image names in
*ofbiz10.04\themes\bizznesstime\webapp\bizznesstime\css\style.css
*file as per your image name.

   Let say you want to change header image of login page, put new image say
*loginchange.gif* in
*ofbiz10.04\themes\bizznesstime\webapp\bizznesstime\images
*folder.
   Just need to change image name in CSS file(*style.css)* like:

   #logo {
   background:transparent;
   height:43px;
   left:5px;
   position:absolute;
   top:2px;
   width:238px;
   z-index:8000;
   /*background:url(../images/logo.gif) top left no-repeat;*/
   background:url(../images/*loginchange.gif*) top left no-repeat;
   }

  Similarlly you can customize every images of different themes 'bluelight',
'flatgrey', 'droppingcrumbs', 'multiflex'  'tomahawk'  in the framework.

Thanks  Regards,
Pankaj Savita
Mob: 09890262476
Mail: 
pankajsav...@gmail.comredir.aspx?C=da898c16d0ae4839acfae7548f0c12e1URL=mailto%3apankajsavita%40gmail.com

redir.aspx?C=da898c16d0ae4839acfae7548f0c12e1URL=mailto%3apankajsavita%40gmail.com


On Thu, Sep 23, 2010 at 3:44 PM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 Looks like you are looking for 10.04...or trunk (leading edge)... or jQuery
 branch (bleeding edge)

 Jacques

 From: Shereen sheri_ash...@hotmail.com


 Hi all
 I want to customize the webtools default page and the login default page
 whatever themeI use those pages takes the bizznes theme.
 it seems a trivial question but I'm a very beginner. I want to change the
 logos and put mine I overrdie it in the framework/images folder and in the
 theme folder. but nothing happens.
 I've been able to change the header ,footer logos of lightblue theme but I
 cant change those 2 default welcome and login pages because they seemed to
 be using the other bizznesstheme so I've also override them in buzziness
 theme folder
 can anyone give me the page to the 2 default hme and login pages and guide
 me how can I remove their logos and cuztomize them?
 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/Login-default-page-questions-tp2551556p2551556.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.





-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


Re: ofbiz9.04

2010-09-23 Thread pankaj savita
Hi Gerardo,

Better way is to Install JDK1.6  set following as Environment Variables:

JAVA_HOME
C:\Program Files\Java\jdk1.6.0_20

CLASSPATH
C:\Program Files\Java\jdk1.6.0_20\lib;C:\Program
Files\Java\jdk1.6.0_20\jre\lib

PATH
C:\Program Files\Java\jdk1.6.0_20\bin

Then bulid using ant run-install command if its build successfully start the
server using java -jar ofbiz.jar.
Hope this could help you.

---
Regards,
Pankaj Savita
Mob: 09890262476
Email: pankajsav...@gmail.com

2010/9/24 Michał Cukierman of...@partbook.eu

 You have got wrong path. you should try:
 java -jar ofbiz.jar ...

 or smth like:
 c:\program files\java\sdk\\bin\java.exe

 The best thing fould be to install jdk 6.0 or add your current sdk to
 the PATH variable.

 Dnia 2010-09-23, czw o godzinie 09:49 -0700, Gerardo Valdez Andrade
 pisze:
 
  Hi,
 
  i try to install, ofbiz 09.04 but i get this error
 
 
 
  i'been installed : java-ee-sdk-5_01-windows
 
 
 
 
  someone could help me , please??
 
  best regards
 
  Gerardo Valdez Andrade
 




Re: Error

2010-09-17 Thread pankaj savita
Hi Gavin,

  These are scheduled jobs running by internal quartz job store of ofbiz. In
'org.ofbiz.service.job.JobPoller' class there is run() method
  which calls poll() method of 'org.ofbiz.service.job.JobManager' class. In
JobManager poll() method there in an update query fired on JOB_SANDBOX
  entity with current date time, since no record present in the entity of
current date time causes this error while committing the Transaction.

  I found a workaround for this problem, you can comment the entire code
inside of run() method of 'JobPoller' class, so that it
  will not call 'JobManager' poll() method. Now create a build of ofbiz
using ant run-install  use ofbiz.jar created with modified code.
  You will not see this Error. But it's a workaround. Can anyone provide a
fix for this into the trunk.


-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com


On Sun, Sep 12, 2010 at 7:14 PM, Gavin Mabie gavin.ma...@urbannex.co.zawrote:

 Hi



 Why would I get this error.  I get it every time I start ofbiz - and this
 without event logging on or opening ofbiz in a browser.  I am running
 09.04.





  (org.ofbiz.service.job.jobpol...@3fb6772a) [ JobManager.java:201:ERROR]
  exception report
 -- Transaction
 error
 trying to commit when polling and updating the JobSandbox:
 org.ofbiz.entity.transaction.GenericTransactionException: Roll back error
 (with no rollbackOnly cause found), could not commit transaction, was
 rolled
 back instead: javax.transaction.RollbackException: Transaction timeout
 (Transaction timeout) Exception:
 org.ofbiz.entity.transaction.GenericTransactionException Message: Roll back
 error (with no rollbackOnly cause found), could not commit transaction, was
 rolled back instead: javax.transaction.RollbackException: Transaction
 timeout (Transaction timeout)  cause
 -
 Exception: javax.transaction.RollbackException Message: Transaction timeout
  stack trace
 ---
 javax.transaction.RollbackException: Transaction timeout

 org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionIm
 pl.java:269)

 org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(Transa
 ctionManagerImpl.java:245)

 org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:209
 )

 org.ofbiz.entity.transaction.TransactionUtil.commit(TransactionUtil.java:195
 ) org.ofbiz.service.job.JobManager.poll(JobManager.java:197)
 org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
 java.lang.Thread.run(Unknown Source)

 
 



 Thanks






Re: unable to find ofbiz jar file

2010-09-16 Thread pankaj savita
Hi Umesh,

I also faced the same condition, when I took checkout of ofbiz10.04.
I run command ofbiz10.04ant run-install
if it Build Successfully, You will get the ofbiz.jar file in path *
ofbiz10.04/framework/start/lib/ofbiz.jar*
Copy the ofbiz.jar file from here to path *Ofbiz10.04/*
Now run command ofbiz10.04java -Xms128M -Xmx512M -jar ofbiz.jar
It will deploy ofbiz  start server.

I hope this could help you.

-- 
Thanks  Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: pankajsav...@gmail.com

On Wed, Sep 15, 2010 at 1:16 PM, UMESH KUSHWAH umesh60...@gmail.com wrote:


 Recently i downloaded ofbiz 9.04 version for windows.

 I installed mysql and java 6 and set the JAVA_HOME variable.

 I unpacked the ofbiz downloaded zip file to C drive. It created a directory
 'apache-ofbiz-09.04'.

 As per the documentation, i went to the above directory and executed
 'startofbiz.bat' command.

 But it gave the following error message.
 C:\apache-ofbiz-09.04C:\Program Files\Java\jdk1.6.0_21\bin\java -Xms128M
 -Xmx
 512M -jar ofbiz.jar
 Unable to access jarfile ofbiz.jar

 It's unable to find ofbiz.jar file.

 I also searched for ofbiz.jar file in entire apache-ofbiz-09.04 folder.
 It's
 not found.

 Where can i find that file? Hope it's part of the downloaded zip file.

 Please help.

 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/unable-to-find-ofbiz-jar-file-tp2540054p2540054.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: include-screen name=${detailScreen}/

2007-07-17 Thread pankaj savita

Hi,
   Just look at the flow in the screens.  For category-include screen
detailScreen parameter has been set in the context in the
category.bshwhich is invoked in the screen category.  The category
screen includes
screen category-include.
   For product the detailScreen parameter is set in context in the
product.bsh which is invoked in the product screen itself.

On 7/17/07, sqlien [EMAIL PROTECTED] wrote:



Hi all,

where is defined the screen that the variable ${detailScreen} point to ?

${detailScreen} is invoked in the file :
ecommerce/widget/CatalogScreen.xml

Thanks in advance
--
View this message in context:
http://www.nabble.com/%3Cinclude-screen-name%3D%22%24%7BdetailScreen%7D%22-%3E-tf4096557.html#a11648299
Sent from the OFBiz - User mailing list archive at Nabble.com.





--
Thanks  Regards

Pankaj Savita
HotWax Media Inc.
[EMAIL PROTECTED]
http://www.hotwaxmedia.com