|
|
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
Добрый день товарищи девелоперы. Подскажите кто знает какие проперти нада указывать при создании контекста для BES'a. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 10:01 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
неужели никто не знает? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 16:49 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
по моему так: java.util.Properties props = new java.util.Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, "com.inprise.j2ee.jndi.CtxFactory"); props.put(Context.URL_PKG_PREFIXES, "com.inprise.j2ee.jndi"); javax.naming.Context besContext = new InitialContext(props); Скажешь помогло или нет ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:00 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
Пишет такое javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:07 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
После того как поставил конструктор с этими пропертями теперь такое javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial javax.naming.NoInitialContextException: Cannot instantiate class: com.inprise.j2ee.jndi.CtxFactory [Root exception is java.lang.ClassNotFoundException: com.inprise.j2ee.jndi.CtxFactory] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:12 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
тада нада наверна еще определить Context.PROVIDER_URL типа такого формата "чтото://10.1.1.1:9999/NameService" ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:17 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
nameservice - это что может быть? jndi? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:22 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
попробуюй чтото типа этого iiop://host:port ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:42 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
короче это расположение службы, следовательно, это URL.те тан название службы окторую ты запускаешь.те протокол/хост/порт если не ошибаюсь ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.07.2006, 18:52 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
В общем попробовал так props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory"); props.put(Context.URL_PKG_PREFIXES, "com.inprise.j2ee.jndi"); зops.put(Context.PROVIDER_URL, "iiop://192.168.8.18:14000/"); Пишет org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x0 minor code: 0 completed: No ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 11:33 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
такс вообщем давай так попробуй выставить следующие проперти для jvm javax.rmi.CORBA.UtilClass=com.inprise.vbroker.rmi.CORBA.UtilImpl javax.rmi.CORBA.StubClass=com.inprise.vbroker.rmi.CORBA.StubImpl javax.rmi.CORBA.PortableRemoteObjectClass=com.inprise.vbroker.rmi.CORBA.PortableRemoteObjectImpl vbroker.agent.port=14000 org.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORBSingleton org.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB код пиши так ava.util.Properties props = new java.util.Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, "com.inprise.j2ee.jndi.CtxFactory"); props.put(Context.URL_PKG_PREFIXES, "com.inprise.j2ee.jndi"); javax.naming.Context besContext = new InitialContext(props); если не получится попробуй добавить еще одну проперти vbroker.agent.addr=ip_address ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 13:51 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
второе попробуй по старому у тебя порт неверно скорей всего указан ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 14:00 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
ну тчо получилось? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 15:20 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
Упарился чесслово. Теперь вот javax.naming.NoInitialContextException: Cannot instantiate class: com.inprise.j2ee.jndi.CtxFactory [Root exception is java.lang.ClassNotFoundException: com.inprise.j2ee.jndi.CtxFactory] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 15:51 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
порт правильный проверил в настройках сервака ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 15:55 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
не видит библиотеку попробуй так в опции запуска дообавить -Djava.naming.factory.initial=com.inprise.j2ee.jndi.CtxFactory -Djava.naming.factory.url.pkgs=com.inprise.j2ee.jnd и видит ли приложение asrt.jar lm.jar vbjorb.jar vbsec.jar вроде так ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 16:38 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
Ok попробую, отпишу завтра. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.07.2006, 16:42 |
|
||
|
Хелп BES + initialcontext
|
|||
|---|---|---|---|
|
#18+
Спасибо за помощь всё получилось. Действительно не хватало классов из asrt.jar ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.07.2006, 11:39 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33864610&tid=2148619]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
167ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
44ms |
get tp. blocked users: |
1ms |
| others: | 217ms |
| total: | 465ms |

| 0 / 0 |
