Posted by: Muhammed YÜRÜRDURMAZ in Yazılım
int getToplam(@WebParam(name=”deger1″)int deger1, @WebParam(name=”deger2″)int deger2);
Tags:
Java,
WebParam,
WebService
Tags: Java, WebParam, WebService
Exception in thread "main" org.osoa.sca.ServiceRuntimeException: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:204)
at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANodeFromClassLoader(NodeFactoryImpl.java:37)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:178)
at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:100)
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:182)
at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:63)
at com.aa.tools.resource.test.TSMain.main(TSMain.java:17)
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
at org.apache.tuscany.sca.interfacedef.java.jaxws.BaseBeanGenerator.generate(BaseBeanGenerator.java:436)
at org.apache.tuscany.sca.interfacedef.java.jaxws.FaultBeanGenerator.generate(FaultBeanGenerator.java:94)
at org.apache.tuscany.sca.interfacedef.java.jaxws.GeneratedDataTypeImpl.getPhysical(GeneratedDataTypeImpl.java:106)
at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:705)
at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:318)
at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:307)
at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:205)
at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:163)
at org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
at org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.buildServiceBindings(ComponentServiceBindingBuilderImpl.java:68)
at org.apache.tuscany.sca.assembly.builder.impl.ComponentServiceBindingBuilderImpl.build(ComponentServiceBindingBuilderImpl.java:48)
at org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:259)
at org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.buildComposite(RuntimeBootStrapper.java:255)
at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:632)
at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:200)
... 6 more
Java Result: 1
sorunu için http://mirrors.ibiblio.org/pub/mirrors/maven2/asm/asm-all/3.2/ adresinde yeni versiyon bir jar indirin.
asm*jar, asm-attrs*.jar ve cglib jar dosyalarını projeden çıkarın. yerine asm-all ve cglib-nodep ekleyin
Tags:
cglib,
Hibernate,
Java,
SCA
Tags: cglib, Hibernate, Java, SCA
Debian üzerinde (belki diğer linux sistemlerinde de) java uygulamarının network (veya internet) erişim sorunu varsa şunu bir kontrol edebilirsniz
cat /etc/sysctl.d/bindv6only.conf
# This sysctl sets the default value of the IPV6_V6ONLY socket option.
#
# When disabled, IPv6 sockets will also be able to send and receive IPv4
# traffic with addresses in the form ::ffff:192.0.2.1 and daemons listening
# on IPv6 sockets will also accept IPv4 connections.
#
# When IPV6_V6ONLY is enabled, daemons interested in both IPv4 and IPv6
# connections must open two listening sockets.
# This is the default behaviour of almost all modern operating systems.
net.ipv6.bindv6only = 1
eğer sizde de net.ipv6.bindv6only = 1 görünüyorsa 1 olan değeri 0 yapın ve alttaki komutu çalıştırın büyük ihtimalle düzelecektir.
echo 0 > /proc/sys/net/ipv6/bindv6only
Tags:
bindv6only,
debian,
Java,
Linux,
Network Connection
Tags: bindv6only, debian, Java, Linux, Network Connection
eğer network manager ile network ayarlarınızda sorun yaşıyorsanız, ayar yapmanıza izin vermiyorsa root olarak şunu bir kontrol edin
# nm-tool
NetworkManager Tool
State: disconnected
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: r8169
State: unmanaged
Default: no
HW Address: 00:00:00:00:00:00
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
State unmanaged görünüyorsa yine root kullanıcısı ile
gvim /etc/NetworkManager/nm-system-settings.conf
dosyadaki
[ifupdown]
managed=false
false olan yeri true yapın. daha sonra yine root ile
/etc/init.d/network-manager restart
artık network appleti sizin kontrolünüzde.
Saygılar …
Güncelleme: Eğer hala ethernet ayarlarını değiştiremiyorsanız /etc/network/interfaces dosyasındaki
allow-hotplug eth0
iface eth0 inet dhcp
satırlarını silin veya başına # atın. debian sistesinde yazdığına göre bundan sonra aktif olmada bazı sorunlar oluyormuş. Bu işlemden sonra makinayı yeniden başlatmanız gerekebilirmiş
Tags:
Applet,
debian,
network-manager
Tags: Applet, debian, network-manager
Posted by: Muhammed YÜRÜRDURMAZ in Yazılım
r”"”(?P<karsi_taraf>[^ ]*) – (?P<kullanici>[^ ]*) \[(?P<tarih>[^\]]*)] “(?P<url>[^"]*)” (?P<cevap>[0-9]*) (?P<boyut>[0-9]*) “(?P<ref>[^"]*)” “(?P<browser>[^"]*)”"”
Tags:
Access.log,
Apache,
Python,
Regex
Tags: Access.log, Apache, Python, Regex
vmware veya virtualbox gibi sanal sistemler ile wordpress denemek isteyenlere kolay bir yöntem
http://www.turnkeylinux.org/wordpress
adresinden appliance indirin ve istediğiniz gibi kurcalayın
Tags:
Appliance,
VirtualBox,
vmware,
Wordpress
Tags: Appliance, VirtualBox, vmware, Wordpress
eğer ssh vb bir sistem üzerinden veya grafik ekran olmadan bir şekilde vmware üzerindeki bir sanal makinayı çalıştırmanız gerek olursa işte komut
vmrun -T ws start vmx_dosyasinin_tam_adresi.vmx nogui
eğer workstation kullanıyorsanız -T ws server kullanıyorsanız -T server
nogui verdiğiniz zaman grafik ekraana ihtiyaç duymadan açar.
start yerine koyabileceğiniz diğer komutlar
stop : durdurmak için
reset : resetlemek için
suspend : uyutmak için
pause : pause moda geçmek için
unpause : pause durumundan kurtarmak için
detaylı bilgi için vmrun komutunu çalıştırın. şu parametreleri görürsünüz.
Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
AUTHENTICATION-FLAGS
--------------------
These must appear before the command and any command parameters.
-h (not needed for Workstation)
-P (not needed for Workstation)
-T (ws|server|server1|fusion)
for example, use '-T server' for Server 2.0
use '-T server1' for Server 1.0
-u (not needed for Workstation)
-p
(not needed for Workstation)
-gu
-gp
POWER COMMANDS PARAMETERS DESCRIPTION
-------------- ---------- -----------
start Path to vmx file Start a VM or Team
[gui|nogui]
stop Path to vmx file Stop a VM or Team
[hard|soft]
reset Path to vmx file Reset a VM or Team
[hard|soft]
suspend Path to vmx file Suspend a VM or Team
[hard|soft]
pause Path to vmx file Pause a VM
unpause Path to vmx file Unpause a VM
SNAPSHOT COMMANDS PARAMETERS DESCRIPTION
----------------- ---------- -----------
listSnapshots Path to vmx file List all snapshots in a VM
snapshot Path to vmx file Create a snapshot of a VM
Snapshot name
deleteSnapshot Path to vmx file Remove a snapshot from a VM
Snapshot name
revertToSnapshot Path to vmx file Set VM state to a snapshot
Snapshot name
RECORD/REPLAY COMMANDS PARAMETERS DESCRIPTION
---------------------- ---------- -----------
beginRecording Path to vmx file Begin recording a VM
Snapshot name
endRecording Path to vmx file End recording a VM
beginReplay Path to vmx file Begin replaying a VM
Snapshot name
endReplay Path to vmx file End replaying a VM
GUEST OS COMMANDS PARAMETERS DESCRIPTION
----------------- ---------- -----------
runProgramInGuest Path to vmx file Run a program in Guest OS
[-noWait]
[-activeWindow]
[-interactive]
Complete-Path-To-Program
[Program arguments]
fileExistsInGuest Path to vmx file Check if a file exists in Guest OS
Path to file in guest
setSharedFolderState Path to vmx file Modify a Host-Guest shared folder
Share name
Host path
writable | readonly
addSharedFolder Path to vmx file Add a Host-Guest shared folder
Share name
New host path
removeSharedFolder Path to vmx file Remove a Host-Guest shared folder
Share name
listProcessesInGuest Path to vmx file List running processes in Guest OS
killProcessInGuest Path to vmx file Kill a process in Guest OS
process id
runScriptInGuest Path to vmx file Run a script in Guest OS
Interpreter path
script_text
deleteFileInGuest Path to vmx file Delete a file in Guest OS
Path in guest
createDirectoryInGuest Path to vmx file Create a directory in Guest OS
Directory path in guest
deleteDirectoryInGuest Path to vmx file Delete a directory in Guest OS
Directory path in guest
listDirectoryInGuest Path to vmx file List a directory in Guest OS
Directory path in guest
copyFileFromHostToGuest Path to vmx file Copy a file from host OS to guest OS
Path on host
Path in guest
copyFileFromGuestToHost Path to vmx file Copy a file from guest OS to host OS
Path in guest
Path on host
renameFileInGuest Path to vmx file Rename a file in Guest OS
Original name
New name
captureScreen Path to vmx file Capture the screen of the VM to a local file
Path on host
writeVariable Path to vmx file Write a variable in the VM state
[runtimeConfig|guestEnv]
variable name
variable value
readVariable Path to vmx file Read a variable in the VM state
[runtimeConfig|guestEnv]
variable name
VPROBE COMMANDS PARAMETERS DESCRIPTION
--------------- ---------- -----------
vprobeVersion Path to vmx file List VP version
vprobeLoad Path to vmx file Load VP script
'VP script text'
vprobeReset Path to vmx file Disable all vprobes
vprobeListProbes Path to vmx file List probes
vprobeListGlobals Path to vmx file List global variables
GENERAL COMMANDS PARAMETERS DESCRIPTION
---------------- ---------- -----------
list List all running VMs
upgradevm Path to vmx file Upgrade VM file format, virtual hw
installtools Path to vmx file Install Tools in Guest
clone Path to vmx file Create a copy of the VM
Path to destination vmx file
full|linked
[Snapshot name]
Examples:
Starting a virtual machine with Workstation on a Windows host
vmrun -T ws start "c:\my VMs\myVM.vmx"
Stopping a virtual machine with Server on a linux host
vmrun -T server -h https://myHost.com/sdk -u hostUser -p hostPassword stop "[storage1] vm/myVM.vmx"
Running a program in a virtual machine with Workstation on a Windows host with Windows guest
vmrun -T ws -gu guestUser -gp guestPassword runProgramInGuest "c:\my VMs\myVM.vmx" "c:\Program Files\myProgram.exe"
Running a program in a virtual machine with Server on a linux host with linux guest
vmrun -T server -h https://myHost.com/sdk -u hostUser -p hostPassword -gu guestUser -gp guestPassword runProgramInGuest "[storage1] vm/myVM.vmx" /usr/bin/X11/xclock -display :0
Creating a snapshot of a virtual machine with Workstation on a Windows host
vmrun -T ws snapshot "c:\my VMs\myVM.vmx" mySnapshot
Reverting to a snapshot with Workstation on a Windows host
vmrun -T ws revertToSnapshot "c:\my VMs\myVM.vmx" mySnapshot
Deleting a snapshot with Workstation on a Windows host
vmrun -T ws deleteSnapshot "c:\my VMs\myVM.vmx" mySnapshot

Tags:
nogui,
ssh,
vmrun,
vmware
Tags: nogui, ssh, vmrun, vmware
WordPress Mobile Pack kullanarak vgrup u mobil sistemlerde sağlıklı çalışır duruma getirdik.
denemek isterseniz alttaki
Switch to our mobile site
linkine tıklayabilirsiniz
geri dönmek için
Switch to our desktop site
linkine tıklayın
Tags:
Mobile,
vgrup
Tags: Mobile, vgrup
svn ve trac kurarken
SubversionException Berkeley DB error for filesystem
benzeri bir hata alıyorsanız kolay yoldan çözmek için repository yi tekrar fsfs tipinde oluşturun database kullanmayın. sonra
trac-admin dizininiz resync
komutu ile tekar yükleyin
Tags:
BerkeleyDB,
fsfs,
svn,
trac,
vcs
Tags: BerkeleyDB, fsfs, svn, trac, vcs
Posted by: Muhammed YÜRÜRDURMAZ in Yazılım
bir superclass kullanarak bazı standart özellikleri eklemek için bir örnek
@MappedSuperclass
public class Base {
@Column(name="AKTIFMI")
private boolean aktifmi;
}
@Entity class Kayit extends BaseEntity {
...
}
Tags:
extend,
Hibernate,
Inheritance,
Java,
MappedSuperclass
Tags: extend, Hibernate, Inheritance, Java, MappedSuperclass