`
JessicaLadygaga
  • 浏览: 2842 次
  • 性别: Icon_minigender_2
  • 来自: 济南
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

SSH 框架相关问题

阅读更多
1。。。。。
严重: Servlet.service() for servlet struts threw exception
java.lang.IllegalArgumentException: id to load is required for loading
at org.hibernate.event.LoadEvent.<init>(LoadEvent.java:74)
at org.hibernate.event.LoadEvent.<init>(LoadEvent.java:56)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:819)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:815)
at org.hibernate.ejb.AbstractEntityManagerImpl.getReference(AbstractEntityManagerImpl.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:197)
at $Proxy53.getReference(Unknown Source)
at cn.china.service.base.DaoSupport.delete(DaoSupport.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy55.delete(Unknown Source)
at cn.china.web.action.message.MessageManageAction.delete(MessageManageAction.java:210)



2。。。
Exception in thread "Timer-4" java.lang.OutOfMemoryError: PermGen space


1;;;res://ieframe.dll/http_400_webOC.htm#http://localhost:8080/control/callinfo/citymessage/list.do&city=JINAN

http://localhost:8080/city/control/callinfo/citymessage/list.do&city=HEZE
2'''
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: cn.china.bean.message.CityMessageLog.cityMessage -> cn.china.bean.message.CityMessage

3;;;
<input type="button" name="" value="返回列表" onclick="location.href='/control/knowledge/list.do?knowledgeType=6';">


Connection-specific DNS Suffix  . : domain
IP Address. . . . . . . . . . . . : 192.168.1.102
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1


1......
MIME类型就是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问的时候,浏览器会自动使用指定应用程序来打开。多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。   MIME的英文全称是"Multipurpose Internet Mail Extensions" 多功能Internet 邮件扩充服务,它是一种多用途网际邮件扩充协议,在1992年最早应用于电子邮件系统,但后来也应用到浏览器。服务器会将它们发送的多媒体数据的类型告诉浏览器,而通知手段就是说明该多媒体数据的MIME类型,从而让浏览器知道接收到的信息哪些是MP3文件,哪些是Shockwave文件等等。服务器将MIME标志符放入传送的数据中来告诉浏览器使用哪种插件读取相关文件。   MIME能够支持非ASCII字符、二进制格式附件等多种格式的邮件消息。这个标准被定义在; RFC 2045,; RFC 2046,; RFC 2047,; RFC 2048,; RFC 2049等RFC中。 由RFC 822转变而来的RFC 2822,规定电子邮件标准并不允许在邮件消息中使用7位ASCII字符集以外的字符。正因如此,一些非英语字符消息和二进制文件,图像,声音等非文字消息都不能在电子邮件中传输。MIME规定了用于表示各种各样的数据类型的符号化方法。
 每个MIME类型由两部分组成,前面是数据的大类别,例如声音audio、图象image等,后面定义具体的种类。   常见的MIME类型   超文本标记语言文本 .html text/html   xml文档 .xml text/xml   XHTML文档 .xhtml application/xhtml+xml   普通文本 .txt text/plain   RTF文本 .rtf application/rtf   PDF文档 .pdf application/pdf   Microsoft Word文件 .word application/msword   PNG图像 .png image/png   GIF图形 .gif image/gif   JPEG图形 .jpeg,.jpg image/jpeg   au声音文件 .au audio/basic   MIDI音乐文件 mid,.midi audio/midi,audio/x-midi   RealAudio音乐文件 .ra, .ram audio/x-pn-realaudio   MPEG文件 .mpg,.mpeg video/mpeg   AVI文件 .avi video/x-msvideo   GZIP文件 .gz application/x-gzip   TAR文件 .tar application/x-tar   任意的二进制数据 application/octet-stream

D:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects
D:\workspace1\.metadata\.plugins\org.eclipse.core.resources\.projects
D:\workspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost

D:\workspace1\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\work\Catalina\localhost


HTTP Status 500 - No action instance for path /employee/logon could be created
1.action是用spring代理的,而却没有用spring的代理action。

2.action的全路径名和在struts配置文件的action的type类型名字不一样,导致不能创建actiong,这也是最常见的错误,

3.到web.xml,没有把struts加进来

4.由于缺少某个包导致不能通过创建action,这里需要说明的一点是,就算hibernate的配置错误,也可能导致不能创建action。

5.struts的创建实例是需要线程安全的,而在action中的类中,不能有成员变量。

6.版本问题
在开发环境中使用的是struts的高版本,在运行环境中使用的是struts的低版本.
如在开发环境中,使用struts1.1以上版本,编写的Action类继承struts的基类DispatchAction.
但在运行环境中部署的是struts低版本的jar包,也会报这样的错误.
这种情况就是很多人说的在一台电脑上运行没问题,但换成了另一台电脑就出问题了.

7.struts里的action,form,model都没有继承,hibernate配置错。


我在eclipse里可以运行的工程。直接run就行  但不知道怎么在tomcat下运行
    答: 不是一个概念吧   朋友,tomcat是一个容器,存放和运行jsp   servlet之类的东西  你用run运行的项目是指基于java   bin运行的东西,是指可以执行的class之类的东西  两者不可通用


    答: run   as   server运行起来了tomcat  那应该怎么发布呢?

    答: 在Eclipse的“窗口/首选项”中“My   Eclipse”中的“Tomcat”配置就可以了

    答: 在Eclipse的“窗口/首选项”中“My   Eclipse”中的“Tomcat”配置就可以了,注意创建的工程是tomcat的  或者启动Tomcat,并且将程序拷贝到Tomcat下的webapps目录就可以,注意程序文件夹中必须有WEB-INF  

    答: 可以发布,将你工程中WebRoot复制到tomcat的webapps下,换个名字(可以不换),启动tomcat就可以访问了.  

    答: 在eclipse下有个tmp文件夹下的内容就是我们需要的,其中class,和lib都在

    答:


C:\Program Files\StormII\Codec;C:\Program Files\StormII;D:\java\jdk1.6.0_03\bin;D:\apache-tomcat-6.0.16\bin

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\





分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics