You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by rajesh <ra...@gmail.com> on 2006/12/22 11:27:01 UTC

getting exception when starting ofbiz

hi

i am new to ofbiz. i have seen.it is very good.
when i am trying to run startofbiz.bat in platform  linux  and mysql and i
am using java 1.4.2.13 ,there are some errors


Exception in thread "main" java.lang.NoSuchMethodError:
sun.rmi.transport.Object
Table.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;
        at
org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObje
ct(JUnicastRemoteObject.java:138)
        at
org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPROD
elegate.java:94)
        at
org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPR
ODelegate.java:132)
        at javax.rmi.PortableRemoteObject.unexportObject(Unknown Source)
        at
org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.ja
va:1548)



i commented  rmi-dispatcher and rmi-print server in ofbiz-containers.xml 

i made changes to entity-engine.xml to use mysql as said in site.

can u pass any link to this problem.

thanku
-- 
View this message in context: http://www.nabble.com/getting-exception-when-starting-ofbiz-tf2870021.html#a8021664
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: getting exception when starting ofbiz

Posted by Ashish Vijaywargiya <as...@adititechlabs.com>.
Rajesh,

Have a look on this links :
http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200610.mbox/%3CD4.19.24193.CB4A6254@idunn.apache.osuosl.org%3E

http://lists.ofbiz.org/pipermail/users/2005-September/009027.html

http://www.codecomments.com/archive420-2005-10-669780.html

&

http://www.opentaps.org/index.php?option=com_content&task=view&id=37&Itemid=62

I hope this will sort out your problem.

On 12/22/06, rajesh <ra...@gmail.com> wrote:
>
>
> first thanks for your good reply
>
> sorry i am getting different exception when using this command ant
> run-install to upload database
>
>
>
> org.ofbiz.base.start .startupException cannot start init() of jotm (unable
> to bind usertransaction)
>
> i think due to the port problem
>
>
> i have changed below lines of code in entity-engine.xml
>
> 1 .localhsql to localmysql
>
> <delegator name="default" entity-model-reader="main"
> entity-group-reader="main" entity-eca-reader="main"
> distributed-cache-clear-enabled="false">
>         <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
>     </delegator>
>
> 2. datasource
>
> <datasource name="localmysql"
>             helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
>             field-type-name="mysql"
>             check-on-start="true"
>             add-missing-on-start="true"
>             use-foreign-keys="true"
>             join-style="ansi-no-parenthesis"
>             alias-view-columns="true"
>             drop-fk-use-foreign-key-keyword="true"
>             table-type="InnoDB"
>             character-set="latin1"
>             collate="latin1_general_cs">
>         <read-data reader-name="seed"/>
>         <read-data reader-name="demo"/>
>         <read-data reader-name="ext"/>
>         <inline-jdbc
>                 jdbc-driver="com.mysql.jdbc.Driver"
>
> jdbc-uri="jdbc:mysql://127.0.0.1/opentaps?autoReconnect=true"
>                 jdbc-username="opentaps"
>                 jdbc-password="opentaps"
>                 isolation-level="ReadCommitted"
>                 pool-minsize="2"
>                 pool-maxsize="20"/>
>         <!-- <jndi-jdbc jndi-server-name="localjndi"
> jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
>     </datasource>
>
> and i have database opentaps and user opentaps with previlizes
>
>
>
> --
Regards
Ashish Vijaywargiya
Aditisoft Technology Laboratory

Re: getting exception when starting ofbiz

Posted by rajesh <ra...@gmail.com>.
first thanks for your good reply

sorry i am getting different exception when using this command ant
run-install to upload database 



org.ofbiz.base.start .startupException cannot start init() of jotm (unable
to bind usertransaction)

i think due to the port problem


i have changed below lines of code in entity-engine.xml

1 .localhsql to localmysql

<delegator name="default" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main"
distributed-cache-clear-enabled="false">
        <group-map group-name="org.ofbiz" datasource-name="localmysql"/>
    </delegator>

2. datasource  

 <datasource name="localmysql"
            helper-class="org.ofbiz.entity.datasource.GenericHelperDAO"
            field-type-name="mysql"
            check-on-start="true"
            add-missing-on-start="true"
            use-foreign-keys="true"
            join-style="ansi-no-parenthesis"
            alias-view-columns="true"
            drop-fk-use-foreign-key-keyword="true"
            table-type="InnoDB"
            character-set="latin1"
            collate="latin1_general_cs">
        <read-data reader-name="seed"/>
        <read-data reader-name="demo"/>
        <read-data reader-name="ext"/>
        <inline-jdbc
                jdbc-driver="com.mysql.jdbc.Driver"
               
jdbc-uri="jdbc:mysql://127.0.0.1/opentaps?autoReconnect=true"
                jdbc-username="opentaps"
                jdbc-password="opentaps"
                isolation-level="ReadCommitted"
                pool-minsize="2"
                pool-maxsize="20"/>
        <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> -->
    </datasource>

and i have database opentaps and user opentaps with previlizes





-- 
View this message in context: http://www.nabble.com/getting-exception-when-starting-ofbiz-tf2870021.html#a8023261
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: getting exception when starting ofbiz

Posted by Ashish Vijaywargiya <as...@adititechlabs.com>.
Rajesh,

>> when i am trying to run startofbiz.bat in platform  linux  and mysql and
i
I think you should try startofbiz.sh if you are using Linux plateform.

First try only "ant" command on the terminal and see if you are getting any
error.(This will build the whole project)
And then try ant run-install (This will create all the entities + demo data
in the database)

Can you please give more details about what you have changed in
entityengine.xml file ??
If you will provide more log info then it would be helpful to figure out
your problem.


On 12/22/06, rajesh <ra...@gmail.com> wrote:
>
>
> hi
>
> i am new to ofbiz. i have seen.it is very good.
> when i am trying to run startofbiz.bat in platform  linux  and mysql and i
> am using java 1.4.2.13 ,there are some errors
>
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> sun.rmi.transport.Object
> Table.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;
>         at
> org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObje
> ct(JUnicastRemoteObject.java:138)
>         at
> org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPROD
> elegate.java:94)
>         at
> org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPR
> ODelegate.java:132)
>         at javax.rmi.PortableRemoteObject.unexportObject(Unknown Source)
>         at
> org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.ja
> va:1548)
>
>
>
> i commented  rmi-dispatcher and rmi-print server in ofbiz-containers.xml
>
> i made changes to entity-engine.xml to use mysql as said in site.
>
> can u pass any link to this problem.
>
> thanku
> --
> View this message in context:
> http://www.nabble.com/getting-exception-when-starting-ofbiz-tf2870021.html#a8021664
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>
>


-- 
Regards
Ashish Vijaywargiya
Aditisoft Technology Laboratory