ÉèΪÊ×Ò³Êղر¾Õ¾

AnyChat¼¼ÊõÖ§³ÖÂÛ̳

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 75638|»Ø¸´: 87
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

AnyChatÒµÎñ·þÎñÆ÷²¿Êðµ½java WebÈÝÆ÷ÏêϸÁ÷³Ì

[¸´ÖÆÁ´½Ó]

5

Ö÷Ìâ

1269

Ìû×Ó

3677

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
3677
Ìøתµ½Ö¸¶¨Â¥²ã
Â¥Ö÷
·¢±íÓÚ 2013-11-20 16:07:11 | Ö»¿´¸Ã×÷Õß »ØÌû½±Àø |µ¹Ðòä¯ÀÀ |ÔĶÁģʽ
AnyChat×îа汾µÄJAVAÒµÎñ·þÎñÆ÷Ö§³ÖJava WebÈÝÆ÷²¿Êð·½Ê½£¬ÎÒÃǵÄsdk°ü£¨AnyChat for Windows SDK¡¢AnyChat for Linux SDK£©ÖÐÒ²ÌṩÁ˶ÔÓ¦µÄJAVA WEB¹¤³Ì£¬¹¤³ÌµÄ·¾¶ÊÇsrc\server\java\AnyChat4SpringMVC¡£

ÏÂÃæÒÔAnyChat4SpringMVC¹¤³ÌΪÀý£¬½éÉÜJava WebÈÝÆ÷²¿Êð·½Ê½¡£
1¡¢ÏÂÔØ°²×°tomcat£¬²¢¸ù¾Ý²»Í¬µÄƽ̨×öÏàÓ¦ÅäÖá£

2¡¢ÏÂÔØ°²×°myeclipse£¬²¢½«°²×°ºÃµÄtomcat¼¯³Éµ½myeclipseÖÐ

3¡¢½«AnyChat4SpringMVC¹¤³Ìµ¼Èëµ½myeclipseÖС£AnyChat4SpringMVC¹¤³ÌÓõ½ÁËspring 3.0.5¿ò¼Ü£¬ÐèÒªÊÖ¶¯Ìí¼Óspring 3.0.5¿ò¼ÜµÄ¿âÎļþÒÔ¼°commons-logging.jarÎļþ¡£spring 3.0.5¿ò¼ÜµÄ¿âÎļþ¿ÉÒÔµ½springµÄ¹ÙÍøÉÏÃæÏÂÔØ£¬ÏÂÔصØÖ·£ºhttp://projects.spring.io/spring-framework/#quick-start

4¡¢½«AnyChat4SpringMVC¹¤³Ì²¿Êðµ½tomcatÖÐ.

5¡¢Èç¹û²¿ÊðÔÚWindowsÉÏÃ棬½«JAVAÒµÎñ·þÎñÆ÷ÐèÒªµÄÁ½¸ö¿âÎļþanychatserver4java.dll¡¢AnyChatServerSDK.dll·Åµ½tomcatµÄbinĿ¼ÏÂÃ棬ÀýÈçD:\Program Files\apache-tomcat-6.0.35\bin.²¢½«tomcatµÄbinĿ¼¼ÓÈ뵽ϵͳpath»·¾³±äÁ¿£º
  1. set path="D:\Program Files\apache-tomcat-6.0.35\bin";%PATH%
¸´ÖÆ´úÂë
6¡¢Èç¹û²¿ÊðÔÚLinuxÉÏÃ棬ÔòÐèÒª½«JAVAÒµÎñ·þÎñÆ÷ÐèÒªµÄÁ½¸ö¿âÎļþlibanychatserver4java.so¡¢libanychatserversdk.so·Åµ½jreµÄlibĿ¼ÏÂÃ棬ÀýÈç/usr/work/java/jdk1.6.0_21/jre/lib£¬²¢½«jreµÄlib¼ÓÈ뵽ϵͳLD_LIBRARY_PATH»·¾³±äÁ¿£º
  1. export LD_LIBRARY_PATH=/usr/work/java/jdk1.6.0_21/jre/lib:$LD_LIBRARY_PATH
¸´ÖÆ´úÂë
7¡¢Æô¶¯tomcat£¬ÕâÑùAnyChatÒµÎñ·þÎñÆ÷¾ÍËæ×ÅtomcatÒ»Æð¼ÓÔØÁË¡£Èç¹ûmyeclipseµÄConsoleÊÓͼÏÔʾÈçÏÂÈÕÖ¾£º
  1. V4.8 Build Time:Oct 17 2013 11:55:04
  2. 11-20 15:14:48:953  Connect AnyChatCoreServer successed!
¸´ÖÆ´úÂë
¾Í±íÃ÷AnyChatÒµÎñ·þÎñÆ÷Æô¶¯³É¹¦ÁË


´úÂë˵Ã÷£ºÔÚ±ê×¼µÄJ2SEµÄ¹¤³ÌÉÏÃæת»»µ½J2EE µÄjava web¹¤³ÌÐèҪעÒâÁ½µã£º
a¡¢J2SEµÄ¹¤³ÌÖгõʼ»¯sdkÖ®ºó£¬ÐèҪע²áAnyChatVerifyUserOutParamÀ࣬µ÷ÓôúÂëÈçÏ£º
  1. anychatserver.InitSDK(0); // ³õʼ»¯SDK
  2. anychatserver.RegisterVerifyUserClass(new AnyChatVerifyUserOutParam());
¸´ÖÆ´úÂë
b¡¢½«J2SEµÄ¹¤³ÌµÄÁ½¸ö°üµ¼Èëµ½web¹¤³Ì£¬È»ºóÔÚservletµÄÅäÖÃÎļþÖÐÌí¼ÓÈçÏÂÅäÖãº
  1. <bean id="anyChat" lazy-init="false" class="com.bairuitech.server.BusinessServer" init-method="initSdk"/>
¸´ÖÆ´úÂë
ÕâÑù¾ÍÄÜÈÃAnyChatÒµÎñ·þÎñÆ÷Ëæ×ÅtomcatÒ»Æð¼ÓÔØÁË¡£





·ÖÏíµ½:  QQºÃÓѺÍȺQQºÃÓѺÍȺ QQ¿Õ¼äQQ¿Õ¼ä ÌÚѶ΢²©ÌÚѶ΢²© ÌÚѶÅóÓÑÌÚѶÅóÓÑ
ÊÕ²ØÊÕ²Ø1
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

0

Ö÷Ìâ

3

Ìû×Ó

10

»ý·Ö

ÐÂÊÖÉÏ·

Rank: 1

»ý·Ö
10
ɳ·¢
·¢±íÓÚ 2014-1-14 14:05:03 | Ö»¿´¸Ã×÷Õß
hi£¬ÄãºÃ£¡
ÎÒÃÇ´òË㲿ÊðAnyChat4SpringMVCµ½tomcat5.5ÉÏ¡£
1£¬ÏÂÔØ×îа汾³ÌÐòv4.9£¬°´ÕÕ˵Ã÷½«AnyChat4SpringMVCÔ´Â벿Êð½ømyelicpseÖС£
2£¬ÒѾ­½«anychatserver4java.dll¡¢AnyChatServerSDK.dll·Åµ½tomcatµÄbin¡£
3£¬Æô¶¯tomcat£¬·¢ÏÖ±¨´í£¬ÈçÏ£º
2014-1-14 13:57:24 org.apache.catalina.core.StandardContext loadOnStartup
ÑÏÖØ: Servlet /springmvc threw load() exception
java.lang.UnsatisfiedLinkError: D:\tomcat5.5_cluster\apache-tomcat-5.5.35\bin\anychatserver4java.dll: ÕÒ²»µ½Ö¸¶¨µÄ³ÌÐò¡£

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
°åµÊ
·¢±íÓÚ 2014-1-14 14:08:33 | Ö»¿´¸Ã×÷Õß
½¨Ò齫£ºD:\tomcat5.5_cluster\apache-tomcat-5.5.35\bin\ ¼ÓÈëϵͳµÄpath·¾¶£¬È»ºóÔÙ¿´¿´ÊÇ·ñ¿ÉÐУ¿

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
µØ°å
·¢±íÓÚ 2014-1-14 14:10:16 | Ö»¿´¸Ã×÷Õß
ÁíÍâÕâ¸ö·¾¶ÏµÄÎļþÊÇ·ñ´æÔÚ£ºD:\tomcat5.5_cluster\apache-tomcat-5.5.35\bin\anychatserver4java.dll £¿

4

Ö÷Ìâ

13

Ìû×Ó

68

»ý·Ö

×¢²á»áÔ±

Rank: 2

»ý·Ö
68
5#
·¢±íÓÚ 2014-1-14 14:54:36 | Ö»¿´¸Ã×÷Õß
1£¬ÎÒÃÇÒѾ­½«tomcat/bin¼ÓÈëֻϵͳ»·¾³±äÁ¿ÖÐÁË¡£
2£¬D:\tomcat5.5_cluster\apache-tomcat-5.5.35\bin\anychatserver4java.dll £¬ÒÑÈ·ÈÏÕâ¸ö·¾¶ÏµÄÎļþÊÇ´æÔڵġ£

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
6#
·¢±íÓÚ 2014-1-14 14:56:19 | Ö»¿´¸Ã×÷Õß
ÄúµÄjava»·¾³ÊÇ64bitµÄÂð£¿Ä¿Ç°ÔÝʱֻÓÐlinux°æ±¾µÄsdk²ÅÄÜÖ§³Ö64bitµÄjava»·¾³¡£

4

Ö÷Ìâ

13

Ìû×Ó

68

»ý·Ö

×¢²á»áÔ±

Rank: 2

»ý·Ö
68
7#
·¢±íÓÚ 2014-1-14 15:45:03 | Ö»¿´¸Ã×÷Õß
ÎÒÃÇjavaÊÇ32λµÄ£¬Win7²Ù×÷ϵͳ¡£¡£¡£

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
8#
·¢±íÓÚ 2014-1-14 16:04:12 | Ö»¿´¸Ã×÷Õß
ÄúºÃ£¬Çë³¢ÊÔ½«Á½¸ö¿âÎļþanychatserver4java.dll¡¢AnyChatServerSDK.dll·Åµ½system32Ŀ¼Ï£¬¿´ÊÇ·ñ¿ÉÐУ¿

0

Ö÷Ìâ

3

Ìû×Ó

10

»ý·Ö

ÐÂÊÖÉÏ·

Rank: 1

»ý·Ö
10
9#
·¢±íÓÚ 2014-1-14 17:11:27 | Ö»¿´¸Ã×÷Õß
ÏÖÔÚÎÒÃdz¢ÊÔÔÚlinuxϲ¿Ê𡣡£¡£
·¢ÏÖ³ÌÐòÔËÐк󣬳öÏÖÈçÏ´íÎó£º Çë°ï棡~
Apr 15, 2013 1:45:26 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3a42c186: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,urlMapping,loginController,methodNameResolver,paraMethodResolver,org.springframework.web.servlet.view.InternalResourceViewResolver#0,exceptionResolver,anyChat]; root of factory hierarchy
Apr 15, 2013 1:45:26 PM org.springframework.web.servlet.FrameworkServlet initServletBean
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'anyChat' defined in ServletContext resource [/WEB-INF/AnyChat4SpringMVC-servlet.xml]: Invocation of init method failed; nested exception is java.lang.UnsatisfiedLinkError: no anychatserver4java in java.library.path

249

Ö÷Ìâ

2967

Ìû×Ó

9108

»ý·Ö

¹ÜÀíÔ±

Rank: 9Rank: 9Rank: 9

»ý·Ö
9108
10#
·¢±íÓÚ 2014-1-14 17:20:12 | Ö»¿´¸Ã×÷Õß
nested exception is java.lang.UnsatisfiedLinkError: no anychatserver4java in java.library.path

Çë²Î¿¼£ºÈç¹û²¿ÊðÔÚLinuxÉÏÃ棬ÔòÐèÒª½«JAVAÒµÎñ·þÎñÆ÷ÐèÒªµÄÁ½¸ö¿âÎļþanychatserver4java.so¡¢AnyChatServerSDK.so·Åµ½jreµÄlibĿ¼ÏÂÃ棬ÀýÈç/usr/work/java/jdk1.6.0_21/jre/lib

ÁíÍâÇëÈ·ÈÏÄúµÄjava°æ±¾ºÍËùÏÂÔصÄsdkµÄ°æ±¾Ò»Ö£¬¶¼ÊÇ32bit£¬»ò¶¼ÊÇ64bit£¬Ð»Ð»¡£
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

Archiver|ÊÖ»ú°æ|AnyChat ( ÔÁICP±¸13022410ºÅ-1 )  

GMT+8, 2024-11-23 11:02 , Processed in 0.141343 second(s), 22 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí