Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Professional Oracle WebLogic Server
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Oracle WebLogic Server
This is the forum to discuss the Wrox book Professional Oracle WebLogic Server by Robert Patrick, Gregory Nyberg, Philip Aston with Josh Bregman, Paul Done; ISBN: 978-0-470-48430-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Oracle WebLogic Server section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 1st, 2009, 05:07 AM
Registered User
 
Join Date: Dec 2009
Location: Athens, Greece
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to galexakis
Default Problem with building sample application of the book (bigrez)

I'm using Oracle Weblogic 10.3 and the included ant module.
Junit 4.0 and Mockito 1.8.1.
The JUnit installation is OK as by typing
java org.junit.runner.JUnitCore org.junit.tests.AllTests
I get all tests running successfully.

I'm trying to build the bigrez application incuded in the code of the book.
I'm doing exactly what the README file presents.

1. Configuring the etc/local.properties
2. Set the environment throught the setWLSEnv.cmd script
3. Run ant

Upon running ant I get the following error(s)

.....................................
compile:

do.test:
[mkdir] Created dir: C:\bigrez\unit-tests\build\ant\junit
[junit] Running com.bigrez.web.TestLabelValue
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.203 sec
[junit] TEST com.bigrez.domain.TestEntityPersistence FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.domain.TestOptmisticLocking FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.015 sec
[junit] TEST com.bigrez.domain.TestValueObjects FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.domain.TestWithStandardData FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.015 sec
[junit] TEST com.bigrez.jpa.TestDomainEntity FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.jpa.TestJPAUtilties FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.service.impl.TestEmailMDBImpl FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.service.impl.TestEmailServicesImpl FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.015 sec
[junit] TEST com.bigrez.service.impl.TestLoggingInterceptor FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.service.impl.TestProfileServices FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.service.impl.TestPropertyServices FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.service.impl.TestReservationServices FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.utils.TestFormUtils FAILED
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
[junit] TEST com.bigrez.web.TestLabelValue FAILED
[junit] Tests FAILED

test:

do.javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.bigrez.domain...
[javadoc] Loading source files for package com.bigrez.jpa...
[javadoc] Loading source files for package com.bigrez.service.impl...
[javadoc] Loading source files for package com.bigrez.testutilties...
[javadoc] Loading source files for package com.bigrez.utils...
[javadoc] Loading source files for package com.bigrez.web...
[javadoc] Loading source files for package com.foreign...
[javadoc] Constructing Javadoc information...
[javadoc] Standard Doclet version 1.6.0_05
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] Building index for all classes...

common.do.report:

do.report:

BUILD FAILED
C:\bigrez\build.xml:13: The following error occurred while executing this line:
C:\bigrez\unit-tests\build.xml:42: The following error occurred while executing
this line:
C:\bigrez\etc\common-build.xml:208: Could not find a valid processor version imp
lementation from weblogic.xml.jaxp.RegistrySAXTransformerFactory

Total time: 1 minute 13 seconds


I tried various workarounds (changing the classpath, the weblogic-applicaiton.xml etc) suggested for the " Could not find a valid ...." error
through the internet but nothing worked.


Has anyone faced the same problem ?
Is it possible to have the compiled ear fiile in order to be able to go on with
the book without spending more time on meaningless troubleshooting ?
  #2 (permalink)  
Old December 1st, 2009, 05:41 AM
Authorized User
Points: 42, Level: 1
Points: 42, Level: 1 Points: 42, Level: 1 Points: 42, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yassas Galexakis,

As per the README, please use WebLogic Server 10.3.1 or 10.3.2, not 10.3. This is the reason for the second error (Could not find a valid processor version implementation....), and is possibly the reason your unit tests are failing.

If you choose 10.3.2, please be aware that you will need to modify the password used at line 188 of setUpDomain.py to match the password validation rules. (E.g. change it to "password1"). I will include this fix in a future refresh of bigrez.

If your unit tests are still failing with 10.3.1 or 10.3.2, please look at the contents of one of the test output files, e.g. unit-tests/build/ant/junit/TEST-com.bigrez.web.TestFormUtils.xml. That will have the stderr output from the test which should indicate why its failing. Please post any stack trace from that file.

Regards,

- Phil
  #3 (permalink)  
Old December 1st, 2009, 08:44 AM
Registered User
 
Join Date: Dec 2009
Location: Athens, Greece
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to galexakis
Default

Many thanks for the immediate response.

In Weblogic 10.3.2 build is successfull.

Just another minor error occurs when running the
py script. Strong Password Enforcement set on by default
on Weblogic rejects the script if all password are to "password".
Had to change the following line

u = cmo.createUser(name, "password", "Administrator")

to
u = cmo.createUser(name, "password1", "Administrator")

to go on.

Best Regards.
  #4 (permalink)  
Old December 1st, 2009, 08:54 AM
Authorized User
Points: 42, Level: 1
Points: 42, Level: 1 Points: 42, Level: 1 Points: 42, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good to hear all is well now.

(I did mention the need to edit setDomainEnv.sh for WLS 10.3.2 in my reply :-))
  #5 (permalink)  
Old February 12th, 2010, 10:32 PM
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in database.url in local.properties

My Weblogic 10.3.2 install with the Oracle 10g Express Edition 10.2.0.1.0 required this URL with SID different than the download.
It may save someone from hunting for the *.ora files.

Code:
database.url:            jdbc:oracle:thin:@localhost:1521:xe
OR
database.url:            jdbc:oracle:thin:@localhost:1521
Brad.
  #6 (permalink)  
Old January 5th, 2011, 07:42 AM
Registered User
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default error during deployment sample application

Hi,

I tried to deploy the sample application (bigrez.ear) to the admin server (weblogic 10.3.3 installation).
The build was succesful but during deployment I got the following error message and stack trace:

Code:
An error occurred during activation of changes, please see the log for details.
Message icon - Error [HTTP:101216]Servlet: "adminapp" failed to preload on startup in Web application: "bigrez-web-admin". org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/adminapp-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.servlet.view.tiles2.TilesConfigurer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:128) at javax.servlet.GenericServlet.init(GenericServlet.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3127) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:489) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1269) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409) at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.servlet.view.tiles2.TilesConfigurer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) ... 59 more Caused by: java.lang.NoClassDefFoundError at org.springframework.web.servlet.view.tiles2.TilesConfigurer.class$(TilesConfigurer.java:95) at org.springframework.web.servlet.view.tiles2.TilesConfigurer.<init>(TilesConfigurer.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409) at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68) ... 3 more Caused by: java.lang.ClassNotFoundException: org.apache.tiles.factory.TilesContainerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.springframework.web.servlet.view.tiles2.TilesConfigurer.class$(TilesConfigurer.java:95) at org.springframework.web.servlet.view.tiles2.TilesConfigurer.<init>(TilesConfigurer.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:128) at javax.servlet.GenericServlet.init(GenericServlet.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3127) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:489) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1269) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409) at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69) ... 3 more
Message icon - Error Substituted for the exception org.springframework.beans.BeanInstantiationException which lacks a String contructor, original message - Could not instantiate bean class [org.springframework.web.servlet.view.tiles2.TilesConfigurer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
Has anyone faced this kind of problem?

Regards,

David
  #7 (permalink)  
Old January 5th, 2011, 12:37 PM
Registered User
Points: 36, Level: 1
Points: 36, Level: 1 Points: 36, Level: 1 Points: 36, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi David,

We will look into this and get back to you as soon as possible. Sorry for your trouble.

Thanks,
Robert
  #8 (permalink)  
Old January 9th, 2011, 01:33 PM
Authorized User
Points: 42, Level: 1
Points: 42, Level: 1 Points: 42, Level: 1 Points: 42, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Works for me

Hi David,

bigrez works for me with 10.3.3, so we'll have to figure out what you are doing differently.

The stack trace says that the Tiles library cannot be loaded. This should be packaged within the ear. Here's what I get when I list the contents of the ear:

Code:
% jar tf bigrez.ear 
META-INF/MANIFEST.MF
APP-INF/
APP-INF/lib/
APP-INF/lib/commons-codec.jar
APP-INF/lib/commons-logging-1.1.1.jar
APP-INF/lib/commons-digester.jar
APP-INF/lib/tiles-api-2.0.5.jar
APP-INF/lib/jstl-1.2.jar
APP-INF/lib/spring.jar
APP-INF/lib/commons-collections.jar
APP-INF/lib/commons-lang-2.4.jar
APP-INF/lib/commons-beanutils.jar
APP-INF/lib/spring-webmvc.jar
APP-INF/lib/tiles-jsp-2.0.5.jar
APP-INF/lib/tiles-core-2.0.5.jar
APP-INF/lib/commons-pool-1.3.jar
APP-INF/classes/
bigrez-web-user.war
bigrez-services.jar
bigrez-webservices.war
META-INF/
META-INF/weblogic-application.xml
META-INF/weblogic-diagnostics.xml
bigrez-domain.jar
bigrez-web-admin.war
bigrez-web-common.jar
Note the two tiles libraries in APP-INF/lib. In the source tree, these libraries should be in ear/EarContent/APP-INF/lib/

What do you get when you list the contents of your bigrez.ear?

- Phil
  #9 (permalink)  
Old January 11th, 2011, 06:39 AM
Registered User
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default my contents bigrez.ear

Hi Phil,

Thanks for looking at my problem.
The list of files in my bigrez.ear is the same (except for the weblogic-diagnostics file):

Code:
META-INF/MANIFEST.MF
META-INF/
META-INF/weblogic-application.xml
bigrez-web-admin.war
bigrez-webservices.war
bigrez-services.jar
bigrez-web-common.jar
bigrez-domain.jar
bigrez-web-user.war
APP-INF/
APP-INF/classes/
APP-INF/lib/
APP-INF/lib/commons-collections.jar
APP-INF/lib/spring-webmvc.jar
APP-INF/lib/commons-pool-1.3.jar
APP-INF/lib/commons-beanutils.jar
APP-INF/lib/commons-digester.jar
APP-INF/lib/commons-lang-2.4.jar
APP-INF/lib/tiles-api-2.0.5.jar
APP-INF/lib/jstl-1.2.jar
APP-INF/lib/commons-codec.jar
APP-INF/lib/tiles-jsp-2.0.5.jar
APP-INF/lib/tiles-core-2.0.5.jar
APP-INF/lib/spring.jar
APP-INF/lib/commons-logging-1.1.1.jar
Is there a way I can send you my compiled bigrez.ear file so you can try to deploy it?

regards,

David
  #10 (permalink)  
Old January 11th, 2011, 10:27 AM
Authorized User
Points: 42, Level: 1
Points: 42, Level: 1 Points: 42, Level: 1 Points: 42, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ignore the weblogic diagnostics jar - that's a local change I'd made and forgotten about.

You could try distributing the file via a basic "Dropbox" account (www.dropbox.com).

Before you do so, please try creating a fresh WLS 10.3.3 domain, running the setUpDomain.py script, and deploying the app. (Steps 6 and 7 in the README).

- Phil
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building an Excel like Application yuenli C# 2005 1 June 22nd, 2007 12:57 PM
Building web application using NANT ydevesh NAnt 0 November 17th, 2006 09:30 AM
Book Sample "GeneratedDataGridView" relloz Pro Visual Basic 2005 1 February 3rd, 2006 03:09 AM
codes about this book: Building An ASP.NET Intrane john.shu General .NET 2 November 28th, 2005 09:51 AM
Building School Library Application??? mythinky .NET Web Services 1 March 1st, 2004 06:40 PM



All times are GMT -4. The time now is 12:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.