facebook

BIRT hot depolyement problem

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #319764 Reply

    iskohl
    Member

    Hi everyone,

    recently I begin to use BIRT in my project, but every time when I deploy the web project, it would fail, because all the files in WEB-INF/report-engine/logs (.log and .log.lck files)are locked, they can’t be deleted. I checked this file with tool unlocker, I found they were locked by tomcat.
    This problem puzzled me already during the last two weeks. Every time if I deploy somthing new, I must turn down tomcat, deploy and turn on, so I cannot hot deploy.

    Are there someone who has the same problem or can solve this problem?

    I use Myeclipse 9.0 and Tomcat 7

    Thanks.

    #319777 Reply

    support-swapna
    Moderator

    iskohl ,

    Sorry that you are seeing this issue with MyEclipse.

    1) Can you update your MyEclipse 9 to the latest MyEclipse 9.1 version ? Go to MyEclipse Configuration Center > Dashboard > Updates Available > MyEclipse Enterprise Edition 9.1. Apply the changes and follow the wizard.Restart the IDE when it prompts to. Switch to a new workspace.

    2) Can you check if setting the antijarlocking and antiresourcelocking properties in the context.xml for Tomcat works? Here is the link :
    http://mycodefixes.blogspot.com/2010/01/apache-tomcat-jar-locking-issue.html

    3) Do you see the issue with any other web project or is it specific to only web projects which use BIRT?

    4) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now try to deploy the project and paste the entire contents of the .log file here.

    5) Also please give us steps in detail for us to be able to replicate the issue at our end.

    #319779 Reply

    iskohl
    Member

    Thank you for your post.

    1) Can you update your MyEclipse 9 to the latest MyEclipse 9.1 version ? Go to MyEclipse Configuration Center > Dashboard > Updates Available > MyEclipse Enterprise Edition 9.1. Apply the changes and follow the wizard.Restart the IDE when it prompts to. Switch to a new workspace.

    I can try with new version, but I am afraid if the new version can solve this.

    2) Can you check if setting the antijarlocking and antiresourcelocking properties in the context.xml for Tomcat works? Here is the link :
    http://mycodefixes.blogspot.com/2010/01/apache-tomcat-jar-locking-issue.html

    unfortunately it didn’t work.

    3) Do you see the issue with any other web project or is it specific to only web projects which use BIRT?

    these .log files and .log.lck files exist only in BIRT project, all files are 0 KB. I added the BIRT capability to my web project, and before everything was ok. So I think this is specific to only BIRT project.

    4) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now try to deploy the project and paste the entire contents of the .log file here.

    
    !SESSION 2011-09-20 09:52:36.924 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.6.0_13
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=
    Command-line arguments:  -os win32 -ws win32 -arch x86
    
    !ENTRY org.eclipse.osgi 2 1 2011-09-20 09:53:11.002
    !MESSAGE NLS unused message: prompt_optclasspath in: com.genuitec.eclipse.easie.core.configuration
    
    !ENTRY org.eclipse.osgi 2 1 2011-09-20 09:53:11.002
    !MESSAGE NLS unused message: prompt_preclasspath in: com.genuitec.eclipse.easie.core.configuration
    
    !ENTRY org.eclipse.osgi 2 1 2011-09-20 09:53:11.002
    !MESSAGE NLS unused message: prompt_optlibrarypath in: com.genuitec.eclipse.easie.core.configuration
    
    !ENTRY org.eclipse.jface 2 0 2011-09-20 09:53:13.092
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-20 09:53:13.092
    !MESSAGE A conflict occurred for ALT+SHIFT+D C:
    Binding(ALT+SHIFT+D C,
        ParameterizedCommand(Command(org.eclipse.ajdt.launching.runShortcut.debug,Debug AspectJ/Java Application,
            Debug AspectJ/Java Application,
            Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    Binding(ALT+SHIFT+D C,
        ParameterizedCommand(Command(com.google.gdt.eclipse.designer.launch.gwtCompilerLaunchShortcut.debug,Debug Compile GWT Application,
            Debug Compile GWT Application,
            Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-20 09:53:13.092
    !MESSAGE A conflict occurred for ALT+SHIFT+X C:
    Binding(ALT+SHIFT+X C,
        ParameterizedCommand(Command(org.eclipse.ajdt.launching.runShortcut.run,Run AspectJ/Java Application,
            Run AspectJ/Java Application,
            Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    Binding(ALT+SHIFT+X C,
        ParameterizedCommand(Command(com.google.gdt.eclipse.designer.launch.gwtCompilerLaunchShortcut.run,Run Compile GWT Application,
            Run Compile GWT Application,
            Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-09-20 09:53:13.092
    !MESSAGE A conflict occurred for SHIFT+DEL:
    Binding(SHIFT+DEL,
        ParameterizedCommand(Command(org.eclipse.datatools.sqltools.result.removeAllInstances,Remove All Visible Results,
            ,
            Category(org.eclipse.datatools.sqltools.result.category,SQL Results View,null,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    Binding(SHIFT+DEL,
        ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut,
            Cut the selection to the clipboard,
            Category(org.eclipse.ui.category.edit,Edit,null,true),
            org.eclipse.ui.internal.handlers.WidgetMethodHandler@97d532,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.dialogAndWindow,,,system)
    Binding(SHIFT+DEL,
        ParameterizedCommand(Command(org.topcased.modeler.deleteModelObject,Delete From Model,
            Allows the user to delete the selected graph element and its associated model element in a Topcased editor.,
            Category(org.eclipse.ui.category.edit,Edit,null,true),
            ,
            ,,true),null),
        org.eclipse.ui.defaultAcceleratorConfiguration,
        org.eclipse.ui.contexts.window,,,system)
    
    !ENTRY org.eclipse.ui.workbench 2 0 2011-09-20 09:53:13.545
    !MESSAGE A handler conflict occurred.  This may disable some commands.
    !SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-20 09:53:13.545
    !MESSAGE Conflict for 'com.genuitec.eclipse.ast.deploy.core.runonservershortcut.debug':
    HandlerActivation(commandId=com.genuitec.eclipse.ast.deploy.core.runonservershortcut.debug,
        handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@efb3ef,
        expression=,sourcePriority=0)
    HandlerActivation(commandId=com.genuitec.eclipse.ast.deploy.core.runonservershortcut.debug,
        handler=org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension$LaunchCommandHandler@10e47c8,
        expression=,sourcePriority=0)
    
    !ENTRY org.eclipse.osgi 2 0 2011-09-20 09:53:38.099
    !MESSAGE While loading class "org.eclipse.wst.jsdt.internal.core.JavaModelManager$16", thread "Thread[Worker-8,5,main]" timed out waiting (5000ms) for thread "Thread[Worker-9,5,main]" to finish starting bundle "org.eclipse.wst.jsdt.core_1.1.2.me201103172348 [2185]". To avoid deadlock, thread "Thread[Worker-8,5,main]" is proceeding but "org.eclipse.wst.jsdt.internal.core.JavaModelManager$16" may not be fully initialized.
    !STACK 0
    org.osgi.framework.BundleException: State change in progress for bundle "reference:file:../Common/plugins/org.eclipse.wst.jsdt.core_1.1.2.me201103172348.jar" by thread "Worker-9".
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
        at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at org.eclipse.wst.jsdt.internal.core.JavaModelManager$15.run(JavaModelManager.java:4182)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
        ... 16 more
    Root exception:
    org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1077)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:282)
        at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
        at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
        at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
        at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at org.eclipse.wst.jsdt.internal.core.JavaModelManager$15.run(JavaModelManager.java:4182)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    
    !ENTRY org.eclipse.osgi 2 1 2011-09-20 10:17:29.495
    !MESSAGE NLS unused message: Unnecessary_Semicolon_ERROR in: org.eclipse.wst.html.core.internal.HTMLCorePluginResources
    
    !ENTRY org.eclipse.osgi 2 1 2011-09-20 10:17:29.495
    !MESSAGE NLS missing message: Obsolete_attribute_name___ERROR_ in: org.eclipse.wst.html.core.internal.HTMLCorePluginResources
    
    

    there is also nothing remarkable.

    5) Also please give us steps in detail for us to be able to replicate the issue at our end.

    very simple, create a web project then add BIRT capability, deploy it on server. This problem will emerge. But I found also something very strange. My local depolyment is ok even I hot depoly the project, there are also some .log and .log.lck files in same directory, but with Unlocker I found no programs locked them during tomcat were running at my local computer.

    The tomcat on local and server are exactly the same one with all default setting. The only difference is the starting way of both. the one on local computer is started through the Myeclipse, and the other one on server is by the windows service.

    Thank you for your help.

    #319783 Reply

    iskohl
    Member

    Solution found!

    I found in http://www.birt-exchange.org/org/forum/index.php/topic/11908-why-does-birt-create-so-many-log-files/page__s__d27355f14f5e33fc082d03e50d40d9b0

    a post mentioned:

    switch off loging thanks to comment logging in /WEB-INF/viewer.properties

    # “logger.”+class=level
    # if no level is specified or the text “DEFAULT”,
    # then the default level from the web.xml will be used
    # logger.org.eclipse.datatools.connectivity.oda=DEFAULT
    # logger.org.eclipse.datatools.enablement.oda=DEFAULT

    I did so, and finally I got the depolyment succeeded.

    #319810 Reply

    support-swapna
    Moderator

    iskohl ,

    Glad that you got it working. Thank you posting the solution. It would surely be of great help to other users.

    Do let us know if you have any other issues.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: BIRT hot depolyement problem

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