5 Replies Latest reply on Apr 16, 2009 10:11 AM by scabanovich

    JBoss property files error

    krasig

      I have 3 projects (Project A,Project B and Project C)
      In every project I have log4j.properties file.
      If i click on log4j.propertie file in "Project B", in "JBoss Tools properties Editor" i see file from "Project A". If i try to open with "Properties FileEditor" or "Text Editor" everything is ok.

      See pic: http://screencast.com/t/MspGsoI2


      P.S. This happen also with hibernate.cfg.xml

        • 1. Re: JBoss property files error
          akazakov

          Looking at the screenshot...
          Actually you seem to have one project and a few source folder there. Correct? I'm just trying to reproduce the issue. No luck yet.

          • 2. Re: JBoss property files error
            krasig

            Hi Alexey,
            I have many projects and every project have 2 source folders (one native and one shared. I don't know how to remove this src and src-1 but they pointed to same place ).
            I known that is difficult to reproduce, but i have 10 colleagues and all they have this problem.

            Actually the problem is that when something of they opened wrong file, after save all going worst (damaged hibernate.cfg.xml, lo4j.properties, messages.properties.....).

            • 3. Re: JBoss property files error
              akazakov

              Yes. It seems to be a bug of JBoss Tools editors. But we have to reproduce the bug to fix it. Could you show .project and .classpath here?

              • 4. Re: JBoss property files error
                krasig

                .project

                <?xml version="1.0" encoding="UTF-8"?>
                <projectDescription>
                 <name>Odit</name>
                 <comment></comment>
                 <projects>
                 </projects>
                 <buildSpec>
                 <buildCommand>
                 <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.eclipse.wst.common.project.facet.core.builder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.eclipse.jdt.core.javabuilder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.eclipse.wst.validation.validationbuilder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.jboss.tools.common.verification.verifybuilder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.hibernate.eclipse.console.hibernateBuilder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 <buildCommand>
                 <name>org.jboss.ide.eclipse.archives.core.archivesBuilder</name>
                 <arguments>
                 </arguments>
                 </buildCommand>
                 </buildSpec>
                 <natures>
                 <nature>org.jboss.ide.eclipse.archives.core.archivesNature</nature>
                 <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
                 <nature>org.eclipse.jdt.core.javanature</nature>
                 <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
                 <nature>org.jboss.tools.jsf.jsfnature</nature>
                 <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
                 <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
                 <nature>org.hibernate.eclipse.console.hibernateNature</nature>
                 </natures>
                 <linkedResources>
                 <link>
                 <name>src</name>
                 <type>2</type>
                 <location>D:/EclipseGanymede6/eclipse/MyWorks/System/src</location>
                 </link>
                 <link>
                 <name>src-1</name>
                 <type>2</type>
                 <location>D:/EclipseGanymede6/eclipse/MyWorks/System/src</location>
                 </link>
                 <link>
                 <name>src-2</name>
                 <type>2</type>
                 <location>D:/GanymedeSR16/eclipse/MyWorks/Delo/JavaSource</location>
                 </link>
                 <link>
                 <name>srcDelo</name>
                 <type>2</type>
                 <location>D:/GanymedeSR2/eclipse/MyWorks/Delo/JavaSource</location>
                 </link>
                 <link>
                 <name>srcSystem</name>
                 <type>2</type>
                 <location>D:/GanymedeSR2/eclipse/MyWorks/System/src</location>
                 </link>
                 </linkedResources>
                </projectDescription>
                


                .classpath
                <?xml version="1.0" encoding="UTF-8"?>
                <classpath>
                 <classpathentry kind="src" path="JavaSource"/>
                 <classpathentry excluding="*/.svn/|.svn|.svn/|com/indexbg/.svn/|com/indexbg/system/*/.svn/|com/indexbg/system/.svn/|test/.svn/|test/com/.svn/|test/com/indexbg/.svn/|test/com/indexbg/system/*/.svn/|test/com/indexbg/system/.svn/" kind="src" path="srcSystem"/>
                 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
                 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
                 <classpathentry exported="true" kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
                 <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 5.0 Runtime"/>
                 <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
                </classpath>
                


                • 5. Re: JBoss property files error
                  scabanovich