[mevenide-dev] [jira] Commented: (MEVENIDE-667) After installing maven ide plugin standard create java class / create jave interface wizards hang

"Martin Fuzzey (JIRA)" <jira-yCVjj/[email protected]> Thu, 4 Sep 2008 08:49:49 -0500 (CDT)
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <16604643.1220536189166.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/MEVENIDE-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146976#action_146976 ] 

Martin Fuzzey commented on MEVENIDE-667:
----------------------------------------

I've done a little more investigation and it seems to be that when the maven plugin is installed netbeans looks for log4j on the classpath via freemaker and can't find it.
SEVERE [global]
java.lang.ClassNotFoundException: org.apache.log4j.Logger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Caused: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
        at freemarker.log.Logger.getLogger(Logger.java:255)
        at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
        at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:146)
        at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
        at freemarker.core.Configurable.<init>(Configurable.java:132)
        at freemarker.template.Configuration.<init>(Configuration.java:109)
        at freemarker.template.Configuration.<clinit>(Configuration.java:96)
        at org.netbeans.libs.freemarker.FreemarkerEngine.initFreeMarkerConfiguration(Unknown Source)
        at org.netbeans.libs.freemarker.FreemarkerEngine.eval(Unknown Source)
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
        at org.netbeans.modules.templates.ScriptingCreateFromTemplateHandler.createFromTemplate(Unknown Source)
        at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(Unknown Source)
        at org.openide.loaders.DefaultDataObject.handleCreateFromTemplate(Unknown Source)
        at org.openide.loaders.DataObject$CreateAction.run(Unknown Source)
        at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(Unknown Source)
        at org.openide.filesystems.EventControl.runAtomicAction(Unknown Source)
        at org.openide.filesystems.FileSystem.runAtomicAction(Unknown Source)
        at org.openide.loaders.DataObjectPool.runAtomicAction(Unknown Source)
        at org.openide.loaders.DataObject.invokeAtomicAction(Unknown Source)
        at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
        at org.openide.loaders.DataObject.createFromTemplate(Unknown Source)
        at org.netbeans.modules.java.project.NewJavaFileWizardIterator.instantiate(NewJavaFileWizardIterator.java:158)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(Unknown Source)
        at org.openide.loaders.TemplateWizard.handleInstantiate(Unknown Source)
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(Unknown Source)
        at org.openide.loaders.TemplateWizardIterImpl.instantiate(Unknown Source)
        at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(Unknown Source)
        at org.openide.WizardDescriptor.callInstantiateOpen(Unknown Source)
        at org.openide.WizardDescriptor.callInstantiate(Unknown Source)
        at org.openide.WizardDescriptor.access$1600(Unknown Source)
        at org.openide.WizardDescriptor$Listener$2$1.run(Unknown Source)
        at org.openide.WizardDescriptor$Listener$2.run(Unknown Source)
        at org.openide.WizardDescriptor.lazyValidate(Unknown Source)
        at org.openide.WizardDescriptor.access$1200(Unknown Source)
        at org.openide.WizardDescriptor$Listener.actionPerformed(Unknown Source)

I've also attached the full messages.log


> After installing maven ide plugin standard create java class / create jave interface wizards hang
> -------------------------------------------------------------------------------------------------
>
>                 Key: MEVENIDE-667
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-667
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_3.1
>         Environment: OS ubuntu 8.04 (hardy)
> Product Version: NetBeans IDE 6.0.1 (Build 080320)
> Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
> System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_GB (nb)
> Maven ide plugin 3.1.3 (from netbeans update center)
>            Reporter: Martin Fuzzey
>            Assignee: Milos Kleint
>         Attachments: messages.log, st
>
>
> When the maven plugin is installed the Create Java Class dialog blocks after clicking on the finish button.
> The dialog is NOT dismissed but an empty .java file is created.
> Manually clicking the close button in the window decoration really closes the dialog (but the generated java file is still empty)
> The problem occurs even if the current project does NOT use the maven plugin
> Uninstalling the maven plugin fixes the problem.
> When the maven plugin is reinstalled the problem occurs again after a netbeans restart
> Attached is thread dump when problem occurs (not sure how usefull it is)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email