TomE ning OpenEJB namunali veb-brauzeriga kirishda xatoliklarni qidirish

OpenEJB yordamida oddiy veb-brauzer yozmoqchiman. Tomey loyihasidan namuna kodi (webapps/ejb-webcode) bilan boshladim:

http://www.apache.org/dyn/closer.cgi/openejb/4.0.0-beta-1/examples-4.0.0-beta-1-src.tar.gz

Xizmat sinfida izohlar mavjud:

@Stateless
@WebService(portName = "CalculatorPort",
        serviceName = "CalculatorWebService",
        targetNamespace = "http://superbiz.org/wsdl")
public class Calculator {
    public int sum(int add1, int add2) {
        return add1 + add2;
    }

    public int multiply(int mul1, int mul2) {
        return mul1 * mul2;
    }
}

Hamma narsa yaxshi. Urushni serverga tarqatishda hech qanday muammo yo'q (men TomEE 1.0.0-beta-1-webprofile-dan foydalanaman), lekin bu veb-brauzerga kirishga harakat qilib, ichki OpenEJB usulidan bir qator NameNotFoundExceptionni ishga tushiradi:

2011-10-27 21:54:32,029 - ERROR - Error in safeBind method
javax.naming.NameNotFoundException: Name openejb is not bound in this Context
...
2011-10-27 21:54:32,031 - ERROR - Error in safeBind method
javax.naming.NameNotFoundException: Name TransactionManager is not bound in this Context
...
2011-10-27 21:54:32,033 - ERROR - Error in safeBind method
javax.naming.NameNotFoundException: Name TransactionSynchronizationRegistry is not bound in this Context
...
2011-10-27 21:54:32,034 - ERROR - Error in safeBind method
javax.naming.NameNotFoundException: Name ORB is not bound in this Context
...
2011-10-27 21:54:32,036 - ERROR - Error in safeBind method
javax.naming.NameNotFoundException: Name HandleDelegate is not bound in this Context

Men shunga o'xshash qo'ng'iroq xatoligiga ega bo'lgan postni topdim:

http://openejb.979440.n4.nabble.com/EJB-2-1-OpenEJB-Tomcat-Datasource-Name-openejb-is-not-bound-in-this-Context-td3331555 .html

ammo muammo nom qidirish usulini qo'llash edi. Misol kodida aniq qo'ng'iroqlar mavjud emas.

Bu muammoning sababi nimada bo'lishi mumkinligini kimdir tushunishi mumkinmi?

1
TomEE veb-sahifasi JAX-WS-ni qo'llab-quvvatlamaydi. TomEE Plus ishlaydi. Buni sinab ko'rsata olasizmi?
qo'shib qo'ydi muallif David Blevins, manba
TomEE Plusga ko'chirish muammoni hal qildi. Rahmat.
qo'shib qo'ydi muallif user917938, manba

1 javoblar

Buni javob sifatida ko'chirish, chunki boshqalar uni stackoverflow qidiruvida hal qilingan deb hisoblashlariga yordam berishi mumkin.

Biznes JAX-RS va JMS kabi boshqa texnologiyalarga qo'shimcha ravishda JAX-WS ni qo'llab-quvvatlaydigan Tomey Plus-dan foydalanish.

2
qo'shib qo'ydi