facebook

Weblogic and Scafold

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #347512 Reply

    Smitht19
    Member

    I am having some issues when I try to scafold a one table spring 3.1 app and deploy it to Weblogic 11 that is configured in Myeclispe for spring 10.6 and or Myeclipse for Spring 2014. I am getting these errors.

    ####<Feb 24, 2014 8:11:50 PM EST> <Warning> <HTTP> <Todds-PC> <AdminServer> <[ACTIVE] ExecuteThread: ‘0’ for queue: ‘weblogic.kernel.Default (self-tuning)’> <<WLS Kernel>> <> <> <1393290710695> <WL-101296> <Unable to load the default compiler class “com.sun.tools.javac.Main”. Using the default javac compiler to compile JSPs.
    java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at weblogic.servlet.jsp.JspConfig.checkCompilerClass(JspConfig.java:212)
    at weblogic.servlet.internal.JSPManager.registerJspDescriptor(JSPManager.java:390)
    at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletContext.java:1257)
    at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1193)
    at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:453)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
    at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
    at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)
    at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
    at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:144)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deployPreStandbyInternalApps(ConfiguredDeployments.java:84)
    at weblogic.management.deploy.internal.DeploymentServerService.deployPreStandbyInternalApps(DeploymentServerService.java:168)
    at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:27)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    
    
    
    
    
    

    weblogic.management.ManagementException: java.lang.NoSuchMethodException: weblogic.management.configuration.AppDeploymentMBeanImpl.isCacheInAppDirectorySet()
    at weblogic.management.deploy.ApplicationsDirPoller.doActivate(ApplicationsDirPoller.java:246)
    at weblogic.management.deploy.GenericAppPoller.doit(GenericAppPoller.java:275)
    at weblogic.management.deploy.ApplicationsDirPoller.<init>(ApplicationsDirPoller.java:97)
    at weblogic.management.deploy.ApplicationsDirPoller.<init>(ApplicationsDirPoller.java:107)
    at weblogic.management.deploy.internal.DeploymentServerService.startAutoDeploymentPoller(DeploymentServerService.java:322)
    at weblogic.management.deploy.internal.DeploymentPostAdminServerService.start(DeploymentPostAdminServerService.java:31)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >

    Attachments:
    You must be logged in to view attached files.
    #347554 Reply

    support-swapna
    Moderator

    Smith,

    Sorry that you are seeing this issue.

    Have you set the Weblogic connector up to launch *specifically* with the JDK (not JRE) that is installed under the BEA home directory for WebLogic 11? The fact that it cannot find the default compiler (which comes from tools.jar, which comes from any JDK install) makes me thing you might have it accidentally launching with MyEclipse’s JRE and not the JDK that BEA ships with WebLogic.

    Can you please double check that under Window > Prefs > MyEclipse > Servers > WebLogic > WebLogic 11.x > JDK, and make sure that it’s not just a JDK but the one that is installed under the BEA home dir?

    If you are still seeing issues, can you please check these steps?

    1. Please check if the scaffolded project can be deployed to any other server apart from Weblogic , ex. MyEclipse Tomcat to rule out issues with the project.

    2. If the project deploys fine on another server, can you please check if you can deploy other projects to the configured Weblogic server without issues?

    3. Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now try scaffolding and deploying. If there are any errors of interest logged in the .log file, please paste them here to help us investigate further.

    4. If possible, also share the schema for the table.

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Weblogic and Scafold

You must be logged in to post in the forum log in