2013年9月2日星期一

weblogic9.2 + SSH framework myeclipce error

publish items Seek expert help solve what Thank you very much
newspaper I could not find an entity class in tomcat6.4 released under the weblogic9.2 to run into a problem


serious : Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation ; of init method failed; nested exception is org.hibernate.MappingException: entity class not found: com.accp.entity.CeShi
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java: 1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java: 473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $ 1.run (AbstractAutowireCapableBeanFactory.java: 409)
at java.security.AccessController.doPrivileged (Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java: 380)
at org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject (AbstractBeanFactory.java: 264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java: 222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java: 261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java: 185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java: 164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java: 423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java: 728)
at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java: 380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java: 255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java: 199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java: 45)
at weblogic.servlet.internal.EventsManager $ FireContextListenerAction.run (EventsManager.java: 375)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java: 321)
at weblogic.security.service.SecurityManager.runAs (SecurityManager.java: 121)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent (EventsManager.java: 83)
at weblogic.servlet.internal.WebAppServletContext.preloadResources (WebAppServletContext.java: 1591)
at weblogic.servlet.internal.WebAppServletContext.start (WebAppServletContext.java: 2734)
at weblogic.servlet.internal.WebAppModule.startContexts (WebAppModule.java: 892)
at weblogic.servlet.internal.WebAppModule.start (WebAppModule.java: 336)
at weblogic.application.internal.flow.ModuleStateDriver $ 3.next (ModuleStateDriver.java: 204)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.flow.ModuleStateDriver.start (ModuleStateDriver.java: 60)
at weblogic.application.internal.flow.ScopedModuleDriver.start (ScopedModuleDriver.java: 200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start (ModuleListenerInvoker.java: 117)
at weblogic.application.internal.flow.ModuleStateDriver $ 3.next (ModuleStateDriver.java: 204)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.flow.ModuleStateDriver.start (ModuleStateDriver.java: 60)
at weblogic.application.internal.flow.StartModulesFlow.activate (StartModulesFlow.java: 26)
at weblogic.application.internal.BaseDeployment $ 2.next (BaseDeployment.java: 641)
at weblogic.application.utils.StateMachineDriver.nextState (StateMachineDriver.java: 26)
at weblogic.application.internal.BaseDeployment.activate (BaseDeployment.java: 229)
at weblogic.application.internal.DeploymentStateChecker.activate (DeploymentStateChecker.java: 154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate (AppContainerInvoker.java: 80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate (BasicDeployment.java: 181)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle (BasicDeployment.java: 352)
at weblogic.management.deploy.internal.DeploymentAdapter $ 1.doActivate (DeploymentAdapter.java: 52)
at weblogic.management.deploy.internal.DeploymentAdapter.activate (DeploymentAdapter.java: 186)
at weblogic.management.deploy.internal.AppTransition $ 2.transitionApp (AppTransition.java: 30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps (ConfiguredDeployments.java: 233)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate (ConfiguredDeployments.java: 169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy (ConfiguredDeployments.java: 123)
at weblogic.management.deploy.internal.DeploymentServerService.resume (DeploymentServerService.java: 173)
at weblogic.management.deploy.internal.DeploymentServerService.start (DeploymentServerService.java: 89)
at weblogic.t3.srvr.SubsystemRequest.run (SubsystemRequest.java: 64)
at weblogic.work.ExecuteThread.execute (ExecuteThread.java: 209)
at weblogic.work.ExecuteThread.run (ExecuteThread.java: 181)
Caused by: org.hibernate.MappingException: entity class not found: com.accp.entity.CeShi
at org.hibernate.mapping.PersistentClass.getMappedClass (PersistentClass.java: 122)
at org.hibernate.tuple.PropertyFactory.getGetter (PropertyFactory.java: 191)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty (PropertyFactory.java: 67)
at org.hibernate.tuple.entity.EntityMetamodel. (EntityMetamodel.java: 136)
at org.hibernate.persister.entity.AbstractEntityPersister. (AbstractEntityPersister.java: 456)
at org.hibernate.persister.entity.SingleTableEntityPersister. (SingleTableEntityPersister.java: 131)
at org.hibernate.persister.PersisterFactory.createClassPersister (PersisterFactory.java: 84)
at org.hibernate.impl.SessionFactoryImpl. (SessionFactoryImpl.java: 267)
at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java: 1341)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java: 814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (LocalSessionFactoryBean.java: 732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet (AbstractSessionFactoryBean.java: 211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java: 1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java: 1335)
... 50 more
Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass () failed for: 'com.accp.entity.CeShi'
at weblogic.utils.classloaders.GenericClassLoader.findClass (GenericClassLoader.java: 265)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass (ChangeAwareClassLoader.java: 54)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 306)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass (GenericClassLoader.java: 158)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass (ChangeAwareClassLoader.java: 42)
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java: 319)
at java.lang.Class.forName0 (Native Method)
at java.lang.Class.forName (Class.java: 164)
at org.hibernate.util.ReflectHelper.classForName (ReflectHelper.java: 192)
at org.hibernate.mapping.PersistentClass.getMappedClass (PersistentClass.java: 119)
... 63 more
Caused by: java.lang.UnsupportedClassVersionError: Bad version number in. class file
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java: 620)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java: 124)
at weblogic.utils.classloaders.GenericClassLoader.defineClass (GenericClassLoader.java: 338)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass (GenericClassLoader.java: 291)
at weblogic.utils.classloaders.GenericClassLoader.findClass (GenericClassLoader.java: 259)
... 73 more

------ Solution ------------------------------------ --------
Bad version number in. class file is the wrong version of it. Look at the requirements of the corresponding weblogic jdk editing environment is few .
------ Solution ---------------------------------------- ----
weblogic9 support jdk1.5 right

window ---> myeclipse enterprise workbench ---> servers ---> weblogic -> weblogic9.x--> jdk
jdk configured here and not the same as when you compile
------ For reference only ----------------------- ----------------


get a thank you ~
------ For reference only ---------------------------- -----------


Thank you ~ successful

tomcat starts normally but can not access http://localhost:8080

tomcat -extracting version of the configuration information
CATALINA_HOME C: \ apache-tomcat-6.0.33
JAVA_HOME C: \ Java \ jdk1.6.0_21
PATH C: \ Java \ jdk1.6.0_21 \ bin
CLASSPATH.; C: \ Java \ jdk1.6.0_21 \ lib \ dt.jar; C: \ Java \ jdk1.6.0_21 \ lib \ tools.jar

tomcat startup information
2011-12-2 19:28:06 org.apache.catalina.core.AprLifecycleListener init
Information : The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C: \ Java \ jdk
1.6.0_21 \ bin;.; C: \ WINDOWS \ Sun \ Java \ bin; C: \ WINDOWS \ system32; C: \ WINDOWS; C: \ WINDOWS
\ system32; C: \ WINDOWS; C: \ WINDOWS \ System32 \ Wbem; C: \ Program Files \ Common Files \ Thun
der Network \ KanKan \ Codecs; C: \ Java \ jdk1.6.0_21 \ bin
2011-12-2 19:28:06 org.apache.coyote.http11.Http11Protocol init
Information : Initializing Coyote HTTP/1.1 on http-8080
2011-12-2 19:28:06 org.apache.catalina.startup.Catalina load
Information : Initialization processed in 409 ms
2011-12-2 19:28:07 org.apache.catalina.core.StandardService start
Information : Starting service Catalina
2011-12-2 19:28:07 org.apache.catalina.core.StandardEngine start
Information : Starting Servlet Engine: Apache Tomcat/6.0.33
2011-12-2 19:28:07 org.apache.catalina.startup.HostConfig deployDescriptor
Information : Deploying configuration descriptor host-manager.xml
2011-12-2 19:28:07 org.apache.catalina.startup.HostConfig deployDescriptor
Information : Deploying configuration descriptor manager.xml
2011-12-2 19:28:07 org.apache.catalina.startup.HostConfig deployDirectory
Information : Deploying web application directory docs
2011-12-2 19:28:07 org.apache.catalina.startup.HostConfig deployDirectory
Information : Deploying web application directory examples
2011-12-2 19:28:07 org.apache.catalina.startup.HostConfig deployDirectory
Information : Deploying web application directory ROOT
2011-12-2 19:28:07 org.apache.coyote.http11.Http11Protocol start
Information : Starting Coyote HTTP/1.1 on http-8080
2011-12-2 19:28:07 org.apache.jk.common.ChannelSocket init
Information : JK: ajp13 listening on / 0.0.0.0:8009
2011-12-2 19:28:07 org.apache.jk.server.JkMain start
Information : Jk running ID = 0 time = 0/16 config = null
2011-12-2 19:28:07 org.apache.catalina.startup.Catalina start
Information : Server startup in 400 ms



http://localhost:8080 not display welcome screen
------ Solution ------------------------ --------------------

there java.exe on the line. . I was wrong more than one x. . .
------ Solution ---------------------------------------- ----
1. pages What tips ? 1 ) Can not find server ; 2 ) 404 ; 3 ) 500 which
2. If 1.1 is knocking on the wrong address and port ; 2.2 uri wrong, it may be project issues ; 3 ) abnormal program
------ Solution ------- -------------------------------------
win7 version of unzip tomcat ; can not automatically configure the environment variables , you need to manually configure , or need tomcat root directory / bin / startup.bat to launch will be able to visit.
------ Solution ---------------------------------------- ----
the last few days I have encountered in project development in this case , the port is configured correctly , can open the project but can not open the Tomcat home page. This is the MyEclipse I changed my Tomcat configuration file. I recommend the free installation with the landlord , to delete the re- copy a ~ ~ ~ I was solved , looking for a long time do not know what the problem
------ For reference only ---- -----------------------------------
is not a project is not added to the configuration window that tomcat servers Lane ?
------ For reference only -------------------------------------- -
port is not occupied under the root index.jsp also
------ For reference only ---------- -----------------------------
beginning configure tomcat are unable to visit the Welcome screen No where in myeclipse configuration
------ For reference only ------------------------------ ---------
add http://127.0.0.1:8080 can not access
------ For reference only ------- --------------------------------
port right ah ~ ~ ~
----- - For reference only ---------------------------------------
port no problem ; have not been occupied
------ For reference only ------------------------------ ---------


------ For reference only ---------------------- -----------------
see you tomcat no error. . If the environment variable is changed after , then look at C: \ Java \ jdk1.6.0_21 \ bin below is not a javax.exe. .
If you can not find the problem . . Here it is to see if there webapps ROOT project . . . Must have the project. . . .
------ For reference only -------------------------------------- -
environment variable with the wrong
------ For reference only ----------------------------- ----------

my c: Java \ jdk1.6.0_21 \ bin under no javax.exe, but there java.exe. What is the reason for this ?
------ For reference only -------------------------------------- -
my classmates also the emergence of this problem, he re- installed a myeclipse8.5 and tomcat Jiuhaola
------ For reference only ----- ----------------------------------
I also use the installation version of the tried, or not.
------ For reference only -------------------------------------- -
the ClassPath set .; C: \ Java \ jdk1.6.0_21 \ lib
behind the jar is not needed
------ For reference only ---------------------------- -----------
classmates computers can I use my own computer , but I can not this what causes it
------ For reference only ---- -----------------------------------
what prompts appear if it is the case then there is no error page may be a problem restart the browser and then see if you can open
------ For reference only -------------- -------------------------
there is no prompt 404
------ For reference only ------ ---------------------------------
I reinstall the system after it
--- --- For reference only ---------------------------------------
appears this My problem seems to be the school's Internet client issues do not know the conflict ?
------ For reference only -------------------------------------- -
I have listening ports netstat-an 8080 had not been occupied
------ For reference only -------------- -------------------------
constantly start and stop services , tried several times to enough

About Myelipse introduction of web projects

I created a new web project wants to come before the introduction of web project , point inport-general-existing projects into workspace and then

Select the current workspace directory , but search out the projects are gray and can not be introduced , giving the error message is Some projects cannot be

imported because they already exist in the workspace Is this what's causing it ? Solution , what is it ? waiting for experts to answer ! ! !
------ Solution ---------------------------------------- ----

copying files directly related to the new project workspace under the appropriate folder , and then right-click the project name myeclipse refresh on it
------ For reference only ---------------------------------------
to determine this web project there webroot , etc., prior to the workspace are deleted ~
------ For reference only ------------------------- --------------
troublesome thing clear , you said this means that this is a new web project it or previous project? "Workspace in the previous" What does it mean something ?
------ For reference only -------------------------------------- -
  This reply was moderator deleted at 2011-04-14 09:19:08

------ For reference only ---------------------------------- -----
to introduce the project already exists in the current workspace , first in Eclipse, delete, and then introduce
------ For reference only --------- ------------------------------
but my new project name and project name is not the same old , ah, not the same as the project name content as it is not allowed ? Oh, no


------ For reference only ---------------------------------- -----
I know how it is , the original meaning of the introduction of this project is that I only old web project to introduce something into a new web project changed how ?
--- --- For reference only ---------------------------------------
I there is no way to solve the same problem
------ For reference only ------------------------------- --------
this problem is a headache
------ For reference only ----------------------- ----------------

------ For reference only ------------------------------ ---------
good projects to add deleted , plus another when Some projects cannot be imported because they already exist in the workspace. Then do not hook the copy check box , the point right refresh.



tomcat deployment by the windows ported to linux deployment issuesraised

Please prawn help, thank you Ah ! ! ! !

my project before the program is packaged into . war file , Tomcat installed on the XP system for deployment , everything is normal.
but the same . war file , I put the Tomcat installation in linux system, deployment , you can not find the Action page , you can not jump , and return a 404 , do not know why . From the Internet to find information said to be XP and linux systems are different, the corresponding change of the next , there is no effect .
Please help , in the end is what causes the A ? ? ? ? ? ? ? ? ? ? ? ? ?
------ Solution ---------------------------------------- ----
path symbol is not in the code written death , or see if there is an error log
------ Solution ---------------- ----------------------------
Dingding Ding Ding Ding ! ! !
------ For reference only -------------------------------------- -


no error log A , looking for action page, directly on the 404 .
path I always wrote " / " right slash , the Internet has to say linux should be " \ " right slash , but after I changed , or no effect .

You said path symbols written death , refers to the absolute path to write it?
------ For reference only -------------------------------------- -
jacking . .
------ For reference only -------------------------------------- -
not ACTION , I can access the page does not
------ For reference only ------------------------- --------------


no action , then you can access to the page. As long as they jump to action , and does not identify the path of the . A very tangled .
prawns, I help it ! ! ! ! 5555555555555555555 !
------ For reference only -------------------------------------- -
debug what the ACTION, look at the implementation situation how
------ For reference only ----------------------- ----------------
look specifically at what the error log

------ For reference only ---------------------------------- -----
normal circumstances, are case trouble .

windows is not case sensitive , as the case was wrong to find the page you want .

linux below will be a problem .

few days ago I deployed a project , change the N number of sensitive issues .

proposed landlord to log out , we facilitate you to see
------ For reference only ---------------------- -----------------
look at the tomcat logs, is king

cd / path / to / tomcat / logs
tail-f catalina.out
------ For reference only -------------------------- -------------


not visit the page without logging ah
------ For reference only ------------------------ ---------------
there may be installed under windows and linux installed under jdk jdk version is not the same, causing it ?
------ For reference only -------------------------------------- -


tomcat startup time log
------ For reference only ----------------------------- ----------

2013年8月31日星期六

Ubutun install qemu software problems

 This post last edited by the qhmilanista on 2012-03-01 00:56:58
I downloaded one to qh @ qh-VirtualBox: ~ / Downloads $ qemu.tar.gz package
then qh @ qh-VirtualBox: ~ / Downloads $ tar-zxvf qemu.tar.gz
appear qemu-1.0.1 folder
then continue into the conduct configure:

qh @ qh-VirtualBox: ~ / download / qemu-1.0.1 $. / configure

Error: zlib check failed
Make sure to have the zlib libs and headers installed.

why it went wrong ah, the solution should be how to install?
------ Solution ---------------------------------------- ----
sudo apt-get install libglib2.0-dev, that's it!
------ Solution ---------------------------------------- ----
apt-get the easy way
apt-get install qemu qemu-kvm
------ For reference only --------------------- ------------------
installed zlib ah ..
------ For reference only ------------ ---------------------------


I have zlib installed, and then make or wrong eh

qh @ qh-VirtualBox: ~ / download / qemu-1.0.1 $. / configure
glib-2.0 required to compile QEMU
qh @ qh-VirtualBox: ~ / download / qemu-1.0.1 $ make
Please call configure before running make!
make: *** [config-host.mak] Error 1



is also download glib-2.0 Why? Thank
------ For reference only ------------------------------------- -
no master Well
------ For reference only ------------------------------ ---------

see. / configure the result of what is missing pretend to have been a re-make
------ For reference only ----- ----------------------------------
Why not go to the Software Center installed it?
------ For reference only -------------------------------------- -
the same problem, try can live without
------ For reference only ------------------------- --------------
short answer:

sudo apt-get install zlib1g
sudo apt-get install libglib2.0-dev


Comments:
[Resolved] Ubuntu install QEMU in the configuration error: ERROR: zlib check failed

[Resolved] Ubuntu configure QEMU error: ERROR: glib-2.12 required to compile QEMU


emacs installed yasnippet failed

 This post last edited by the kingyaying on 2013-03-27 21:16:28
I yasnippet-bundle.el into ~ / .emacs.d / plugins and then add the file ~ /. emacs

contents inside :

(add-to-list 'load-path
"~ / .emacs.d / plugins")
(require 'yasnippet-bundle)

then restart emacs, emacs window mode , but no increase in yasnippet menus, command line inside there, how to come out of window mode menu it ?
------ Solution -------------------------------------- ------
not using emacs, command line, start the line

CentOS5.5 yum install test problems

I var / www / html folder below built a test.html file , enter the address in your browser : http://127.0.0.1/test.html error , the error is as follows:
Forbidden
You don't have permission to acces / test.html on this server.
Apache/2.2.3 (CentOS) Server at 127.0.0.1 Port 80.

help, how to solve the country
------ Solution ------------------------------- -------------
test.html permissions are ?
------ For reference only -------------------------------------- -
problem solved. Thank