1 Reply Latest reply on Apr 20, 2006 9:22 AM by Gaber Terseglav

    Hibernate 3 and JBoss 4.0.3. - Attribute 'HarURL' is not wri

    Gaber Terseglav Newbie

      Hello.

      I am using hibernate to connect to mssql 2000. At first, when I deployed ear, that uses hibernate, everything worked fine:
      - I selected and inserted values to test table with hibernate without any problem

      But during development, I got exception when trying to deploy application and I can't even deploy application versions that worked fine before?? I also installed JBoss again:
      - fresh installation of JBoss
      - added directory $JBOSS_HOME/server/default/deploy/jboss-hibernate.deployer
      - copied mssql 2000 libraries to $JBOSS_HOME/server/default/lib

      But exception appears also in new version.

      Exception stack:

      14:13:19,816 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/J
      boss/jboss-4.0.3/server/default/deploy/jaw.ear
      14:13:20,116 ERROR [MainDeployer] Could not create deployment: file:/C:/Program
      Files/Jboss/jboss-4.0.3/server/default/tmp/deploy/tmp23105jaw.ear-contents/jaw.h
      ar
      org.jboss.deployment.DeploymentException: Failed to set HarUrl attribute: Attrib
      ute 'HarUrl' is not writable; - nested throwable: (javax.management.AttributeNot
      FoundException: Attribute 'HarUrl' is not writable)
      at org.jboss.hibernate.har.HARDeployer.create(HARDeployer.java:322)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
      or.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
      BeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:489)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:182)
      Caused by: javax.management.AttributeNotFoundException: Attribute 'HarUrl' is no
      t writable
      at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanIn
      voker.java:412)
      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java
      :593)
      at org.jboss.hibernate.har.HARDeployer.create(HARDeployer.java:318)
      ... 22 more


      My hibernate-service.xml:

      <server>
      <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
      <attribute name="DatasourceName">java:/JBossAtWorkDS</attribute>
      <attribute name="Dialect">org.hibernate.dialect.SQLServerDialect</attribute>
      <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
      <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
      </mbean>
      </server>
      


      Thanks for help

      The most weird thing is that it just stopped working and I don't understand why can this be if I didn't change nothing.