|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Difficulties configuring NetBeans for Oscar DevelopmentI'm requesting help. I'm having difficulties getting NetBeans 6.5.1 to
work with Oscar, despite following Aart de Vries instructions quite closely. I have tried to load all of the plugins as per Aart's list, but some appear to have changed since NetBeans 6.5.1 was released. I also tried this with NetBeans 6.7 and get the same errors. I can build the same code using ant and Oscar will run outside of NetBeans by placing the .war files in Tomcat's webapps. The Tomcat manager is set up in ~/bin/tomcat/conf/tomcat users.xml with admin as the user and NetBeans has the password. I have also tried other builds, including official releases such as 9.04. Description of Error: NetBeans is unable to run /oscar_mcmaster despite a successful build. I get a HTTP Status 404 error "The requested resource () is not available." from Tomcat 5.5.27. The oscar_mcmaster (run) output screen on NetBeans displays: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Starting Tomcat process... Waiting for Tomcat... Tomcat server started. Incrementally deploying http://localhost:8080/oscar_mcmaster Completed incremental distribution of http://localhost:8080/oscar_mcmaster Incrementally redeploying http://localhost:8080/oscar_mcmaster Deploy is in progress... deploy?config=file:/tmp/context1431667356782987254.xml&path=/oscar_mcmaster OK - Deployed application at context path /oscar_mcmaster run-deploy: Browsing: http://localhost:8080/oscar_mcmaster/ run-display-browser: run: BUILD SUCCESSFUL (total time: 28 seconds) The Tomcat 5.5 window within NetBeans displays (edited): 21-Oct-2009 9:45:19 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/jdk1.6.0_16/jre/lib/i386/server:/usr/lib/jvm/jdk1.6.0_16/jre/lib/i386:/usr/lib/jvm/jdk1.6.0_16/jre/../lib/i386:/usr/lib/jvm/jdk1.6.0_16/jre/lib/i386/client:/usr/lib/jvm/jdk1.6.0_16/jre/lib/i386:/usr/lib/jvm/jdk1.6.0_16/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib 21-Oct-2009 9:45:19 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 21-Oct-2009 9:45:20 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 21-Oct-2009 9:45:20 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1584 ms 21-Oct-2009 9:45:20 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina 21-Oct-2009 9:45:20 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.27 21-Oct-2009 9:45:20 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled contextInit 2009-10-21 09:45:22,856 INFO [Startup:61] /localhost/oscar_mcmaster/ 2009-10-21 09:45:22,858 INFO [Startup:80] looking up /home/hutch/oscar_mcmaster.properties OSCAR PROPS CONSTRUCTOR 2009-10-21 09:45:22,862 INFO [Startup:85] loading properties from /home/hutch/oscar_mcmaster.properties 2009-10-21 09:45:22,862 INFO [Startup:140] BILLING REGION : BC 2009-10-21 09:45:22,863 INFO [Startup:141] DB PROPS: Username :root db name: oscar_mcmaster 2009-10-21 09:45:22,884 INFO [SurveillanceMaster:238] OSCAR SURVEILLANCE -- module not initialized LAST LINE IN contextInitialized 2009-10-21 09:45:22,885 INFO [OscarSpringContextLoaderListener:33] Creating OscarContextLoader 2009-10-21 09:45:22,925 INFO [[/oscar_mcmaster]:649] Initializing Spring root WebApplicationContext 2009-10-21 09:45:22,964 INFO [OscarSpringContextLoader:98] Preparing WEB-INF/applicationContext.xml 2009-10-21 09:45:23,885 INFO [OscarPropertyPlaceholderConfigurer:178] Loading properties file from ServletContext resource [/WEB-INF/classes/oscar_mcmaster.properties] 2009-10-21 09:45:24,394 INFO [Version:15] Hibernate EntityManager 3.3.1.GA 2009-10-21 09:45:28,496 ERROR [ContextLoader:215] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring_jpa.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping oscar.oscarRx.model.Favoritesprivilege at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at <edited> 2009-10-21 09:45:28,498 ERROR [[/oscar_mcmaster]:3768] Exception sending context initialized event to listener instance of class org.oscarehr.common.web.OscarSpringContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring_jpa.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping oscar.oscarRx.model.Favoritesprivilege at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at <edited> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping oscar.oscarRx.model.Favoritesprivilege at org.hibernate.cfg.Mappings.addClass(Mappings.java:118) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:145) at org.hibernate.cfg.Configuration.add(Configuration.java:669) at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:483) at <edited> 2009-10-21 09:45:28,499 INFO [ContextStartupListener:23] Server processes starting. context=web 2009-10-21 09:45:28,505 INFO [VMStat:175] HEADER,Code Cache.maxAllowed(bytes),Code Cache.currentUsage(bytes),PS Eden Space.maxAllowed(bytes),PS Eden Space.currentUsage(bytes),PS Survivor Space.maxAllowed(bytes),PS Survivor Space.currentUsage(bytes),PS Old Gen.maxAllowed(bytes),PS Old Gen.currentUsage(bytes),PS Perm Gen.maxAllowed(bytes),PS Perm Gen.currentUsage(bytes),PS Scavenge.CollectionTime(ms),PS Scavenge.CollectionCount,PS MarkSweep.CollectionTime(ms),PS MarkSweep.CollectionCount,PeakThreadCount,ThreadCount(includes deamons),DaemonThreadCount 2009-10-21 09:45:28,512 INFO [VMStat:171] DATA,50331648,2994624,90636288,46996456,2228224,2173992,764346368,7062544,67108864,18624520,81,13,0,0,5,5,4 2009-10-21 09:45:28,516 INFO [CaisiIntegratorUpdateTask:138] Scheduling CaisiIntegratorUpdateTask for period : 43200000 2009-10-21 09:45:28,518 ERROR [[/oscar_mcmaster]:3768] Exception sending context initialized event to listener instance of class org.oscarehr.util.ContextStartupListener java.lang.NullPointerException at org.oscarehr.util.SpringUtils.getBean(SpringUtils.java:43) at org.oscarehr.PMmodule.caisi_integrator.CaisiIntegratorUpdateTask.<init>(CaisiIntegratorUpdateTask.java:107) at org.oscarehr.PMmodule.caisi_integrator.CaisiIntegratorUpdateTask.startTask(CaisiIntegratorUpdateTask.java:139) at org.oscarehr.util.ContextStartupListener.contextInitialized(ContextStartupListener.java:38) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at <edited> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 2009-10-21 09:45:28,519 INFO [ContextStartupListener:46] Server processes stopping. context=web 2009-10-21 09:45:28,520 INFO [[/oscar_mcmaster]:649] Closing Spring root WebApplicationContext 21-Oct-2009 9:45:28 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart 21-Oct-2009 9:45:28 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/oscar_mcmaster] startup failed due to previous errors 21-Oct-2009 9:45:29 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive OscarDocument.war 21-Oct-2009 9:45:29 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 21-Oct-2009 9:45:29 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8443 21-Oct-2009 9:45:29 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 21-Oct-2009 9:45:29 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/39 config=null 21-Oct-2009 9:45:29 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 21-Oct-2009 9:45:29 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 9166 ms 21-Oct-2009 9:45:30 AM org.apache.catalina.core.StandardContext stop INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/oscar_mcmaster] has not been started 21-Oct-2009 9:45:30 AM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/oscar_mcmaster] contextInit 2009-10-21 09:45:31,692 INFO [Startup:61] /localhost/oscar_mcmaster/ 2009-10-21 09:45:31,694 INFO [Startup:80] looking up /home/hutch/oscar_mcmaster.properties OSCAR PROPS CONSTRUCTOR 2009-10-21 09:45:31,696 INFO [Startup:85] loading properties from /home/hutch/oscar_mcmaster.properties 2009-10-21 09:45:31,697 INFO [Startup:140] BILLING REGION : BC 2009-10-21 09:45:31,697 INFO [Startup:141] DB PROPS: Username :root db name: oscar_mcmaster 2009-10-21 09:45:31,715 INFO [SurveillanceMaster:238] OSCAR SURVEILLANCE -- module not initialized LAST LINE IN contextInitialized 2009-10-21 09:45:31,716 INFO [OscarSpringContextLoaderListener:33] Creating OscarContextLoader 2009-10-21 09:45:31,773 INFO [[/oscar_mcmaster]:649] Initializing Spring root WebApplicationContext 2009-10-21 09:45:31,808 INFO [OscarSpringContextLoader:98] Preparing WEB-INF/applicationContext.xml 2009-10-21 09:45:32,648 INFO [OscarPropertyPlaceholderConfigurer:178] Loading properties file from ServletContext resource [/WEB-INF/classes/oscar_mcmaster.properties] 2009-10-21 09:45:32,938 INFO [Version:15] Hibernate EntityManager 3.3.1.GA 2009-10-21 09:45:36,527 ERROR [ContextLoader:215] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring_jpa.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping oscar.oscarRx.model.Favoritesprivilege at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) at <remainder edited> Thanks if you can help. Gord Hutchinson ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Oscarmcmaster-devel mailing list Oscarmcmaster-devel@... https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel |
|
|
Re: Difficulties configuring NetBeans for Oscar DevelopmentI think I met a similar error before, can you check if you have duplicate Favoritesprivilege.class compiled in the build directory after you built it?
On Wed, Oct 21, 2009 at 3:57 PM, Gordon Hutchinson <hutch54@...> wrote: I'm requesting help. I'm having difficulties getting NetBeans 6.5.1 to ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Oscarmcmaster-devel mailing list Oscarmcmaster-devel@... https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel |
|
|
Re: Difficulties configuring NetBeans for Oscar DevelopmentThanks, Jackson, for your suggestion. However, I have checked the build directory tree, and there is only one Favoritesprivilege.class file.
Does any one have any other suggestions? Gord Hutchinson On 22-Oct-09, at 11:06 AM, Jackson Bi wrote: I think I met a similar error before, can you check if you have duplicate Favoritesprivilege.class compiled in the build directory after you built it? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Oscarmcmaster-devel mailing list Oscarmcmaster-devel@... https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel |
|
|
Re: Difficulties configuring NetBeans for Oscar DevelopmentOK, a quick progress note before I run off to an ACLS course.
I believe I have solved at least part of the problem. The NetBeans built version of oscar_mcmaster, as read by Tomcat, reads a "rogue" oscar_mcmaster.properties file located in the build at ./NetBeansProjects/oscar_mcmaster/web/WEB-INF/classes/oscar_mcmaster.properties. This oscar_mcmaster.properties file is different from the one we usually modify that has a db_password of liyi. This one has a db_password of sfhc96, and contains some lines at the end with WCB billing codes. (anyone sheepishly recognizing their mysql password right now?) I believe this file is here in error. Tomcat reads that file and then duplicates some of the existing properties and that leads to a deployment error. The war file built by ant doesn't do this. However, after removing the file, Tomcat is still looking for it, so there's still an error. I'll try to get to that later today, but thought you all should know so that this file can be removed from the 0910 build if indeed it is there in error. Gord On Thu, 2009-10-22 at 20:48 -0700, Gordon Hutchinson wrote: > Thanks, Jackson, for your suggestion. However, I have checked the > build directory tree, and there is only one Favoritesprivilege.class > file. > Does any one have any other suggestions? > > > Gord Hutchinson > > On 22-Oct-09, at 11:06 AM, Jackson Bi wrote: > > > I think I met a similar error before, can you check if you have > > duplicate Favoritesprivilege.class compiled in the build directory > > after you built it? > > > > On Wed, Oct 21, 2009 at 3:57 PM, Gordon Hutchinson <hutch54@...> > > wrote: > > I'm requesting help. I'm having difficulties getting > > NetBeans 6.5.1 to > > work with Oscar, despite following Aart de Vries > > instructions quite > > closely. > > > > I have tried to load all of the plugins as per Aart's list, > > but some > > appear to have changed since NetBeans 6.5.1 was released. I > > also tried > > this with NetBeans 6.7 and get the same errors. > > > > I can build the same code using ant and Oscar will run > > outside of > > NetBeans by placing the .war files in Tomcat's webapps. The > > Tomcat > > manager is set up in ~/bin/tomcat/conf/tomcat users.xml > > with admin as > > the user and NetBeans has the password. I have also tried > > other builds, > > including official releases such as 9.04. > > > > Description of Error: > > NetBeans is unable to run /oscar_mcmaster despite a > > successful build. I > > get a HTTP Status 404 error "The requested resource () is > > not > > available." from Tomcat 5.5.27. > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Oscarmcmaster-devel mailing list Oscarmcmaster-devel@... https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel |
|
|
Re: Difficulties configuring NetBeans for Oscar DevelopmentHi Gord,
Did you add the following to the netbeans build.xml file for your oscar project? <target name="-post-compile"> <delete> <fileset dir="${build.classes.dir}/src"> <include name="**/*hbm.xml"/> </fileset> </delete> </target> this should correct the duplicate mapping erorr I see in your output. Cheers, Randy On Fri, Oct 23, 2009 at 10:23 AM, Gordon Hutchinson <hutch54@...> wrote: OK, a quick progress note before I run off to an ACLS course. -- Oscar Developer McMaster University 175 Longwood Road South, Suite 201A Hamilton ON L8P 0A1 905 525 9140 x27735 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Oscarmcmaster-devel mailing list Oscarmcmaster-devel@... https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel |
| Free embeddable forum powered by Nabble | Forum Help |