I dont think to have loss a definition for jobsandbox, because my application with embedded application server work well without
problems....my version is 12.04.01...entityengine i dont remember...toomorow i'll tell you...thanks... Inviato da Samsung Mobile -------- Messaggio originale -------- Da: Jacques Le Roux <[hidden email]> Data: A: [hidden email] Oggetto: Re: problem with Jobsandbox during deploy You obvisously miss a definition for entity name JobSandbox. But I guess it's not your question. Did you set distributed-cache-clear-enabled="true" in your entityengine.xml file? Also which Release.revision are you using (or released version)? Jacques [hidden email] wrote: > Hi, i’m following this guide : > > https://cwiki.apache.org/confluence/display/OFBTECH/Glassfish+v2.1 > > my application is > > but during deploy of my ‘ofbiz.ear’ the server have this error : > > > server.log : > > > [#|2013-10-17T17:29:50.528+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=AsyncAppender-Dispatcher-Thread-29;|2013-10-17 > 17:29:50,275 (org.ofbiz.service.job.JobPoller@46938420) [ GenericDelegator.java:396:ERROR] > ---- exception report ---------------------------------------------------------- > Error getting entity definition from model > Exception: org.ofbiz.entity.GenericModelException > Message: Could not find definition for entity name JobSandbox > ---- stack trace --------------------------------------------------------------- > org.ofbiz.entity.GenericModelException: Could not find definition for entity name JobSandbox > org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:499) > org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:394) > org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2134) > org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2125) > org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1280) > org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1265) > org.ofbiz.service.job.JobManager.poll(JobManager.java:156) > org.ofbiz.service.job.JobPoller.run(JobPoller.java:90) > java.lang.Thread.run(Thread.java:662) > -------------------------------------------------------------------------------- > > what’s the problem?? > Thanks... |
Changing my entityengine.xml setting my 'parameter
distributed-cache-clear-enabled = true' of delegator , i've solve the 'jobsandbox' problem, but i've other problems like this during deploy: [#|2013-10-18T12:03:06.633+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=AsyncAppender-Dispatcher-Thread-25;|2013-10-18 12:03:06,632 (OFBiz-config-0) [ ResourceLoader.java:187:ERROR] The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. ....... ....... ---- exception report ---------------------------------------------------------- Exception: java.util.concurrent.ExecutionException Message: java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. org.ofbiz.base.config.ResourceLoader.fullLocation(ResourceLoader.java:188) org.ofbiz.base.config.FileLoader.getURL(FileLoader.java:34) org.ofbiz.base.config.FileLoader.loadResource(FileLoader.java:46) org.ofbiz.base.config.ResourceLoader.loadResource(ResourceLoader.java:49) org.ofbiz.base.config.MainResourceHandler.getStream(MainResourceHandler.java:76) org.ofbiz.base.config.MainResourceHandler.getDocument(MainResourceHandler.java:65) org.ofbiz.entity.model.ModelFieldTypeReader.getModelFieldTypeReader(ModelFieldTypeReader.java:86) org.ofbiz.entity.GenericDelegator.initializeOneGenericHelper(GenericDelegator.java:268) org.ofbiz.entity.GenericDelegator.access$000(GenericDelegator.java:91) org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:289) org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:287) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) java.lang.Thread.run(Thread.java:662) -------------------------------------------------------------------------------- |#] [#|2013-10-18T12:03:06.640+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=AsyncAppender-Dispatcher-Thread-25;|2013-10-18 12:03:06,639 (pool-1-thread-7) [ ExecutionPool.java:87 :ERROR] ---- exception report ---------------------------------------------------------- Exception: java.util.concurrent.ExecutionException Message: java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. ---- cause --------------------------------------------------------------------- Exception: java.lang.IllegalArgumentException Message: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. ---- stack trace --------------------------------------------------------------- java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. org.ofbiz.base.config.ResourceLoader.fullLocation(ResourceLoader.java:188) org.ofbiz.base.config.FileLoader.getURL(FileLoader.java:34) org.ofbiz.base.config.FileLoader.loadResource(FileLoader.java:46) org.ofbiz.base.config.ResourceLoader.loadResource(ResourceLoader.java:49) org.ofbiz.base.config.MainResourceHandler.getStream(MainResourceHandler.java:76) org.ofbiz.base.config.MainResourceHandler.getDocument(MainResourceHandler.java:65) org.ofbiz.entity.model.ModelFieldTypeReader.getModelFieldTypeReader(ModelFieldTypeReader.java:86) org.ofbiz.entity.GenericDelegator.initializeOneGenericHelper(GenericDelegator.java:268) org.ofbiz.entity.GenericDelegator.access$000(GenericDelegator.java:91) org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:289) org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:287) java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) java.util.concurrent.FutureTask.run(FutureTask.java:138) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) java.lang.Thread.run(Thread.java:662) -------------------------------------------------------------------------------- |#] -----Original Message----- From: g.fitini Sent: Thursday, October 17, 2013 11:34 PM To: [hidden email] Subject: R: Re: problem with Jobsandbox during deploy I dont think to have loss a definition for jobsandbox, because my application with embedded application server work well without problems....my version is 12.04.01...entityengine i dont remember...toomorow i'll tell you...thanks... Inviato da Samsung Mobile -------- Messaggio originale -------- Da: Jacques Le Roux <[hidden email]> Data: A: [hidden email] Oggetto: Re: problem with Jobsandbox during deploy You obvisously miss a definition for entity name JobSandbox. But I guess it's not your question. Did you set distributed-cache-clear-enabled="true" in your entityengine.xml file? Also which Release.revision are you using (or released version)? Jacques [hidden email] wrote: > Hi, i’m following this guide : > > https://cwiki.apache.org/confluence/display/OFBTECH/Glassfish+v2.1 > > my application is > > but during deploy of my ‘ofbiz.ear’ the server have this error : > > > server.log : > > > [#|2013-10-17T17:29:50.528+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=AsyncAppender-Dispatcher-Thread-29;|2013-10-17 > 17:29:50,275 (org.ofbiz.service.job.JobPoller@46938420) [ > GenericDelegator.java:396:ERROR] > ---- exception > report ---------------------------------------------------------- > Error getting entity definition from model > Exception: org.ofbiz.entity.GenericModelException > Message: Could not find definition for entity name JobSandbox > ---- stack > trace --------------------------------------------------------------- > org.ofbiz.entity.GenericModelException: Could not find definition for > entity name JobSandbox > org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:499) > org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:394) > org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2134) > org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2125) > org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1280) > org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1265) > org.ofbiz.service.job.JobManager.poll(JobManager.java:156) > org.ofbiz.service.job.JobPoller.run(JobPoller.java:90) > java.lang.Thread.run(Thread.java:662) > -------------------------------------------------------------------------------- > > what’s the problem?? > Thanks... |
Administrator
|
You should have not set distributed-cache-clear-enabled = 'true' unless you operates a cluster and follows https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+Mechanism
Note: it's not distributed-cache-clear-enabled = true' but distributed-cache-clear-enabled = 'true' (note the 1st quote) So, considering the 1st issue you reported (if you have no DCC in place, which I suspect) there must be another issue. Replace distributed-cache-clear-enabled = 'true' by false. Then check the job/s you are running, do you need any for your 1st installation try? Running any jobs should prevent this issue. But you will need to understand why it happens anyway, because you will need JobSandbox for jobs and async services Also I recommend to use the last 12.04 version (12.04.02) even if it's certainly not related to your problem. Also try with trunk... who knows... Jacques [hidden email] wrote: > Changing my entityengine.xml setting my 'parameter > distributed-cache-clear-enabled = true' of delegator , i've solve the > 'jobsandbox' problem, but i've other problems like this during deploy: > > [#|2013-10-18T12:03:06.633+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=AsyncAppender-Dispatcher-Thread-25;|2013-10-18 > 12:03:06,632 (OFBiz-config-0) [ ResourceLoader.java:187:ERROR] The Java > environment (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot > load resource. > > ....... > ....... > > ---- exception > report ---------------------------------------------------------- > Exception: java.util.concurrent.ExecutionException > Message: java.lang.IllegalArgumentException: The Java environment > (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. > ---- > cause --------------------------------------------------------------------- > Exception: java.lang.IllegalArgumentException > Message: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is > not set, cannot load resource. > ---- stack > trace --------------------------------------------------------------- > java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) > variable with name ofbiz.home is not set, cannot load resource. > org.ofbiz.base.config.ResourceLoader.fullLocation(ResourceLoader.java:188) > org.ofbiz.base.config.FileLoader.getURL(FileLoader.java:34) > org.ofbiz.base.config.FileLoader.loadResource(FileLoader.java:46) > org.ofbiz.base.config.ResourceLoader.loadResource(ResourceLoader.java:49) > org.ofbiz.base.config.MainResourceHandler.getStream(MainResourceHandler.java:76) > org.ofbiz.base.config.MainResourceHandler.getDocument(MainResourceHandler.java:65) > org.ofbiz.entity.model.ModelFieldTypeReader.getModelFieldTypeReader(ModelFieldTypeReader.java:86) > org.ofbiz.entity.GenericDelegator.initializeOneGenericHelper(GenericDelegator.java:268) > org.ofbiz.entity.GenericDelegator.access$000(GenericDelegator.java:91) > org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:289) > org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:287) > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > java.util.concurrent.FutureTask.run(FutureTask.java:138) > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > java.lang.Thread.run(Thread.java:662) > -------------------------------------------------------------------------------- > >> #] > > [#|2013-10-18T12:03:06.640+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=AsyncAppender-Dispatcher-Thread-25;|2013-10-18 > 12:03:06,639 (pool-1-thread-7) [ ExecutionPool.java:87 :ERROR] > ---- exception > report ---------------------------------------------------------- > Exception: java.util.concurrent.ExecutionException > Message: java.lang.IllegalArgumentException: The Java environment > (-Dxxx=yyy) variable with name ofbiz.home is not set, cannot load resource. > ---- > cause --------------------------------------------------------------------- > Exception: java.lang.IllegalArgumentException > Message: The Java environment (-Dxxx=yyy) variable with name ofbiz.home is > not set, cannot load resource. > ---- stack > trace --------------------------------------------------------------- > java.lang.IllegalArgumentException: The Java environment (-Dxxx=yyy) > variable with name ofbiz.home is not set, cannot load resource. > org.ofbiz.base.config.ResourceLoader.fullLocation(ResourceLoader.java:188) > org.ofbiz.base.config.FileLoader.getURL(FileLoader.java:34) > org.ofbiz.base.config.FileLoader.loadResource(FileLoader.java:46) > org.ofbiz.base.config.ResourceLoader.loadResource(ResourceLoader.java:49) > org.ofbiz.base.config.MainResourceHandler.getStream(MainResourceHandler.java:76) > org.ofbiz.base.config.MainResourceHandler.getDocument(MainResourceHandler.java:65) > org.ofbiz.entity.model.ModelFieldTypeReader.getModelFieldTypeReader(ModelFieldTypeReader.java:86) > org.ofbiz.entity.GenericDelegator.initializeOneGenericHelper(GenericDelegator.java:268) > org.ofbiz.entity.GenericDelegator.access$000(GenericDelegator.java:91) > org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:289) > org.ofbiz.entity.GenericDelegator$1.call(GenericDelegator.java:287) > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > java.util.concurrent.FutureTask.run(FutureTask.java:138) > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > java.lang.Thread.run(Thread.java:662) > -------------------------------------------------------------------------------- > >> #] > > -----Original Message----- > From: g.fitini > Sent: Thursday, October 17, 2013 11:34 PM > To: [hidden email] > Subject: R: Re: problem with Jobsandbox during deploy > > I dont think to have loss a definition for jobsandbox, because my > application with embedded application server work well without > problems....my version is 12.04.01...entityengine i dont remember...toomorow > i'll tell you...thanks... > > Inviato da Samsung Mobile > > -------- Messaggio originale -------- > Da: Jacques Le Roux <[hidden email]> > Data: > A: [hidden email] > Oggetto: Re: problem with Jobsandbox during deploy > > You obvisously miss a definition for entity name JobSandbox. But I guess > it's not your question. > Did you set distributed-cache-clear-enabled="true" in your entityengine.xml > file? > Also which Release.revision are you using (or released version)? > > Jacques > > [hidden email] wrote: >> Hi, i’m following this guide : >> >> https://cwiki.apache.org/confluence/display/OFBTECH/Glassfish+v2.1 >> >> my application is >> >> but during deploy of my ‘ofbiz.ear’ the server have this error : >> >> >> server.log : >> >> >> [#|2013-10-17T17:29:50.528+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=17;_ThreadName=AsyncAppender-Dispatcher-Thread-29;|2013-10-17 >> 17:29:50,275 (org.ofbiz.service.job.JobPoller@46938420) [ >> GenericDelegator.java:396:ERROR] >> ---- exception >> report ---------------------------------------------------------- >> Error getting entity definition from model >> Exception: org.ofbiz.entity.GenericModelException >> Message: Could not find definition for entity name JobSandbox >> ---- stack >> trace --------------------------------------------------------------- >> org.ofbiz.entity.GenericModelException: Could not find definition for >> entity name JobSandbox >> org.ofbiz.entity.model.ModelReader.getModelEntity(ModelReader.java:499) >> org.ofbiz.entity.GenericDelegator.getModelEntity(GenericDelegator.java:394) >> org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2134) >> org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2125) >> org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1280) >> org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1265) >> org.ofbiz.service.job.JobManager.poll(JobManager.java:156) >> org.ofbiz.service.job.JobPoller.run(JobPoller.java:90) >> java.lang.Thread.run(Thread.java:662) >> -------------------------------------------------------------------------------- >> >> what’s the problem?? >> Thanks... |
Free forum by Nabble | Edit this page |